Hi all,
I’m running my Gitea 1.21.4 instance in Docker and I’ve set up Authelia as an OIDC provider. Up until a couple of weeks ago, all was fine. Now, however, I’m unable to use Authelia:
2024/01/29 15:19:03 ...rs/web/auth/oauth.go:876:SignInOAuth() [E] SignIn: no provider for authelia exists
2024/01/29 15:19:03 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/oauth2/authelia for 10.0.0.1:0, 500 Internal Server Error in 30003.9ms @ auth/oauth.go:847(auth.SignInOAuth)
2024/01/29 15:19:03 .../providers_openid.go:44:CreateGothProvider() [W] Failed to create OpenID Connect Provider with name 'authelia' with url 'https://auth.mydomain.com/.well-known/openid-configuration': Get "https://auth.mydomain.com/.well-known/openid-configuration": dial tcp XXX.XXX.XXX.XXX:443: i/o timeout
2024/01/29 15:19:03 ...ource/oauth2/init.go:73:initOAuth2Sources() [E] Unable to register source: authelia due to Error: Failed to initialize OpenID Connect Provider with name 'authelia' with url 'https://auth.mydomain.com/.well-known/openid-configuration': Get "https://auth.mydomain.com/.well-known/openid-configuration": dial tcp XXX.XXX.XXX.XXX:443: i/o timeout.
2024/01/29 15:18:37 ...eb/routing/logger.go:68:func1() [W] router: slow GET /user/oauth2/authelia for 10.0.0.1:0, elapsed 3821.8ms @ auth/oauth.go:847(auth.SignInOAuth)
2024/01/29 15:18:32 ...eb/routing/logger.go:102:func1() [I] router: completed GET /user/login?redirect_to=%2f for 10.0.0.1:0, 200 OK in 6.8ms @ auth/auth.go:141(auth.SignIn)
2024/01/29 15:18:30 ...eb/routing/logger.go:102:func1() [I] router: completed GET / for 10.0.0.1:0, 200 OK in 2.5ms @ web/home.go:32(web.Home)
https://auth.mydomain.com/.well-known/openid-configuration
IS reachable, both from my machine AND from within Gitea’s container. Moreover, pinging it shows the correct public IP address. CURL, however, fails and I can’t understand why:
curl: (28) Failed to connect to auth.mydomain.com 443 after 129531 ms: Couldn't connect to server
Traceroute
returns just 2 hops, as it should.
Both Gitea and Authelia are within the same Docker network, on the same physical server.
Could someone help me figure out what’s causing this behaviour, please?
Thanks!