Login error on nextcloud: nextcloud automatically deletes session cookie

When logging in, I was instantaniously redirected to the login page. So I investigated but found no errors (later i found debugerrors) in the logs (I even disable suspicious_login). I then looked into the network tab and found in the server response of the login POST following:
Set-Cookie: ocua81y1ulx6=LONG_STRING_PROBABLY_SESSION; expires=Mon, 31-Aug-2020 17:31:12 GMT; Max-Age=86400; path=/; secure; HttpOnly; SameSite=Strict; Secure
Set-Cookie: ocua81y1ulx6=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; Secure
Note: This is in the same response and no headers in between.
The only possible way that this can happen is:

  1. something went wrong in the database but nextcloud doest log it
  2. this is intended and Im doing something wrong
    When i set the loglevel to 0 i found following error:

Debug core OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at 2020-08-30T17:40:13+00:00
…/Middleware/Security/SecurityMiddleware.php line 142
0. …/MiddlewareDispatcher.php line 97
OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController()

1. .../AppFramework/Http/Dispatcher.php line 97
OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController()

2. lib/private/AppFramework/App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch()

3. lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main()

4. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke()

5. lib/private/Route/Router.php line 299
call_user_func()

6. lib/base.php line 1008
OC\Route\Router->match()

7. index.php line 38
OC::handleRequest()
  1. Why is this error DEBUG
  2. Whats the underlying Problem here?

What browser did you use?
Have you tried others?

This behaviour can happen in Chrome when you have an extension like BreakThePaywall installed and activated…

I used firefox
I’ll try the android stockbrowser now

didnt work
any idea how i could debug?

Update:
I updated nextcloud by downloading the latest archive and extracting it over the old data. It seems to work now

@Torben-A-W

Hint for further problems
If you do not know if the problem is the client (browser) or server (nextcloud hosting) you can test it with e.g. https://try.nextcloud.com . Few seconds for creating a 60 minutes test account.

1 Like

Thanks for the info, I’ll try next time :grinning: