Nextcloud version _ 19.0.1_:
Operating system and version docker image nextcloud:fpm on ubuntu:
nginx version (1.19.1):
PHP version (PHP 7.4.8 (cli) (built: Jul 22 2020 09:39:30) ( NTS )):
The issue you are facing:
Logging in from browser, no problem. But can’t log in from the android app. It just gets stuck without any errors
Is this the first time you’ve seen this error? Y:
Steps to replicate it:
- Install the android app (or reinstall)
- enter the address (https://nextcloud.my-domain-example.com)
- enter valid credentials (which are working in mobile chrome)
- Got dialogue “allow this device…”
- press “allow access”
- got stuck: loader infinitely rotates
The output of your Nextcloud log in Admin > Logging:
Debug cron Finished OC\Command\CommandJob job with ID 2197 in 0 seconds несколько секунд назад
Debug cron Run OC\Command\CommandJob job with ID 2197 несколько секунд назад
Debug cron Finished OC\Command\CommandJob job with ID 2196 in 0 seconds несколько секунд назад
Debug cron Run OC\Command\CommandJob job with ID 2196 несколько секунд назад
Debug core OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in несколько секунд назад
Debug cron Finished OC\Command\CommandJob job with ID 2195 in 0 seconds несколько секунд назад
Debug cron Run OC\Command\CommandJob job with ID 2195 несколько секунд назад
Debug webdav Sabre\DAV\Exception\NotAuthenticated: No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured
And after the 5 step logs are completely empty.
Also there is db error before 5th step:
db_1 | 2020-07-29 23:02:06.856 UTC [121] ERROR: duplicate key value violates unique constraint "oc_credentials_pkey"
db_1 | 2020-07-29 23:02:06.856 UTC [121] DETAIL: Key ("user", identifier)=(--my-login-stripped--, password::logincredentials/credentials) already exists.
db_1 | 2020-07-29 23:02:06.856 UTC [121] STATEMENT: INSERT INTO "oc_credentials" ("user", "identifier", "credentials") VALUES($1, $2, $3)
The output of your nginx:
app_1 | - - 30/Jul/2020:00:04:33 +0000 "POST /index.php" 303
web_1 | 192.168.88.89 - - [30/Jul/2020:00:04:34 +0000] "POST /login HTTP/1.0" 303 0 "-" "Samsung SM-G970F (Android)" "192.168.88.89"
app_1 | - - 30/Jul/2020:00:04:35 +0000 "GET /index.php" 200
web_1 | 192.168.88.89 - - [30/Jul/2020:00:04:35 +0000] "GET /login/flow/grant?clientIdentifier=&stateToken=D4jjnfFYG9EP4xshtlORrkA9w4oJoyTsutQs8qpaass8fQnshbrXKcjdhstFw8kY HTTP/1.0" 200 6404 "-" "Samsung SM-G970F (Android)" "192.168.88.89"
app_1 | - - 30/Jul/2020:00:04:35 +0000 "GET /index.php" 200
web_1 | 192.168.88.89 - - [30/Jul/2020:00:04:35 +0000] "GET /core/js/oc.js?v=55389038 HTTP/1.0" 200 10349 "-" "Samsung SM-G970F (Android)" "192.168.88.89"
app_1 | - - 30/Jul/2020:00:04:35 +0000 "GET /cron.php" 200
web_1 | 192.168.88.89 - - [30/Jul/2020:00:04:35 +0000] "GET /cron.php HTTP/1.0" 200 20 "-" "Samsung SM-G970F (Android)" "192.168.88.89"
app_1 | - - 30/Jul/2020:00:04:17 +0000 "GET /index.php" 200
and web client makes
web_1 | 172.18.0.1 - - [30/Jul/2020:00:04:35 +0000] "GET /apps/logreader/poll?lastReqId=AY2QV3ASfQJKOmqVGtmG HTTP/1.0" 200 631 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" "172.18.0.1"
app_1 | - - 30/Jul/2020:00:04:47 +0000 "GET /ocs/v2.php" 200
web_1 | 172.18.0.1 - - [30/Jul/2020:00:04:47 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 3252 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" "172.18.0.1"
app_1 | - - 30/Jul/2020:00:04:52 +0000 "GET /ocs/v2.php" 200
web_1 | 172.18.0.1 - - [30/Jul/2020:00:04:52 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.0" 200 3252 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" "172.18.0.1"
app_1 | - - 30/Jul/2020:00:04:35 +0000 "GET /index.php" 200
web_1 | 172.18.0.1 - - [30/Jul/2020:00:04:56 +0000] "GET /apps/logreader/poll?lastReqId=olUPGaiDVwsAvxuj1NG2 HTTP/1.0" 200 2 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36" "172.18.0.1"
app_1 | - - 30/Jul/2020:00:04:56 +0000 "GET /index.php" 200
My android nextcloud worked well some versions ago (for a year or more), but after logout I can’t log in