504 error at SSO login

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.6
How are you able to access your server: The webadmin
Direct access via physical keyboard/screen

Describe your issue

Edit: Noticed a similar (?) post in French. Did not notice anything amiss in my API logs.

I get a 504 error any time I try to log in at the SSO:

[POST] “https://exservername.noho.st/yunohost/portalapi/login”: 504

Admin interface works just fine. Diagnosis page lists two issues, high number of authentication failures and hairpinning not available. Did not have any issues for a while after the automatic domain/dns configuration issue was fixed.

Looked at all the service logs to see what might be going on. The only logs with errors that seemed related were the nginx logs where I get a bunch of ‘upstream timed out’ errors and authentication failures.

Any guidance is much appreciated.

Share relevant logs or error messages

https://paste.yunohost.org/ibafawocac.yaml

Have replaced username and server name in logs.

Not sure either why this would happen … 504 means the portal API took too long to answer, but I don’t see why it would take too long (we’re talking taking more than ~10 seconds? where it should simply answer in a few milliseconds …)

Naively you can try restarting the yunohost-portal-api service (either from the webadmin in Tools>Services>yunohost-portal-api or with sudo systemctl restart yunohost-portal-api) but I don’t expect this to fix the issue x_x

Yeah, did already try restarting the server and restarting the api service, no luck. I’ll keep prodding at it and see if I find anything.

I made a backup when my server was still (briefly) working. Yesterday I restored it, but it continued to give the the 504 error message.

Oddly enough, this morning it worked just fine. I was able to login to the user interface. The password I had originally set (in my backup) was a simple temporary password I had memorized, not one to keep for long, so I immediately changed it. After I changed the password I returned to find the user interface giving me the same error.

My changed password was long and had some unusual characters, so I changed the password again to something with fewer unusual characters. I continue to get the 504 error message now. I’ll try logging in again later to see if time does anything.

I wonder if there are any characters that can’t be used in user passwords?

Set up SSH because why the heck not.

Logging in via noho.st domain does not work at all, not for root nor admin.

Login via ip works but only as root, not as admin even though admin does have ssh permission.

image

Also tried setting up a .local domain. Can’t login via SSH using admin account either, but root works.