homarr stopped working

homarr stopped working Error [TRPCClientError]: no such table: user at TRPCClientError.from (file:///app/.next/server/src/middleware.js:1718:20) at <unknown> (file:///app/.next/server/src/middleware.js:2273:60) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
No description
31 Replies
Cakey Bot
Cakey Bot9mo ago
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?
Manicraft1001
Manicraft10019mo ago
Hi @heavypenalty , please add the missing details as mentioned by @Cakey Bot .
heavypenalty
heavypenalty9mo ago
ubuntu server/docker
heavypenalty
heavypenalty9mo ago
image: ghcr.io/ajnart/homarr:latest portainer stack #---------------------------------------------------------------------# Homarr - A simple, yet powerful dashboard for your server. # #---------------------------------------------------------------------# services: homarr: container_name: homarr image: ghcr.io/ajnart/homarr:latest restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration - /mnt/OgreStore/docker/homarr/configs:/app/data/configs - /mnt/OgreStore/docker/homarrr/icons:/app/public/icons - /mnt/OgreStore/docker/homarr/data:/data ports: - '7575:7575' this has been running fine until, I updated the image to the lastest version
Manicraft1001
Manicraft10019mo ago
Is /mnt/OgreStore a local disk or a SMB / share?
heavypenalty
heavypenalty9mo ago
smb
heavypenalty
heavypenalty9mo ago
all the other arr's are using the smb just fine
Manicraft1001
Manicraft10019mo ago
We do not fork of the same code as Sonarr / Radarr & co do. Therefore Homarr will behave differently in most scenarios. Please try the above fix. It's most likely a permission issue because our container is using the root. A custom user cannot be used currently due to a known bug / issue.
heavypenalty
heavypenalty9mo ago
I understand, was just saying that the smb is setup correctly
Manicraft1001
Manicraft10019mo ago
Sure, I don't doubt that your SMB isn't "working". It just doesn't function in combination with the permissions of the Homarr container. The above link should provide you the information you need to adjust that.
heavypenalty
heavypenalty9mo ago
Exporting hostname... Migrating database... yarn run v1.22.19 $ ts-node ./migrate.ts DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "__drizzle_migrations" ( id SERIAL PRIMARY KEY, hash text NOT NULL, created_at numeric ) ': database is locked
Manicraft1001
Manicraft10019mo ago
database is locked - Either your database is corrupt (eg. damaged filesystem, drive or unclean shutdown of app or OS) - Your filesystem is maybe readonly - Homarr is unable to read or write
heavypenalty
heavypenalty9mo ago
I figured it might be the read/write but everything looks okay #---------------------------------------------------------------------# Homarr - A simple, yet powerful dashboard for your server. # #---------------------------------------------------------------------# services: homarr: container_name: homarr image: ghcr.io/ajnart/homarr:latest restart: unless-stopped environment: - PUID=1000 - PGID=1000
volumes: - /var/run/docker.sock:/var/run/docker.sock # Optional, only if you want docker integration - /mnt/OgreStore/docker/homarr/configs:/app/data/configs - /mnt/OgreStore/docker/homarrr/icons:/app/public/icons - /mnt/OgreStore/docker/homarr/data:/data ports: - '7575:7575' I added puid/pgid to the stack config
heavypenalty
heavypenalty9mo ago
No description
Manicraft1001
Manicraft10019mo ago
You most likely can't set PUID and PGID because Homarr currently has issues with executing migrations & accessing data. It's an issue in our Docker image we haven't been able to fix yet. Feel free to try though. I'd suggest that you permit the UID AND GID of Homarr r&w access to the filesystem (or SMB in this case) instead.
heavypenalty
heavypenalty9mo ago
what user is homarr running under? node?
No description
Manicraft1001
Manicraft10019mo ago
Normally, Docker runs as nobody. Also look what user it is inside the container (open shell in Portainer and enter id or whoami)
heavypenalty
heavypenalty9mo ago
No description
Manicraft1001
Manicraft10019mo ago
Not on your host system. Inside your container 🙂
heavypenalty
heavypenalty9mo ago
that is in the container
heavypenalty
heavypenalty9mo ago
No description
Manicraft1001
Manicraft10019mo ago
Is root permitted on your share?
heavypenalty
heavypenalty9mo ago
No description
heavypenalty
heavypenalty9mo ago
this tells me it is
Manicraft1001
Manicraft10019mo ago
And it still doesn't work when you remove the PID & UID?
heavypenalty
heavypenalty9mo ago
Neither worked with or without
Manicraft1001
Manicraft10019mo ago
@Meierschlumpf can you look into this? Is drizzle maybe running on a different user somehow?
Meierschlumpf
Meierschlumpf9mo ago
No it's running on the normal docker user, I still don't have a clue why this happens to people
heavypenalty
heavypenalty9mo ago
so any suggestions on what to do? I guess my next step is to try to run the container with local storage
Thomas
Thomas9mo ago
@heavypenalty try to recreate the container, this time with a volume for the database
Want results from more Discord servers?
Add your server