YunoHost-Apps / synapse_ynh

Matrix server (synapse) package for YunoHost
https://matrix.org/
GNU General Public License v3.0
79 stars 42 forks source link

Unable to log in after restoring from backup. Existing logged-in devices work without issues. #496

Open csolisr opened 1 week ago

csolisr commented 1 week ago

Describe the bug

After restoring from a backup, it's no longer possible to log in using the standard CAS login flow. Existing accounts with a valid login are still able to use the platform unimpeded, but new devices are unable to log in.

Context

Steps to reproduce

Expected behavior

The standard login workflow should commence, using CAS to validate the user's credentials and then returning to Element's dashboard.

Logs

The site redirects in my case to https://azkware.net/_matrix/cas_server.php/login?service=https%3A%2F%2Fazkware.net%2F_matrix%2Fclient%2Fr0%2Flogin%2Fcas%2Fticket%3FredirectUrl%3Dhttps%253A%252F%252Fchat.azkware.net%252F with an error 404 and the message "File not found."

csolisr commented 1 week ago

Just found the error, for some reason the owner for /var/www/synapse were set to be element, not synapse. A quick chown solved the issue for me.

Josue-T commented 3 days ago

Seem to be a bit strange as on the restoration the chown is expected to be done on /var/www/synapse. I can investigate more if you share me the restoration log.

csolisr commented 3 days ago

I'll have to search for the restoration log, but I'm not sure if I still have it since it was from last week and it might have been rotated already