#SQLITE_CANTOPEN is thrown even with { create: true } is passed

1 messages · Page 1 of 1 (latest)

glass badge
#

I've

const db = new Database("cache.sqlite", { create: true });

and it throws

SQLiteError: unable to open database file
 errno: 14
  code: "SQLITE_CANTOPE

Running inside Docker version 27.0.3, build 7d4bcd8 with oven/bun:1 image on CentOS 9

env:

PORT=3001
HOST=0.0.0.0
NODE_ENV=production
DEBUG=*
DEBUG_COLORS=true

What other information I could provide to help figuring out what's wrong?

boreal scarab
#

are you able to stat the file

#

like stat cache.sqlite

#

in bash