After upgrading I get an unexpected client side error and a database related error in console

I was in version 0.13.6 and today I upgraded to the latest 0.14 version, however as a professional IT that I am (/s) I did not read the migration documentation and I did not add a /data folder to Homarr. No /data folder existed to my knowledge before, only the /config. I have attempted to restart, and recreate the container but to no avail. Any ideas of what I can do to recover? PS: The errors mentioned
{
code: 'INTERNAL_SERVER_ERROR',
httpStatus: 500,
path: 'user.count',
zodError: null
},
name: 'TRPCClientError'
},
elapsedMs: 17
}
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)
{
code: 'INTERNAL_SERVER_ERROR',
httpStatus: 500,
path: 'user.count',
zodError: null
},
name: 'TRPCClientError'
},
elapsedMs: 17
}
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)
21 Replies
Manicraft1001
Manicraft100111mo ago
Hi @Alepouna🌙 , please post your docker run / compose and a ls of all your mounted directories.
Alepouna🌙
Alepouna🌙OP11mo ago
Here you go :)
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:
- /path/to/homarr/configs:/app/data/configs
- /path/to/homarr/icons:/app/public/icons
- /path/to/homarr/data:/data
network_mode: host
environment:
EDIT_MODE_PASSWORD: "hi"
ports:
- '7575:7575'
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:
- /path/to/homarr/configs:/app/data/configs
- /path/to/homarr/icons:/app/public/icons
- /path/to/homarr/data:/data
network_mode: host
environment:
EDIT_MODE_PASSWORD: "hi"
ports:
- '7575:7575'
Manicraft1001
Manicraft100111mo ago
Have you tried the following? 1. Backup your configs directory. 2. Delete the container using docker compose down 3. Delete the data directory 4. Recreate using docker compose up Also, are you actually using /path/to/homarr/config?
Alepouna🌙
Alepouna🌙OP11mo ago
There is no data dir that exists, and I am using /configs
Manicraft1001
Manicraft100111mo ago
So this is not your actual compose? I'm confused
Alepouna🌙
Alepouna🌙OP11mo ago
I don't understand if you are asking me if I am using the word config with or without an S. If you are asking about the /path/to No thats just the path to my installation just reduced as its slightly long
Manicraft1001
Manicraft100111mo ago
Ah okay. And you say the data directory doesn't exist?
Alepouna🌙
Alepouna🌙OP11mo ago
correct
Manicraft1001
Manicraft100111mo ago
And executing these steps doesn't fix it?
Alepouna🌙
Alepouna🌙OP11mo ago
correct
Manicraft1001
Manicraft100111mo ago
Can you try to remove the mapping for it entirely? Docker should create a volume for it and choose a path for you
Alepouna🌙
Alepouna🌙OP11mo ago
yeah can try one moment That did the trick
Manicraft1001
Manicraft100111mo ago
Can you do a docker compose down and docker compose up again to ensure that data is properly persisted?
Alepouna🌙
Alepouna🌙OP11mo ago
Nope, no persistence
Manicraft1001
Manicraft100111mo ago
@Tag @ajnart can you assist?
Thomas
Thomas11mo ago
Can you try to remove the mountpoint on /data and start it without it ? @Alepouna🌙
Manicraft1001
Manicraft100111mo ago
That's what they just tried as far as I'm concerned?
Alepouna🌙
Alepouna🌙OP11mo ago
yep did that
Serenaphic
Serenaphic11mo ago
Permissions to the folder configured properly? Create the folder for data and make sure it has the same permissions as your configs folder.
Alepouna🌙
Alepouna🌙OP11mo ago
tried that, has the same rw as /configs and /icons
Serenaphic
Serenaphic11mo ago
Have you tried manually going to the /onboard page?
Want results from more Discord servers?
Add your server