H
Homarr14mo ago
thomas

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:
You shouldn't need to build anything in the db. Stop homarr, delete db.sqlite, then restart homarr. That should reinitialize the database....
Jump to solution
18 Replies
Manicraft1001
Manicraft100114mo ago
Hi, from what version did you update?
thomas
thomasOP14mo ago
I dont remember, is there a way i can check?
Manicraft1001
Manicraft100114mo ago
You could check for unused docker images What is your compose or run?
thomas
thomasOP14mo ago
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
Manicraft1001
Manicraft100114mo ago
Can you please post your full log from the beginning?
thomas
thomasOP14mo ago
Manicraft1001
Manicraft100114mo ago
Thank you. @Meierschlumpf can you look into this? You are currently the most up to date with the migrations not applying.
Meierschlumpf
Meierschlumpf14mo ago
It would be great if the logs would begin where the container was started
thomas
thomasOP14mo ago
sorry, is this right?
thomas
thomasOP14mo ago
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
explosive parrot
explosive parrot14mo ago
You shouldn't need to build anything in the db. Stop homarr, delete db.sqlite, then restart homarr. That should reinitialize the database.
explosive parrot
explosive parrot14mo ago
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
thomas
thomasOP14mo ago
thank you I'll try that soon
Meierschlumpf
Meierschlumpf14mo ago
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
thomas
thomasOP14mo ago
I'm sorry that seems to be the start of the logs, I'll try that template one and see if that works
thomas
thomasOP14mo ago
thank you all for your help, just deleting the database seems to have fixed the problem
Meierschlumpf
Meierschlumpf14mo ago
Okay great, thanks @explosive parrot
explosive parrot
explosive parrot14mo ago
No dramas, this one keeps popping up fairly regularly, but I still haven't seen the pattern behind why.
Want results from more Discord servers?
Add your server