H
Homarr7mo 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 Bot7mo 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?
Serenaphic
Serenaphic7mo ago
Hi, please redact your secret as well. Could you provide your logs in full, to give us more context.
Nirmata
NirmataOP7mo ago
It won't open it gives a server error in browser
Serenaphic
Serenaphic7mo ago
Ok, can you please give the full logs for homarr's container?
Nirmata
NirmataOP7mo ago
it just decided to work and gave this
Serenaphic
Serenaphic7mo 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
NirmataOP7mo 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
Serenaphic
Serenaphic7mo 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
NirmataOP7mo ago
Copy let me try it
Solution
Serenaphic
Serenaphic7mo 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 ...
Serenaphic
Serenaphic7mo ago
One thing I'm reading there is that you should not put a trailing '/' at the end of the OIDC_URI
Nirmata
NirmataOP7mo ago
It worked!!! Thanks a lot
Want results from more Discord servers?
Add your server