Unable to login to oauth after some time. #9748
Replies: 6 comments 5 replies
|
This looks to me like some sort of networking issue, not an Immich bug. |
|
(Immich Have been trying to setup Authelia with immich for a while now and am seeing this same error (albeit consistently). I have Authelia/LLDAP otherwise working well (e.g. with calibre-web) - I can manually hit other API functions successfully and get expected JSON back if I am logged into immich the normal way, e.g. In the ...so the endpoint should be there.... If I try to manually I get an appropriate error, so the endpoint is reachable: However, actually trying the Authelia login it consistently just hangs for a while then I get: Using bash inside the So...in all I am a bit confounded and stuck - and this is the only such error/report I can find, hence this contribution. ...and the |
|
Hey @bossanova808 , were you ever able to resolve this? I am experiencing exactly the same issue as you for days now, with no luck in resolving it. |
|
No, it doesn't work even after restart.
…On Mon, Jan 6, 2025, 19:51 MrWetsnow ***@***.***> wrote:
Does restarting the immich server fix it for you (it does for me every
time).
—
Reply to this email directly, view it on GitHub
<#9748 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABL3FTHEJWJNP3BEE266OSD2JLGC3AVCNFSM6AAAAABUWBE4USVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZVGI3DINQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Same issue, Immich 1.133 - oauth works right after containers start, but in a few minutes doesn't work... |
|
Any news on this??? ### Edit: For it seems to be some kind of TLS cert issue. I have local Authentik and local Immich running. I also have my own CA and TLS certificates. When my Authentik is for example: https://authentik.homelab.lan/ with IPs then I try to set these in Immich as Oauth ISSUER_URL and it is NOT WORKING: if I try the HTTP version the whole oauth process IS WORKING with this ISSUER_URL: but I have added my CA certificate into the immich server container and added to /etc/ssl/certs/ca-certificates. maybe we need some option in oauth settings to add a textfield for a custom CA certificate that has to be trusted?? ### Edit2: working solution for me now is to add an env variable for Node.js to trust my own CA certificate like this: Don't know if I also need to add my cert to /etc/ssl/certs/ca-certificates.crt but I did it just to be safe :-) |
Uh oh!
There was an error while loading. Please reload this page.
The bug
I have oauth working properly, it goes via cloudflare (which uses google accounts). No issues. Every once in a while, on a new computer where I need to login, it doesn't work.
I get the login screen, I click the button to try to login, and it eventually times out. The server logs show:
If I restart immich (I use docker compose) then I can immediately login again. I use a cloudflare tunnel to access the server (on a raspberry pi) remotely. I suspect something is running out of some resource, but I am not sure where to look. Next time this happens, what would be useful debug information to provide you with?
Thank you
Dan
The OS that Immich Server is running on
Debian 12 (piOS)
Version of Immich Server
v1.105.1
Version of Immich Mobile App
v1.105.1
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
[Nest] 6 - 05/24/2024, 9:41:40 PM ERROR [ImmichServer] [AuthService] Error in OAuth discovery: RPError: outgoing request timed out after 30000ms [Nest] 6 - 05/24/2024, 9:41:40 PM ERROR [ImmichServer] [AuthService] RPError: outgoing request timed out after 30000ms at /usr/src/app/node_modules/openid-client/lib/helpers/request.js:140:13 at async Issuer.discover (/usr/src/app/node_modules/openid-client/lib/issuer.js:143:22) at async AuthService.getOAuthClient (/usr/src/app/dist/services/auth.service.js:245:28) at async AuthService.authorize (/usr/src/app/dist/services/auth.service.js:144:24) [Nest] 6 - 05/24/2024, 9:41:45 PM LOG [ImmichServer] [EventRepository] Websocket Connect: iMU3QKmyUzdT3sKVAACR [Nest] 6 - 05/24/2024, 9:41:58 PM LOG [ImmichServer] [EventRepository] Websocket Disconnect: iMU3QKmyUzdT3sKVAACRAll reactions