Nextcloud version (eg, 18.0.2): 19.0.0
Operating system and version (eg, Ubuntu 20.04): docker on proxmox
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):
The issue you are facing:
Using the android app I can explicitly upload a file from the app, but when I go to the Photos app and share a file to nextcloud, I get an error in the notifications panel “Upload failed, log in again / Wrong username or password”
Note that the regular log entries about the login failing is for the admin user, not peter (the username I logged in to the android app with). I have no idea what is trying to log in with the admin user credential.
Is this the first time you’ve seen this error? (Y/N): No!
Steps to replicate it:
- Install Android App, connect to a provider with a valid username and password
- In the Photos app, select a photo, select the 'Share to app’s icon in the lower left hand corner, and select Nextcloud as the app to share the photo with
- Wait for the upload to fail
The output of your Nextcloud log in Admin > Logging:
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:58-0400
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:44-0400
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:37-0400
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:33-0400
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:31-0400
Warning core Login failed: 'admin' (Remote IP: '172.19.0.1') 2020-06-15T10:40:30-0400
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'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,
),
),
'overwriteprotocol' => 'https',
'instanceid' => 'oce1dov6d8gp',
'passwordsalt' => '********************',
'secret' => '*****************',
'trusted_domains' =>
array (
0 => 'nextcloud.<DOMAIN>',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '19.0.0.12',
'overwrite.cli.url' => 'https://nextcloud.<DOMAIN>',
'dbname' => 'nextcloud',
'dbhost' => 'db:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '********',
'installed' => true,
);
The output of your Apache/nginx/system log in /var/log/____
:
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - peter [15/Jun/2020:14:55:06 +0000] "PROPFIND /remote.php/dav/files/peter/ HTTP/1.1" 207 386 "-" "Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:08 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:09 +0000] "GET /apps/logreader/poll?lastReqId=SQ5tuuY5vYdxxNhhp1pU HTTP/2.0" 200 2 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - peter [15/Jun/2020:14:55:16 +0000] "PROPFIND /remote.php/dav/files/peter/ HTTP/1.1" 207 387 "-" "Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:29 +0000] "GET /apps/logreader/poll?lastReqId=SQ5tuuY5vYdxxNhhp1pU HTTP/2.0" 200 2 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - peter [15/Jun/2020:14:55:36 +0000] "PROPFIND /remote.php/dav/files/peter/ HTTP/1.1" 207 386 "-" "Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:36 +0000] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.0"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:36 +0000] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.0"
proxy_1 | nginx.1 | nextcloud.heitman.us 172.19.0.1 - - [15/Jun/2020:14:55:37 +0000] "GET /index.php/204 HTTP/1.1" 204 0 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.12.0"