Unable to login, need to clear the data stored in my browser

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): nginx/1.20.2
PHP version (eg, 7.4): 7.4
Note: nextcloud is running in a docker container, and a nginx outside the container is reverse proxying the nextcloud’s port

The issue you are facing: Unable to login after a while, the page only refresh itself, fixed after removing all data stored in my browser.

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

Steps to replicate it:

  1. Log-in and log-out your nextcloud account
  2. Wait for about one day
  3. Login, then the page only refresh, never login

The output of your Nextcloud log in Admin > Logging:

{"reqId":"P4z0fyf56LGSDu23elL7","level":0,"time":"2022-01-17T02:16:55+00:00","remoteAddr":"172.70.178.184","user":"--","app":"no app in context","method":"GET","url":"/apps/mail/","message":"Current user is not logged in","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15","version":"23.0.0.10","exception":{"Exception":"OC\\AppFramework\\Middleware\\Security\\Exceptions\\NotLoggedInException","Message":"Current user is not logged in","Code":401,"Trace":[{"file":"/config/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":97,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\Security\\SecurityMiddleware","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/config/www/nextcloud/lib/base.php","line":1006,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/config/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/config/www/nextcloud/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php","Line":153,"CustomMessage":"Current user is not logged in"},"id":"61e4d1ffbcb74"}

CleanShot 2022-01-16 at 20.35.15@2x

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'instanceid' => '***REMOVED***,
  'passwordsalt' => '***REMOVED***',
  'secret' => '***REMOVED***',
  'trusted_domains' =>
  array (
    0 => 'mydomain.com',
  ),
  'dbtype' => 'sqlite3',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'https://mydomain.com',
  'installed' => true,
  'defaultapp' => 'mail',
  'loglevel' => '0',
);

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

No useful log can be provided this time