Can't login to the web interface

Support intro

I can log with the desktop and mobile application and everything is working fine. But when I tried to log into the web interface it’s not working. I have this issue since I update to version 19.

Nextcloud version (eg, 18.0.2): 19.0.1.1
Operating system and version (eg, Ubuntu 20.04): Slackware 14.2
Apache or nginx version (eg, Apache 2.4.25): nginx 1.12.2
PHP version (eg, 7.1): PHP 7.4.9

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Upgrade to version 19.0.1.1 through command line (occ upgrade)
  2. log to the web interface

The output of your Nextcloud log in Admin > Logging:

{"reqId":"Tv5VeiJHDV6RKHt0Aah2","level":0,"time":"2020-08-24T21:00:25+00:00","remoteAddr":"10.42.42.5","user":"--","app":"core","method":"GET","url":"/apps/files/","message":{"Exception":"OC\\AppFramework\\Middleware\\Security\\Exceptions\\NotLoggedInException","Message":"Current user is not logged in","Code":401,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":98,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\SecurityMiddleware","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":98,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":137,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1007,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php","Line":142,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125","version":"19.0.1.1"}
{"reqId":"FwiqR2vmIUarxJAkphkG","level":0,"time":"2020-08-24T21:00:25+00:00","remoteAddr":"10.42.42.5","user":"--","app":"fulltextsearch","method":"GET","url":"/login?redirect_url=/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125","version":"19.0.1.1"}
{"reqId":"FwiqR2vmIUarxJAkphkG","level":0,"time":"2020-08-24T21:00:25+00:00","remoteAddr":"10.42.42.5","user":"--","app":"fulltextsearch","method":"GET","url":"/login?redirect_url=/apps/files/","message":"Could not determine if provider with id 'files' was properly indexed because the corresponding provider-option could not be found. Make sure the initial indexing process has been completed successfully.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125","version":"19.0.1.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => N/A,
  'passwordsalt' => N/A,
  'secret' => N/A,
  'trusted_domains' => 
  array (
    0 => 'cloud.domain.pw',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://cloud.domain.pw/nextcloud',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'logtimezone' => 'UTC',
  'installed' => true,
  'loglevel' => 0,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
    'timeout' => 1.5,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_from_address' => 'cloud',
  'mail_domain' => N/A,
  'mail_smtphost' => N/A,
  'mail_smtpport' => '587',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => N/A,
  'mail_smtppassword' => N/A,
  'theme' => '',
  'dbname' => 'nextcloud',
  'dbhost' => '127.0.0.1:3306',
  'dbuser' => N/A,
  'dbpassword' => N/A,
  'mysql.utf8mb4' => true,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updater.release.channel' => 'stable',
  'trashbin_retention_obligation' => 'auto, 3',
);

The output of your Apache/nginx/system log in /var/log/____:

0.42.42.5 - - [25/Aug/2020:00:58:45 +0400] "GET /login?redirect_url=/apps/files/ HTTP/1.1" 200 4213 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125"
10.42.42.5 - user [25/Aug/2020:00:58:51 +0400] "PROPFIND /remote.php/dav/files/user/ HTTP/1.1" 207 400 "-" "Mozilla/5.0 (Linux) mirall/2.6.5stable (build 20200710) (Nextcloud)"
10.42.42.5 - - [25/Aug/2020:00:58:53 +0400] "POST /login HTTP/1.1" 303 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125"
10.42.42.5 - - [25/Aug/2020:00:58:53 +0400] "GET /apps/files/ HTTP/1.1" 303 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125"
10.42.42.5 - - [25/Aug/2020:00:58:53 +0400] "GET /login?redirect_url=/apps/files/ HTTP/1.1" 200 4203 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.125"