I am using nextcloud 18.0.6 and recently upgraded from 18.0.3.
The additional app passwords from security -> devices & sessions are not working. Passwords are generated over the "Create new app password" button.
I created a new app password, the android nextcloud app responds with incorrect credentials, same by using a browser and the app login.
The log says:
Info core Bruteforce attempt from “****” detected for action “login”.
Warning no app in context Login failed: **** (Remote IP: ****)
I cleared the database bruteforce attempt entry with my IP address, but at the first login attempt with the correct (generated) _app login_ credentials, a new bruteforce attempt entry is created in the database and the login is rejected with "Wrong username or password. "
Update:
_Just tested on a nextcloud hoster with 18.0.6 (updated from 18.0.3), with the same problem!_
Login successful.
Error Message "Wrong username or password. "
Debian buster
Web server:
Apache 2.4.38-3+deb10u3
Database:
MariaDB
PHP version:
php 7.3
**Nextcloud version: 18.0.6
Updated from an older Nextcloud/ownCloud or fresh install:
18.0.3.
Where did you install Nextcloud from:
https://nextcloud.com/install/
Signing status:
Signing status
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
No errors have been found.
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
```
Enabled:
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"192.168.***.**",
"*****.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/192.168.***.**\/nextcloud",
"dbtype": "mysql",
"version": "18.0.6.0",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"forcessl": true,
"forceSSLforSubdomains": true,
"loglevel": 0,
"theme": "",
"memcache.local": "\\OC\\Memcache\\APCu",
"maintenance": false,
"updatechecker": false,
"appstoreenabled": true,
"trashbin_retention_obligation": "auto",
"htaccess.RewriteBase": "\/nextcloud",
"mysql.utf8mb4": true,
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
Same problem on 19.0.1, newly generated app passwords are no longer working.
Same problem on 18.0.7, debian buster with Apache 2.4 and PHP 7.3
I see the same thing here, errors in the log that I think are related look like this:
[no app in context] Warning: Login failed: nielsenb (Remote IP: 172.19.0.2)
POST /login
from 172.19.0.2 at 2020-08-18T21:23:35+00:00
I am running Nextcloud behind a reverse proxy with nginx to handle SSL. I managed to get things working by setting 'overwriteprotocol' => 'https' in config.php.
I see the same thing here, errors in the log that I think are related look like this:
[no app in context] Warning: Login failed: nielsenb (Remote IP: 172.19.0.2) POST /login from 172.19.0.2 at 2020-08-18T21:23:35+00:00I am running Nextcloud behind a reverse proxy with nginx to handle SSL. I managed to get things working by setting
'overwriteprotocol' => 'https'inconfig.php.
Thanks for your effort, I'll try your fix very soon!
I see the same thing here, errors in the log that I think are related look like this:
[no app in context] Warning: Login failed: nielsenb (Remote IP: 172.19.0.2) POST /login from 172.19.0.2 at 2020-08-18T21:23:35+00:00I am running Nextcloud behind a reverse proxy with nginx to handle SSL. I managed to get things working by setting
'overwriteprotocol' => 'https'inconfig.php.
Still login failed "Wrong username or password. " with app login. :/
@nielsenb-jf Sadly the workaround is not working here.
This should be higher priority as it's currently no longer possible to add new apps to the nextcloud account without revealing the main password.
I see the same thing here, errors in the log that I think are related look like this:
[no app in context] Warning: Login failed: nielsenb (Remote IP: 172.19.0.2) POST /login from 172.19.0.2 at 2020-08-18T21:23:35+00:00I am running Nextcloud behind a reverse proxy with nginx to handle SSL. I managed to get things working by setting
'overwriteprotocol' => 'https'inconfig.php.Still login failed "Wrong username or password. " with app login. :/
Same here. :/
Also fails for me, Nextcloud 19.0.2
https://<myDomain>.com/index.php/settings/integrity/failed
returns
No errors have been found.
Issue persists on Nextcloud 19.0.5.
Most helpful comment
@nielsenb-jf Sadly the workaround is not working here.
This should be higher priority as it's currently no longer possible to add new apps to the nextcloud account without revealing the main password.