H
Homarr15mo 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
Serenaphic
Serenaphic15mo ago
This happened after an update or is this your first install?
dandrass
dandrassOP15mo ago
after an update
Serenaphic
Serenaphic15mo ago
Have you tried starting it without the modification for diun?
dandrass
dandrassOP15mo 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
Serenaphic
Serenaphic15mo 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
dandrassOP15mo ago
it does service shows the internal ip perceived by traefik http://172.18.0.16:7575
Serenaphic
Serenaphic15mo ago
As it should That's also normal behavior
dandrass
dandrassOP15mo ago
i just tried clearing cookies brought me back to login and after password was accepted back to 404
Serenaphic
Serenaphic15mo ago
So you've tried the basic "http://machineIP:7575" too
dandrass
dandrassOP15mo ago
yes that puts me in 404 too
Serenaphic
Serenaphic15mo 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
dandrassOP15mo ago
yes with the image
No description
Serenaphic
Serenaphic15mo 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
dandrassOP15mo ago
sadly no it loops back to homarr's 404
Serenaphic
Serenaphic15mo ago
So the pathname at the top is "/404" ?
dandrass
dandrassOP15mo ago
yes both local and traefik url end with /404
Serenaphic
Serenaphic15mo 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
dandrassOP15mo ago
only homarr's password
Serenaphic
Serenaphic15mo ago
Can you confirm you're running version 0.13.4?
dandrass
dandrassOP15mo ago
is there a docker command that shows the version used by the container ? otherwise i just pulled latest tag to be sure
Serenaphic
Serenaphic15mo 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
dandrassOP15mo 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",
Serenaphic
Serenaphic15mo ago
Dammit it's not there :/
dandrass
dandrassOP15mo 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
dandrassOP15mo ago
No description
Serenaphic
Serenaphic15mo ago
What version where you updating from for it to not like it?
dandrass
dandrassOP15mo ago
can't really remember the precise version i think it was something like 0.12.5
Serenaphic
Serenaphic15mo ago
This shouldn't be a problem then Config should be compatible with v0.11
dandrass
dandrassOP15mo ago
i can send a copy of both jsons here
Serenaphic
Serenaphic15mo ago
You backedup your config before removing the folder right?
dandrass
dandrassOP15mo ago
yes
Serenaphic
Serenaphic15mo 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
dandrassOP15mo ago
of course i forgot once but not twice
dandrass
dandrassOP15mo ago
here is the old json
Serenaphic
Serenaphic15mo 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
dandrassOP15mo 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
Serenaphic
Serenaphic15mo 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
dandrassOP15mo 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