Skip to content

[Bug]: error in sqlite connection, perhaps file mounts? #74

@ksipma

Description

@ksipma

What happened?

Unfortunatly docker seems still broken.

Steps to reproduce

If i do docker-compose up after setting a DEVONZ_ENCRYPTION_KEY encryption key the following happens:

Error output

devonz  | /app/node_modules/.pnpm/libsql@0.5.22/node_modules/libsql/index.js:95
devonz  |       this.db = databaseOpen(path, authToken, encryptionCipher, encryptionKey, timeout, remoteEncryptionKey);
devonz  |                 ^
devonz  | Error: ConnectionFailed("Unable to open connection to local database ./data/devonz.db: 14")
devonz  |     at new Database (/app/node_modules/.pnpm/libsql@0.5.22/node_modules/libsql/index.js:95:17)
devonz  |     at _createClient (file:///app/node_modules/.pnpm/@libsql+client@0.17.0/node_modules/@libsql/client/lib-esm/sqlite3.js:50:16)
devonz  |     at _createClient (file:///app/node_modules/.pnpm/@libsql+client@0.17.0/node_modules/@libsql/client/lib-esm/node.js:21:16)
devonz  |     at createClient (file:///app/node_modules/.pnpm/@libsql+client@0.17.0/node_modules/@libsql/client/lib-esm/node.js:11:12)
devonz  |     at file:///app/app/lib/.server/db/index.ts:15:16

What should have happened?

No response

Environment info

windows 11, WSL2.  Running in ubuntu.

Anything else?

I suspect it has something to do with the file mount and permissions. I have tried mounting the ./data folder to my machine and changed with chmod. I also tried changing the user to root in docker-compose.

Perhaps just a small final issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageNeeds triage and prioritization

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions