Just updated container to latest version 1.14 Docker container now unhealthy and unable to access GU
So i host this via portainer. Did the usual duplicate/recreate to pull latest image and now its not working. Any idea's what is causing this. This is the logs below
_closedPromise_resolve: undefined,
_closedPromise_reject: undefined,
_closedPromise: Promise { },
_readRequests: S {
_cursor: 0,
_size: 0,
_front: { _elements: [], _next: undefined },
_back: { _elements: [], _next: undefined }
}
},
_storedError: undefined,
_disturbed: true,
_readableStreamController: ReadableStreamDefaultController {
_controlledReadableStream: [Circular *1],
_queue: S {
_cursor: 0,
_size: 0,
_front: { _elements: [], _next: undefined },
_back: { _elements: [], _next: undefined }
},
_queueTotalSize: 0,
_started: true,
_closeRequested: true,
_pullAgain: false,
_pulling: true,
_strategySizeAlgorithm: undefined,
_strategyHWM: 0,
_pullAlgorithm: undefined,
_cancelAlgorithm: undefined
}
},
source: null,
length: null
}
},
[Symbol(headers)]: Headers {
[Symbol(headers list)]: HeadersList {
cookies: [
'next-auth.csrf-token=%7Cca905812967ad9b4cc9e1af37198dc6bcbf697c8c29b04d58757e7858669b0fc; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
],
[Symbol(headers map)]: Map(8) {
'connection' => { name: 'connection', value: 'close' },
'content-encoding' => { name: 'content-encoding', value: 'gzip' },
'content-type' => { name: 'content-type', value: 'application/json' },
'date' => { name: 'date', value: 'Thu, 18 Jan 2024 12:36:22 GMT' },
'keep-alive' => { name: 'keep-alive', value: 'timeout=5' },
'set-cookie' => {
name: 'set-cookie',
value: 'next-auth.csrf-token=%7Cca905812967ad9b4cc9e1af37198dc6bcbf697c8c29b04d58757e7858669b0fc; Path=/; HttpOnly; SameSite=Lax, next-auth.callback-url=http%3A%2F%2Flocalhost%3A7575; Path=/; HttpOnly; SameSite=Lax'
},
'transfer-encoding' => { name: 'transfer-encoding', value: 'chunked' },
'vary' => { name: 'vary', value: 'Accept-Encoding' }
},
[Symbol(headers map sorted)]: null
},
[Symbol(guard)]: 'response',
[Symbol(realm)]: { settingsObject: {} }
}
},
responseJSON: [
{
error: {
{
message: 'no such table: user',
code: -32603,
{
code: 'INTERNAL_SERVER_ERROR',
httpStatus: 500,
path: 'user.count',
zodError: null
}
}
}
}
]
},
shape: {
message: 'no such table: user',
code: -32603,
{
code: 'INTERNAL_SERVER_ERROR',
httpStatus: 500,
path: 'user.count',
zodError: null
}
},
{
code: 'INTERNAL_SERVER_ERROR',
httpStatus: 500,
path: 'user.count',
zodError: null
},
name: 'TRPCClientError'
},
elapsedMs: 45
}
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 can see this in the documentation:
```
version: '3'
#---------------------------------------------------------------------#...
🚀 Installation | Homarr documentation
We provide multiple installation methods. Are you a newbie to Docker? We recommend Docker Compose for beginners.
28 Replies
Looks like an authentication database error.
Confirm your /data folder and permissions.
Hi, from what version did you update? 1.14 does not exist. @Lety
@Manicraft1001 sorry for late reply. it was from version v0.14.2 to v0.14.4
What are the permissions on the mounted directories?
What is your compose?
@Manicraft1001 docker compose version
Docker Compose version v2.21.0
might be time to upgrade to 3,0 i did see somewhere tha permissions get lost
I mean your compose file or run command
You're missing a mounting: https://homarr.dev/docs/getting-started/installation#-docker-compose
🚀 Installation | Homarr documentation
We provide multiple installation methods. Are you a newbie to Docker? We recommend Docker Compose for beginners.
I run it through portainer, its been fine for last year or so
We had a breaking change and you probably ignored the changelog / message for it 🙂
you mean i blindly cant unmount and pull latest 😛
@Manicraft1001 is there a tldr to recover this? or better to start fresh
You need to add the /data mount. That's very easy to do in Portainer
Also make a backup before you remove the container, in case you destroy your config
Starting fresh is also possible. (This will destroy all data)
1. Stop your container
2. Remove your container
3. Delete all mounted paths recursively
4. Set up again according to the Homarr documentation
Tyvm thats what im doing starting fresh
Can i ask a dumb docker Q - nvm im going to ask
Sure. Ask
- <your-path>/configs:/app/data/configs
- <your-path>/icons:/app/public/icons
- <your-path>/data:/data
The path, if its in a container what would this name format be? or best way to confirm
Looking at my old Portainer for Homar it was this
Can i jsut use the container name i.e
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
- ./homarr/data:/data
Not sure if I understand your question. The right side of
:
is inside the container. It should not change. Left side varies from system to system. If you mounted multiple disks on your Linux, you might need to mount to something like /mnt/disk1/apps/homarr/XXX
. On Unraid, you should mount to /mnt/user/appdata/homarr/XXX
. If you only have one disk, then you could mount to /var/homarr/XXX
or /home/your-user/homarr/XXX
or other directories.Solution
You can see this in the documentation:
https://homarr.dev/docs/getting-started/installation#-portainer-stacks
Simply replace
<your-path>
with your desired path.🚀 Installation | Homarr documentation
We provide multiple installation methods. Are you a newbie to Docker? We recommend Docker Compose for beginners.
I understand. Lets say there is no Homarr folder in /var should i create it first?
You don't have to, but you can if you want. Docker should create it itself when you execute it correctly
Only one way to find out 🙂
Docker doesn't like relative paths. So use something like
/var/homarr/XXX
on the left side of the mount paths instad of ./homarr
you are correc it created the directory
We back baby
😦
Is that our collective?
Is Homarr running now? Can I mark it as resolved or do you need further assistance?
Yeah it is. Maybe my region (AUS)
yes its runnig now thanks
Awesome. Will mark it as resolved then! I'll have a look at our OpenCollective settings. Can I DM you so you could check again later?