504 Gateway error for one admin user when logging in on webpage. Webdav also fails via windows explorer.
All other users can login.
Have reset password for user
Have reset quota for user (unlimited)
Currently running “sudo docker exec -ti --user www-data nextcloud-app /var/www/html/occ files:scan --all” waiting for it to complete
Nextcloud version _18.0.4
Operating system and version _debian 10 (buster)
I run a docker yml file which pulls the “latest”
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
Log in via web and use that one user and it times out. All other users can log in.
The output of your Nextcloud log in Admin > Logging:
[core] Warning: Login failed: 'Jesse' (Remote IP: '172.19.0.2')
PROPFIND /remote.php/dav/files/jesse/
from 172.19.0.2 at 2022-04-13T22:33:07+00:00
Here is some more info further to the problem. if I run “sudo docker exec -ti --user www-data nextcloud-app /var/www/html/ occ files:scan user” I get the following errors:
Still trying to figure this out. I have abandoned the idea of getting help on how to recover a user and for those who have the same problem here is what else I’ve tried so far.
Created a new user
Transferred the files/ownership over to the new user. In terminal: sudo docker exec -ti --user www-data nextcloud-app /var/www/html/occ files:transfer-ownership <old_*user> <new_*user>
wait
Ran OCC file scan to update the database: sudo docker exec -ti --user www-data nextcloud-app /var/www/html/occ files:scan --all
Removed the old user: sudo docker exec -ti --user www-data nextcloud-app php occ user:delete
Logged in with the new user and had the same gateway error
Checked the user files and noticed 2 directories one called “money$$$$$” and another called “My *Important Files”. I renamed the files to “money” & “My Important files”
Re ran the occ filescan from above
Logged back in as the new user & success!!!
Need to add the old user back in and transfer files back into old user
Recreated old user and tried to log in. Had same gateway timeout error as before. I also noticed that it repopulated the del users picture in the recreated profile.
Once again removed the old user from both the web config & the occ user:delete
I log into the mysql and run “select * FROM oc_users;” I confirm the deleted user no longer there
Do a search in the nextcloud folder & notice in /nextcloud/app/data/apppdata_oc5xaatrriz7/avatar & …/appdata…/identityproof/ the old user is in there. Delete both of those folders. Recreated the old user and still failed
Tried creating same user with a different password…still failed
I cant create a new user with the old users name. I have created a new user with a unique name and will let the user now their new login name. I have no idea what’s wrong as the user is not in the mysql table so it must have that username locked somewhere in one of the other files.
I hope it helps save someone else some time. Maybe it’s a bug in nextcloud?
I did. Clear cookies. Incognito mode. Other browser. Other device. On another computer (tried 3 devices in total), another account works but mine does not. Impersonating works, but logging in with my account does not. Logging in with another account is working.
No, I could not find an answer here. I’m surprised none of the admins could/would help. A little discouraging. Eventually I just created a new user instead of “user” it’s now “user1”
It’s a workaround. Hopefully this will bring some attention to this problem though.
[SOLVED] in my case…
I could login with my user after using
occ files:scan-app-data
I don’t understand why this helped but perhaps there are some other peolple out there who have the same problem. Seems that 504 -Gateway - error is quite common…