Cannot open database
So i was using homarr in alpha but now after deleting and creating new open beta docker i get following:
TypeError: Cannot open database because the directory does not exist
homarr | at new Database2 (/app/apps/websocket/wssServer.cjs:10851:15)
homarr | at initBetterSqlite (/app/apps/websocket/wssServer.cjs:436779:16)
homarr | at init2 (/app/apps/websocket/wssServer.cjs:436766:9)
homarr | at Object.<anonymous> (/app/apps/websocket/wssServer.cjs:436806:1)
homarr | at Module._compile (node:internal/modules/cjs/loader:1565:14)
homarr | at Object..js (node:internal/modules/cjs/loader:1708:10)
homarr | at Module.load (node:internal/modules/cjs/loader:1318:32)
homarr | at Function._load (node:internal/modules/cjs/loader:1128:12)
homarr | at TracingChannel.traceSync (node:diagnostics_channel:322:14)
homarr | at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
and also this bellow:
eZ [TRPCClientError]: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
homarr | at eZ.from (/app/apps/nextjs/.next/server/src/middleware.js:5:3550)
homarr | at /app/apps/nextjs/.next/server/src/middleware.js:5:9540
homarr | at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
homarr | cause: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Not sure what changed or what i am doing wrong, i am not trying o migrate anything13 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Hi, can you post your docker compose / mounts?
I have it like this:
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration
- /mnt/tank/docker/homarr/config:/appdata
Is the directory
/mnt/tank/docker/homarr/config
empty? Did you install anything else before?It seems its empty
Has the Homarr container the correct permissions and can it read / write to the mounted directory?
Yep double checked that PUID and PGID is okay
Please use the
--user
parameter instead. PUID AND PGID are not supported and we will likely not re-add it because the -user
can be used as a replacement.Hmm how is -user used 🤔 ? Any docs on that never used it
Huh how do you convert this to compose yaml 🤔
Let's close this thread and continue in https://discord.com/channels/972958686051962910/1318688970493788241 . It's a duplicate