Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container fails to start due to sqlite issue #211

Open
dasilvatek opened this issue Feb 9, 2025 · 0 comments
Open

Container fails to start due to sqlite issue #211

dasilvatek opened this issue Feb 9, 2025 · 0 comments

Comments

@dasilvatek
Copy link

I am not running the installer.sh script (for the same reasons as others). I'm pretty good with Docker and my homelab is all containerized including several websites/applications behind nginx-proxy. I simply want to run the PDS image without the compose stack (because I don't use Caddy and already have Watchtower) but I'm having a heck of a time getting past this hurdle with sqlite.

I have:

  • reviewed the installer.sh script and don't see what I'm missing
  • searched this repo and checked others' published guidance on topic
  • DNS and nginx-proxy config tested and working for the desired domain
  • all the required system packages installed as defined in the installer.sh script
  • a pds.env file with HOST, DOMAIN, SECRET, PASSWORD, PDS_DATA_DIRECTORY=/data/pds and PDS_PORT=4000
  • tried adding PDS_DB_SQLITE_LOCATION=/data/pds/pds.sqlite and created the file manually
  • even tried rebuilding the Docker image locally which fails - ERROR [build 5/5] RUN pnpm install --production --frozen-lockfile > /dev/null

Running Docker fails with this sqlite error - are these dependencies not built into the published image? How do I move forward?

Node.js v20.11.1
/app/node_modules/.pnpm/better-sqlite3@10.1.0/node_modules/better-sqlite3/lib/database.js:65
		throw new TypeError('Cannot open database because the directory does not exist');
		      ^

TypeError: Cannot open database because the directory does not exist
    at new Database (/app/node_modules/.pnpm/better-sqlite3@10.1.0/node_modules/better-sqlite3/lib/database.js:65:9)
    at Function.sqlite (/app/node_modules/.pnpm/@atproto+pds@0.4.74/node_modules/@atproto/pds/src/db/db.ts:31:22)
    at getDb (/app/node_modules/.pnpm/@atproto+pds@0.4.74/node_modules/@atproto/pds/src/did-cache/db/index.ts:16:19)
    at DidSqliteCache (/app/node_modules/.pnpm/@atproto+pds@0.4.74/node_modules/@atproto/pds/src/did-cache/index.ts:17:20)
    at Function.fromConfig (/app/node_modules/.pnpm/@atproto+pds@0.4.74/node_modules/@atproto/pds/src/context.ts:161:22)
    at Function.create (/app/node_modules/.pnpm/@atproto+pds@0.4.74/node_modules/@atproto/pds/src/index.ts:57:34)
    at main (/app/index.js:16:25)
    at Object.<anonymous> (/app/index.js:72:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant