H
Homarr14mo ago
dandrass

404 Error after updating

Hello there Can't access homarr either via the domain i set, or via local ip I just pulled the latest version and added a tag for https://crazymax.dev/diun/ Homarr logs :
homarr | Listening on port 7575 url: http://497ece26ed18:7575
homarr | [DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937
homarr | Listening on port 7575 url: http://497ece26ed18:7575
homarr | [DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937
I've tried to specify the base url in the environment variables but it kept 404 in the end Homarr docker compose :
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: always
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
ports:
- '7575:7575'
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`homarr.base.url`)"
- "traefik.http.routers.homarr.entrypoints=https"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.routers.homarr.tls.certresolver=user"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
- "diun.enable=true"
environment:
BASE_URL: https://homarr.base.url/
PASSWORD: "PASSWORD"
homarr:
container_name: homarr
image: ghcr.io/ajnart/homarr:latest
restart: always
volumes:
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
ports:
- '7575:7575'
labels:
- "traefik.enable=true"
- "traefik.http.routers.homarr.rule=Host(`homarr.base.url`)"
- "traefik.http.routers.homarr.entrypoints=https"
- "traefik.http.routers.homarr.tls=true"
- "traefik.http.routers.homarr.tls.certresolver=user"
- "traefik.http.services.homarr.loadbalancer.server.port=7575"
- "diun.enable=true"
environment:
BASE_URL: https://homarr.base.url/
PASSWORD: "PASSWORD"
Diun
Receive notifications when a Docker image is updated on a Docker registry
38 Replies
Tag
Tag14mo ago
This happened after an update or is this your first install?
dandrass
dandrass14mo ago
after an update
Tag
Tag14mo ago
Have you tried starting it without the modification for diun?
dandrass
dandrass14mo ago
yeah removed the line and recreated it only thing that is changing is the listening ip, this time http://3b06b2f53ce1:7575 shouldn't it be something like http://172.0.0.10:7575 ? all of my other services works perfectly fine after adding diun's line
Tag
Tag14mo ago
Depends on lots of things. Mostly reverse proxy. Mine is http://homarr-df969bc9f-gwz8q:7575, still works though Trying to access through that link will obviously not work though as this is the url for the machine's internal network I see you're setting it up with traefik, does homarr show up in treafik?
dandrass
dandrass14mo ago
it does service shows the internal ip perceived by traefik http://172.18.0.16:7575
Tag
Tag14mo ago
As it should That's also normal behavior
dandrass
dandrass14mo ago
i just tried clearing cookies brought me back to login and after password was accepted back to 404
Tag
Tag14mo ago
So you've tried the basic "http://machineIP:7575" too
dandrass
dandrass14mo ago
yes that puts me in 404 too
Tag
Tag14mo ago
When you say 404, you actually get a page that says 404? I get that when I use the domain name through traefik, not when accessing directly
dandrass
dandrass14mo ago
yes with the image
No description
Tag
Tag14mo ago
Oh that's homarr's 404, not traefik's So homarr is actually working Well, if you click on the "Go to Home" button, doesn't that work?
dandrass
dandrass14mo ago
sadly no it loops back to homarr's 404
Tag
Tag14mo ago
So the pathname at the top is "/404" ?
dandrass
dandrass14mo ago
yes both local and traefik url end with /404
Tag
Tag14mo ago
I'm trying to find what's wrong. Basically homarr is running and you can access it, but it's bugging out and always returning you to it's 404. You were talking about passwords, is it something like authelia or is it homarr's password feature?
dandrass
dandrass14mo ago
only homarr's password
Tag
Tag14mo ago
Can you confirm you're running version 0.13.4?
dandrass
dandrass14mo ago
is there a docker command that shows the version used by the container ? otherwise i just pulled latest tag to be sure
Tag
Tag14mo ago
My guess is that for some reason your latest pulled 0.13.3 instead of 0.13.4, and that version has url problems because of nextjs I don't know docker, I can only suggest to google that one https://www.mend.io/free-developer-tools/blog/update-docker-images/
dandrass
dandrass14mo ago
Env": [
"BASE_URL=https://homarr.base.url/",
"PASSWORD=PASSWORD",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NODE_VERSION=20.6.0",
"YARN_VERSION=1.22.19",
"NEXT_TELEMETRY_DISABLED=1",
"NODE_ENV=production",
"NODE_OPTIONS=--no-experimental-fetch",
"PORT=7575"
],
"Image": "ghcr.io/ajnart/homarr:latest",
Env": [
"BASE_URL=https://homarr.base.url/",
"PASSWORD=PASSWORD",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NODE_VERSION=20.6.0",
"YARN_VERSION=1.22.19",
"NEXT_TELEMETRY_DISABLED=1",
"NODE_ENV=production",
"NODE_OPTIONS=--no-experimental-fetch",
"PORT=7575"
],
"Image": "ghcr.io/ajnart/homarr:latest",
Tag
Tag14mo ago
Dammit it's not there :/
dandrass
dandrass14mo ago
okay so i deleted the config folder and recreated it no more 404 i think it didn't liked the json that what saved here the layout of the old json is very different from the new one
dandrass
dandrass14mo ago
No description
Tag
Tag14mo ago
What version where you updating from for it to not like it?
dandrass
dandrass14mo ago
can't really remember the precise version i think it was something like 0.12.5
Tag
Tag14mo ago
This shouldn't be a problem then Config should be compatible with v0.11
dandrass
dandrass14mo ago
i can send a copy of both jsons here
Tag
Tag14mo ago
You backedup your config before removing the folder right?
dandrass
dandrass14mo ago
yes
Tag
Tag14mo ago
Uhm, if you do make sure to remove any private informations Of the old one, we already know what the new one is
dandrass
dandrass14mo ago
of course i forgot once but not twice
dandrass
dandrass14mo ago
here is the old json
Tag
Tag14mo ago
That is not version 0.12 lol that is old af, no wonder Clearly a good step to add diun, sorry you missed so many cool updates until now
dandrass
dandrass14mo ago
that's on me didn't payed enough attention on most of my containers now diun will ping me if there's an update 😄 thank you for your help and sorry that it was just as simple as deleting a json
Tag
Tag14mo ago
No that's valuable intel, now this will become one of my default questions. Sorry it took us so long, I should have asked for the config earlier Well, time for you to rediscover Homarr then I guess. Have fun with it and future updates
dandrass
dandrass14mo ago
thank you 🙇‍♂️ RESOLVED : make a copy of homarr's config json (located in ./homarr/configs for me) delete the original and restart homarr
Want results from more Discord servers?
Add your server