ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6k stars 275 forks source link

OIDC: outgoing request timed out after 3500ms #1995

Closed unknown015545 closed 5 months ago

unknown015545 commented 6 months ago

Environment

Docker

Version

latest

Describe the problem

When I try to login to homarr using OIDC, using authentik, the logs keep on reporting the error that the outgoing request timed out after 3500ms.

Logs

homarr | [next-auth][error][SIGNIN_OAUTH_ERROR] homarr | https://next-auth.js.org/errors#signin_oauth_error outgoing request timed out after 3500ms { homarr | error: { homarr | message: 'outgoing request timed out after 3500ms', homarr | stack: 'RPError: outgoing request timed out after 3500ms\n' + homarr | ' at /app/node_modules/openid-client/lib/helpers/request.js:137:13\n' + homarr | ' at async Issuer.discover (/app/node_modules/openid-client/lib/issuer.js:144:24)\n' + homarr | ' at async openidClient (/app/node_modules/next-auth/core/lib/oauth/client.js:16:14)\n' + homarr | ' at async getAuthorizationUrl (/app/node_modules/next-auth/core/lib/oauth/authorization-url.js:70:18)\n' + homarr | ' at async Object.signin (/app/node_modules/next-auth/core/routes/signin.js:38:24)\n' + homarr | ' at async AuthHandler (/app/node_modules/next-auth/core/index.js:260:26)\n' + homarr | ' at async NextAuthApiHandler (/app/node_modules/next-auth/next/index.js:22:19)\n' + homarr | ' at async auth (/app/.next/server/pages/api/auth/[...nextauth].js:129:12)', homarr | name: 'RPError' homarr | }, homarr | providerId: 'oidc', homarr | message: 'outgoing request timed out after 3500ms' homarr | }

Context

No response

Please tick the boxes

github-actions[bot] commented 6 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

ajnart commented 6 months ago

Did you manage to get it to work previously ? You probably have it configured incorrectly and it takes too long to answer for some reason. I'm not exactly sure how to help with this issue apart from saying to read the docs we have available and try-and-retry as I know it has been working for some other users

unknown015545 commented 6 months ago

I tested it and it worked when I used other applications, but it does not work with homarr for some reason.

catrielmuller commented 5 months ago

@unknown015545 You can try with this image (catrielmuller/homarr:oidc-timeout-1) that includes the changes of my PR #2002 And you can increase the Timeout to 60 seconds for example:

AUTH_OIDC_TIMEOUT="60000"
unknown015545 commented 5 months ago

Thank you. Now it works!