H
Homarr4mo ago
Nirmata

Random fail after trying out oidc

I tried to set up osid with authentik but when I configured it i got the error
Error: connect ECONNREFUSED 172.23.0.14:45331
homarr | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16) {
homarr | errno: -111,
homarr | code: 'ECONNREFUSED',
homarr | syscall: 'connect',
homarr | address: '172.23.0.14',
homarr | port: 45331
Error: connect ECONNREFUSED 172.23.0.14:45331
homarr | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1571:16) {
homarr | errno: -111,
homarr | code: 'ECONNREFUSED',
homarr | syscall: 'connect',
homarr | address: '172.23.0.14',
homarr | port: 45331
OS: Ubuntu server Config:
homarr:
container_name: homarr
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
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
- ./homarr/data:/data
networks:
- services
environment:
- AUTH_PROVIDER="oidc"
- AUTH_OIDC_URI="https://REDACTED/application/o/homarr/"
- AUTH_OIDC_CLIENT_SECRET="REDACTED"
- AUTH_OIDC_CLIENT_ID="REDACTED"
- AUTH_OIDC_CLIENT_NAME="Authentik"
- AUTH_OIDC_AUTO_LOGIN="true"
- AUTH_OIDC_ADMIN_GROUP="authentik Admins"
homarr:
container_name: homarr
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
- ./homarr/configs:/app/data/configs
- ./homarr/icons:/app/public/icons
- ./homarr/data:/data
networks:
- services
environment:
- AUTH_PROVIDER="oidc"
- AUTH_OIDC_URI="https://REDACTED/application/o/homarr/"
- AUTH_OIDC_CLIENT_SECRET="REDACTED"
- AUTH_OIDC_CLIENT_ID="REDACTED"
- AUTH_OIDC_CLIENT_NAME="Authentik"
- AUTH_OIDC_AUTO_LOGIN="true"
- AUTH_OIDC_ADMIN_GROUP="authentik Admins"
Version: 0.15.3
Solution:
https://github.com/ajnart/homarr/issues/1909 Another user had similar problems as you on reddit, this link helped them figure things out...
GitHub
Environment Docker Version 0.15.0 Describe the problem Testing out the OIDC and have all setup, but it appears Homarr may need an additional environment variable set where we can define how Homarr ...
Jump to solution
12 Replies
Cakey Bot
Cakey Bot4mo ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
❓ Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Tag
Tag4mo ago
Hi, please redact your secret as well. Could you provide your logs in full, to give us more context.
Nirmata
Nirmata4mo ago
It won't open it gives a server error in browser
Tag
Tag4mo ago
Ok, can you please give the full logs for homarr's container?
Nirmata
Nirmata4mo ago
it just decided to work and gave this
Tag
Tag4mo ago
Homarr's container, not your browser. Please see Cakey bot's message But if it works now, all the best. (Btw those broser errors you have here are most likely from your extensions)
Nirmata
Nirmata4mo ago
Oh i'm slow i put the link in quotes and it wasn't supposed to be But it keeps redirecting to 'http://localhost:7575/api/auth/error?error=OAuthSignin' from the external URL
Tag
Tag4mo ago
Actually, the problem may be that you're using '=' instead of ':' You need to set the "NEXTAUTH_URL" env variable to your homarr address
Nirmata
Nirmata4mo ago
Copy let me try it
Solution
Tag
Tag4mo ago
https://github.com/ajnart/homarr/issues/1909 Another user had similar problems as you on reddit, this link helped them figure things out
GitHub
Environment Docker Version 0.15.0 Describe the problem Testing out the OIDC and have all setup, but it appears Homarr may need an additional environment variable set where we can define how Homarr ...
Tag
Tag4mo ago
One thing I'm reading there is that you should not put a trailing '/' at the end of the OIDC_URI
Nirmata
Nirmata4mo ago
It worked!!! Thanks a lot
Want results from more Discord servers?
Add your server