homarr error after update
I updated my homarr container and now when i go to the page i get
"An unexpected error has occurred
This page has crashed unexpectedly. We're sorry for the inconvenience. Please try again or contact an administrator
Detailed error information
Type
Client side"
here is logs
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)
Solution:Jump to solution
You shouldn't need to build anything in the db.
Stop homarr, delete db.sqlite, then restart homarr. That should reinitialize the database....
18 Replies
Hi, from what version did you update?
I dont remember, is there a way i can check?
You could check for unused docker images
What is your compose or run?
old compose -
"version: '3'
#---------------------------------------------------------------------#
Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: unless-stopped
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
ports:
- '7575:7575'"
new compose -
"version: '3'
#---------------------------------------------------------------------#
Homarr - A simple, yet powerful dashboard for your server. #
#---------------------------------------------------------------------#
services:
homarr:
container_name: homarr_2
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
- /home/user/homarr/homarr/configs:/app/data/configs
- /home/user/homarr/homarr/icons:/app/public/icons
- /home/user/homarr/homarr/data:/data
ports:
- '7575:7575'
user is replaced with the actual username
Can you please post your full log from the beginning?
Thank you. @Meierschlumpf can you look into this? You are currently the most up to date with the migrations not applying.
It would be great if the logs would begin where the container was started
sorry, is this right?
I just made a table called users in the db and that at least got homarr to start, however when i made a new user and password it just infinitley loads, the logs just say "checking if ...db is writable...database is writable" then looping
Solution
You shouldn't need to build anything in the db.
Stop homarr, delete db.sqlite, then restart homarr. That should reinitialize the database.
if the db isn't initialising (0 b file) you can copy this blank one in as a workaround: https://discord.com/channels/972958686051962910/1172826100209025135/1173104601134805012
thank you I'll try that soon
The logs you sent did not contain the db migration that happend on the start of the container. Without those logs I'm not able to help you
I'm sorry that seems to be the start of the logs, I'll try that template one and see if that works
thank you all for your help, just deleting the database seems to have fixed the problem
Okay great, thanks @explosive parrot
No dramas, this one keeps popping up fairly regularly, but I still haven't seen the pattern behind why.