H
Homarr11mo ago
Empty

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 Bot11mo 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
Manicraft100111mo ago
Hi @heavypenalty , please add the missing details as mentioned by @Cakey Bot .
Empty
EmptyOP11mo ago
ubuntu server/docker
Empty
EmptyOP11mo 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
Manicraft100111mo ago
Is /mnt/OgreStore a local disk or a SMB / share?
Empty
EmptyOP11mo ago
smb
Empty
EmptyOP11mo ago
all the other arr's are using the smb just fine
Manicraft1001
Manicraft100111mo 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.
Empty
EmptyOP11mo ago
I understand, was just saying that the smb is setup correctly
Manicraft1001
Manicraft100111mo 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.
Empty
EmptyOP11mo 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
Manicraft100111mo 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
Empty
EmptyOP11mo 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
Empty
EmptyOP11mo ago
No description
Manicraft1001
Manicraft100111mo 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.
Empty
EmptyOP11mo ago
what user is homarr running under? node?
No description
Manicraft1001
Manicraft100111mo ago
Normally, Docker runs as nobody. Also look what user it is inside the container (open shell in Portainer and enter id or whoami)
Empty
EmptyOP11mo ago
No description
Manicraft1001
Manicraft100111mo ago
Not on your host system. Inside your container 🙂
Empty
EmptyOP11mo ago
that is in the container
Empty
EmptyOP11mo ago
No description
Manicraft1001
Manicraft100111mo ago
Is root permitted on your share?
Empty
EmptyOP11mo ago
No description
Empty
EmptyOP11mo ago
this tells me it is
Manicraft1001
Manicraft100111mo ago
And it still doesn't work when you remove the PID & UID?
Empty
EmptyOP11mo ago
Neither worked with or without
Manicraft1001
Manicraft100111mo ago
@Meierschlumpf can you look into this? Is drizzle maybe running on a different user somehow?
Meierschlumpf
Meierschlumpf11mo ago
No it's running on the normal docker user, I still don't have a clue why this happens to people
Empty
EmptyOP11mo ago
so any suggestions on what to do? I guess my next step is to try to run the container with local storage
Thomas
Thomas11mo ago
@heavypenalty try to recreate the container, this time with a volume for the database

Did you find this page helpful?