Nc enforced 2fa first login

Hi All,

I have enabled 2fa enforced on all users. Now when i create a new user all is wel. However when the user first login with its credentials loading takes a long time until i get a 504 error “gateway timeout”

if i then let the user login again the i get the screen to setup 2fa.

anyone having the same isseu or now how to resolve this?

found this in the reverse proxy logs

upstream: “https://192.168.2.12:443/index.php/login”, host: “nextcloud.domain.nl”
2022/03/07 22:28:17 [error] 9273#9273: *8053 upstream timed out (110: Connection timed out) while reading response header from upstream, client:

This is only on the first login. when 2th login then the 2fa shows up to configure.

Anyone having the same issues when enforcing 2fa?