-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
504 Gateway Time-out after several failed log-in attempts #7228
Comments
This is the default behaviour. We have brute force protection build in and the timeout of your web server should be at least 30 seconds + the usual amount to account for that. The brute force penalty is between 1 and 30 seconds depending on the amount of invalid logins from that IP. If you really don't mind the security of your instance you could turn it of, but we do not recommend to do so: https://github.com/nextcloud/server/blob/master/config/config.sample.php#L232-L239 |
@MorrisJobke does "30 seconds + the usual amount" mean the NGNIX default (which is 60s) plus 30 additional seconds? |
Thank you very much for the detailed answer. I did not think that this behaviour was intentional, because the penalty time does not reset upon successful log-in. In another thread I read that this is a security measure, but from the customer's point of view this looks like the service is just slow for a couple of days. Would it not make sense if penalized IP addresses could at least be removed via the front-end by an administrator? |
@CamZie yes there is an Open issue for the unlocking. |
Steps to reproduce
Expected behaviour
Failed log-in attempts should not slow down page load or cause a 504 error. I do not have the brute force or any other security app enabled.
Actual behaviour
After each failed attempt, the /login page becomes increasingly slower to load and after ca. 8 times the error message "504 Gateway Time-out" appears. Trying from a different computer the page load speed is initially OK, but it also gets increasingly slower after the several failed log-in attempts.
Server configuration
Operating system: Debian 8.9 (jessie)
Web server: Nginx 1.12
Database: MySQL 5.5
PHP version: 5.6
Nextcloud version: 12.0.3
Updated from an older Nextcloud or fresh install: Fresh install
Signing status:
List of activated apps:
Nextcloud configuration:
Are you using encryption: no
Client configuration
Browser:
We have tried with Firefox and Chrome
Operating system:
Windows 10 and Linux
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
On another installation I get this:
Browser log
Browser log
The text was updated successfully, but these errors were encountered: