User login into Nextcloud not possible anymore

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.6.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Windows 11 Pro 22H2
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 23.03.2025
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I cannot login any more

Steps to replicate it (hint: details matter!):

  1. Login always says wrong user or password
  2. There is only one user
  3. Password reset doesn’t send email
  4. Nexclout client is still connected and synchronizes
  5. I have verified the username and email in the database
  6. I tried FireFox and Edge
  7. Deleting whole browser history did not help

Log entries

Nextcloud

nextcloud.log

{"reqId":"Z9_fxgfHtvdXDYvCQatdbwAAAAE","level":2,"time":"2025-03-23T11:17:43+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"xyz","app":"no app in context","method":"GET","url":"/ocs/v1.php/cloud/capabilities?format=json","message":"Capabilities of OCA\\Files\\DirectEditingCapabilities took 0.47 seconds to generate.","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.1stable-Win64 (build 20211221) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"30.0.6.2","data":[]}
{"reqId":"Z-AsDabXqbYNkCe7TsclAgAAAAQ","level":2,"time":"2025-03-23T16:43:10+01:00","remoteAddr":"","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: webgo-admin (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AsIX2GNF35ANxKxZefowAAAAM","level":2,"time":"2025-03-23T16:43:30+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AsSnuBvhgJHfRMKbumywAAAAU","level":2,"time":"2025-03-23T16:44:11+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AsYn2GNF35ANxKxZefpgAAAAM","level":2,"time":"2025-03-23T16:44:35+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: webgo-admin (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-Asu32GNF35ANxKxZefqQAAAAM","level":2,"time":"2025-03-23T16:46:06+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-As2mEvE-MONahGf2PpdwAAAAA","level":2,"time":"2025-03-23T16:46:37+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: webgo-admin (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AuNBk52Br7qjR2R0W72gAAAAI","level":2,"time":"2025-03-23T16:52:27+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AvNnuBvhgJHfRMKbum_QAAAAU","level":2,"time":"2025-03-23T16:56:38+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"core","method":"POST","url":"/lostpassword/email","message":"Could not send password reset email: Could not find user webgo-admin","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":{"app":"core"}}
{"reqId":"Z-AxUH2GNF35ANxKxZef8QAAAAM","level":2,"time":"2025-03-23T17:05:37+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AxwqbXqbYNkCe7TsclXgAAAAQ","level":2,"time":"2025-03-23T17:07:33+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-AyMt9Xgyh1Mni1YhWjzQAAAAA","level":2,"time":"2025-03-23T17:09:29+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"core","method":"POST","url":"/login","message":"Login failed: 'xyz' (Remote IP: 'xxx.xxx.xxx.xxx')","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":{"app":"core"}}
{"reqId":"Z-AyMt9Xgyh1Mni1YhWjzQAAAAA","level":2,"time":"2025-03-23T17:09:29+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz@xyz.de (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A0m99Xgyh1Mni1YhWj4AAAAAA","level":2,"time":"2025-03-23T17:19:53+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A0mzFSleZbn0ZGHnMkygAAAAE","level":2,"time":"2025-03-23T17:19:54+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A05H2GNF35ANxKxZegGAAAAAM","level":2,"time":"2025-03-23T17:21:18+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A2LN9Xgyh1Mni1YhWj-AAAAAA","level":2,"time":"2025-03-23T17:26:46+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A3qhk52Br7qjR2R0W8RQAAAAI","level":2,"time":"2025-03-23T17:33:07+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}
{"reqId":"Z-A6QDFSleZbn0ZGHnMlDAAAAAE","level":2,"time":"2025-03-23T17:44:10+01:00","remoteAddr":"xxx.xxx.xxx.xxx","user":"--","app":"no app in context","method":"POST","url":"/login","message":"Login failed: xyz (Remote IP: xxx.xxx.xxx.xxx)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0","version":"30.0.6.2","data":[]}

Configuration

Nextcloud

config.php

<?php $CONFIG = array ( 'passwordsalt' => 'xyz', 'secret' => 'xyz', 'trusted_domains' => array ( 0 => 'localhost', 1 => 'www.xyz.de', 3 => '*.xyz.de', 4 => 'xyz.de', ), 'datadirectory' => '/xyz/data', 'dbtype' => 'mysql', 'version' => '30.0.6.2', 'overwrite.cli.url' => 'http://www.xyz.de', 'dbname' => 'xyz', 'dbhost' => '127.0.0.1:3306', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'xyz', 'dbpassword' => 'xyz', 'installed' => true, 'instanceid' => 'xyz', 'htaccess.RewriteBase' => '/', 'appstoreenabled' => false, 'logtimezone' => 'Europe/Berlin', 'memcache.local' => '\\OC\\Memcache\\APCu', 'updatechecker' => false, 'maintenance' => false, 'theme' => '', 'loglevel' => 2, 'default_phone_region' => 'DE', 'mail_domain' => 'xyz.de', 'mail_from_address' => 'webmaster', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_smtphost' => 'xyz', 'mail_smtpport' => '123', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'mail_smtpauth' => 1, 'mail_smtpname' => 'xyz', 'mail_smtppassword' => 'xyz', 'forbidden_filename_basenames' => array ( 0 => 'con', 1 => 'prn', 2 => 'aux', 3 => 'nul', 4 => 'com0', 5 => 'com1', 6 => 'com2', 7 => 'com3', 8 => 'com4', 9 => 'com5', 10 => 'com6', 11 => 'com7', 12 => 'com8', 13 => 'com9', 14 => 'com¹', 15 => 'com²', 16 => 'com³', 17 => 'lpt0', 18 => 'lpt1', 19 => 'lpt2', 20 => 'lpt3', 21 => 'lpt4', 22 => 'lpt5', 23 => 'lpt6', 24 => 'lpt7', 25 => 'lpt8', 26 => 'lpt9', 27 => 'lpt¹', 28 => 'lpt²', 29 => 'lpt³', ), 'forbidden_filename_characters' => array ( 0 => '<', 1 => '>', 2 => ':', 3 => '"', 4 => '|', 5 => '?', 6 => '*', 7 => '\\', 8 => '/', ), 'forbidden_filename_extensions' => array ( 0 => ' ', 1 => '.', 2 => '.filepart', 3 => '.part', ), 'updater.secret' => 'xyz', ); ```

I can think of two actions you can do:

  1. there is a max. failed login counter. [ Users getting disabled due to invalid login attempts from `passwords` app ] Do you see anything in the log about this?

  2. You can reset your admin password. See Resetting a lost admin password — Nextcloud latest Administration Manual latest documentation

1 Like

Thank you very much, resetting the admin password was the right solution for my issue.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.