After a clean install of nextcloud everything worked fine at first, but then nobody could log in anymore. The login mask shows the “too many login attempts, your request is being delayed by 30 seconds”, although I am with a fresh IP and fresh coockies, every time.
When I log in, I get a HTTP 500 ERROR. When I try to change my password, it is a gamble whether it is able to send the email or not. When I type the wrong password, it tells me accordingly.
Users that were already logged in via a desktop application, can still operate, but nobody is able to log in via the login site.
One exception: The admin user that I created with the installation, is always able to log in. When the admin user is logged in, other users can log in too. (???)
My Nextcloud is sitting behind an apache reverse proxy. Everything worked fine so far.
I am running the latest docker image with the docker-compose file as followed:
volumes:
nextcloud:
db:
services:
db:
image: mariadb:10.5
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=[REDACTED]
- MYSQL_PASSWORD=[REDACTED]
- MYSQL_DATABASE=[REDACTED]
- MYSQL_USER=[REDACTED]
app:
image: nextcloud
restart: always
ports:
- [REDACTED]:80
links:
- db
volumes:
- nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=[REDACTED]
- MYSQL_DATABASE=[REDACTED]
- MYSQL_USER=[REDACTED]
- MYSQL_HOST=[REDACTED]
Config.php:
<?php
$CONFIG = array (
'overwriteprotocol' => 'https',
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'oc4vf4ie9ati',
'passwordsalt' => [REDACTED],
'secret' =>[REDACTED],
'trusted_domains' =>
array (
0 => [REDACTED],
),
'trusted_proxies' =>
array(
0 =>[my public ip]
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.3.2',
'overwrite.cli.url' => [REDACTED],
'dbname' => '[REDACTED]',
'dbhost' => '[REDACTED]',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '[REDACTED]',
'dbpassword' => '[REDACTED]!',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '[REDACTED]',
'mail_domain' => '[REDACTED]',
'mail_smtphost' => '[REDACTED]',
'mail_smtpsecure' => 'tls',
'mail_smtpport' => '587',
'mail_smtpauth' => 1,
'mail_smtpname' => '[REDACTED]',
'mail_smtppassword' => '[REDACTED]',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpdebug' => true,
);
My nextcloud.log shows this every few seconds (the user is logged in via nextcloud desktop for windows):
{"reqId":"wpJVw3SXocQrlFtKDZko","level":3,"time":"2023-01-31T17:20:34+00:00","remoteAddr":"[IP]","user":"[logged in user]","app":"no app in context","method":"POST","url":"/remote.php/dav/bulk","message":"An error occurred while reading headers of a part","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.3.2","data":[]}
My portainer logs do not show anything useful.
My host machine reverse proxy apache does not show anything either.
My docker’s webserver error.log is empty-
If I failed to provide enough information, I apologize. Please tell me so.