Login Loop NC28 behind traefik

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, 29.0.5): 28 latest from docker
Operating system and version (eg, Ubuntu 24.04): Arch-Linux
Apache or nginx version (eg, Apache 2.4.25): see docker image
PHP version (eg, 8.3): see docker image

The issue you are facing:

When trying to log in over the Web interface I am stuck in a log in loop. All apps on Android, Desktop and ios are working fine. Just the log in through the Web interface is not working. I can’t see any error in the logs. Tried to disable two-factor-auth but it didn’t help.

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

Steps to replicate it:

  1. Open login page
  2. enter credentials
  3. hit enter
  4. be redirected to the login page

The output of your Nextcloud log in Admin > Logging:
As I can’t login, I can only provide the log from the container. this are the lines after hitting enter on the login page.

nextcloud-app  | 192.168.112.3 - - [22/Jul/2024:14:39:40 +0000] "POST /login HTTP/1.1" 200 9888 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
nextcloud-app  | 192.168.112.3 - - [22/Jul/2024:14:39:40 +0000] "GET /apps/theming/img/background/kamil-porembinski-clouds.jpg HTTP/1.1" 200 88328 "https://stoeber.dynv6.net/core/css/guest.css?v=1e15ea58-0" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
nextcloud-app  | 192.168.112.3 - - [22/Jul/2024:14:39:41 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/1.1" 200 6758 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"

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

PASTE HERE

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

<?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,
    ),
  ),
  'instanceid' => '....',
  'passwordsalt' => '.....',
  'secret' => '.....',
  'trusted_domains' => 
  array (
    0 => '192.168.1.22:9050',
    1 => '......dynv6.net',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '28.0.7.4',
  'overwrite.cli.url' => 'https://......dynv6.net',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '.....',
  'installed' => true,
  'maintenance' => false,
  'trusted_proxies' => 
  array (
    0 => '192.168.112.2',
  ),
  'overwritehost' => '.....dynv6.net',
  'overwriteprotocol' => 'https',
  'default_phone_region' => 'DE',
  'loglevel' => 0,
  'theme' => '',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'webmaster',
  'mail_domain' => '.....',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 's....',
  'mail_smtpport' => '465',
  'mail_smtpname' => '.....',
  'mail_smtppassword' => '....',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_qaulity' => '60',
  'preview_max_memory' => 2048,
  'preview_max_filesize_image' => 150,
  'maintenance_window_start' => 1,
);

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

{"reqId":"R6uDP6ii0Mb0VJBWRVYU","level":0,"time":"2024-07-22T15:11:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"rBbM3WTAub4O0pDeoOFM","level":0,"time":"2024-07-22T15:11:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"fwpBVzjmLqpVw97sOpJt","level":0,"time":"2024-07-22T15:12:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"hR6VEPd8fwNY6sDqvPGP","level":0,"time":"2024-07-22T15:12:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"Thd5ytIelyvCY9n7xblF","level":0,"time":"2024-07-22T15:13:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"LHUW7tVyWDi1zr2IQEbh","level":0,"time":"2024-07-22T15:13:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"TjppdQDGGwvYgzkrOfHH","level":0,"time":"2024-07-22T15:14:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"ISQPniw7gHbX5zg6pBy9","level":0,"time":"2024-07-22T15:14:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"FsHE4I8WMnUAEYeWBBb3","level":0,"time":"2024-07-22T15:15:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"KNyVAyTzDQET86XJNfRy","level":0,"time":"2024-07-22T15:15:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"0gnsZZxb2VtMujqZU2X1","level":0,"time":"2024-07-22T15:16:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"3gSuj0ctvDeLRsWSK6dm","level":0,"time":"2024-07-22T15:16:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"e21N8vu1JtRslyX7FwMt","level":0,"time":"2024-07-22T15:17:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"nzVJM7pQiaOBM4XT9mCo","level":0,"time":"2024-07-22T15:17:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"Pn9dOmJh8joISNoFH5xS","level":0,"time":"2024-07-22T15:18:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"JdCAbue5EEmZqKY5m275","level":0,"time":"2024-07-22T15:18:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"OwjZbQmAmD7cIc8x1jN2","level":0,"time":"2024-07-22T15:19:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"de4wALEdxB2Mfh9blIsm","level":0,"time":"2024-07-22T15:19:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"W41NBmWB6jgQidGhuhu3","level":0,"time":"2024-07-22T15:19:20+00:00","remoteAddr":"192.168.112.3","user":"--","app":"no app in context","method":"POST","url":"/index.php/apps/bookmarks/public/rest/v2/lock","message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":540,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":440,"function":"isTokenPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":593,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1154,"function":"tryBasicAuthLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1058,"function":"handleLogin","class":"OC","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","exception":{},"CustomMessage":"Token is not valid: Token is too short for a generated token, should be the password during basic auth"}}
{"reqId":"W41NBmWB6jgQidGhuhu3","level":0,"time":"2024-07-22T15:19:20+00:00","remoteAddr":"192.168.112.3","user":"--","app":"core","method":"POST","url":"/index.php/apps/bookmarks/public/rest/v2/lock","message":"Session token is invalid because it does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":796,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":354,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":81,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":139,"function":"setCredentials","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Controller/BookmarkController.php","line":823,"function":"getPermissionsForFolder","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[-1,["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"acquireLock","class":"OCA\\Bookmarks\\Controller\\BookmarkController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\BookmarkController"],"acquireLock"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\BookmarkController"],"acquireLock"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Bookmarks\\Controller\\BookmarkController","acquireLock",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["bookmarks.bookmark.acquire_lock"]]},{"file":"/var/www/html/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/bookmarks/public/rest/v2/lock"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Session token is invalid because it does not exist","user":"mathes","exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"EUccNNGPGFIWeOxTkaDi","level":0,"time":"2024-07-22T15:19:20+00:00","remoteAddr":"192.168.112.3","user":"--","app":"no app in context","method":"GET","url":"/index.php/apps/bookmarks/public/rest/v2/folder/-1/hash","message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":540,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":440,"function":"isTokenPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":593,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1154,"function":"tryBasicAuthLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1058,"function":"handleLogin","class":"OC","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","exception":{},"CustomMessage":"Token is not valid: Token is too short for a generated token, should be the password during basic auth"}}
{"reqId":"EUccNNGPGFIWeOxTkaDi","level":0,"time":"2024-07-22T15:19:20+00:00","remoteAddr":"192.168.112.3","user":"--","app":"core","method":"GET","url":"/index.php/apps/bookmarks/public/rest/v2/folder/-1/hash","message":"Session token is invalid because it does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":796,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":354,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":81,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":139,"function":"setCredentials","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Controller/FoldersController.php","line":394,"function":"getPermissionsForFolder","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[-1,["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"hashFolder","class":"OCA\\Bookmarks\\Controller\\FoldersController","type":"->","args":[-1,["title","url"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\FoldersController"],"hashFolder"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\FoldersController"],"hashFolder"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Bookmarks\\Controller\\FoldersController","hashFolder",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["-1","bookmarks.folders.hash_folder"]]},{"file":"/var/www/html/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/bookmarks/public/rest/v2/folder/-1/hash"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Session token is invalid because it does not exist","user":"mathes","exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"PXeCd7MHmBy029aMcO0G","level":0,"time":"2024-07-22T15:19:21+00:00","remoteAddr":"192.168.112.3","user":"--","app":"no app in context","method":"DELETE","url":"/index.php/apps/bookmarks/public/rest/v2/lock","message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":540,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":440,"function":"isTokenPassword","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":593,"function":"logClientIn","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1154,"function":"tryBasicAuthLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/base.php","line":1058,"function":"handleLogin","class":"OC","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Token is not valid: Token is too short for a generated token, should be the password during basic auth","exception":{},"CustomMessage":"Token is not valid: Token is too short for a generated token, should be the password during basic auth"}}
{"reqId":"PXeCd7MHmBy029aMcO0G","level":0,"time":"2024-07-22T15:19:21+00:00","remoteAddr":"192.168.112.3","user":"--","app":"core","method":"DELETE","url":"/index.php/apps/bookmarks/public/rest/v2/lock","message":"Session token is invalid because it does not exist","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"28.0.7.4","exception":{"Exception":"OC\\Authentication\\Exceptions\\InvalidTokenException","Message":"Token is too short for a generated token, should be the password during basic auth","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Authentication/Token/Manager.php","line":135,"function":"getToken","class":"OC\\Authentication\\Token\\PublicKeyTokenProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":796,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/User/Session.php","line":354,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":81,"function":"login","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Service/Authorizer.php","line":139,"function":"setCredentials","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/custom_apps/bookmarks/lib/Controller/BookmarkController.php","line":848,"function":"getPermissionsForFolder","class":"OCA\\Bookmarks\\Service\\Authorizer","type":"->","args":[-1,["OC\\AppFramework\\Http\\Request"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"releaseLock","class":"OCA\\Bookmarks\\Controller\\BookmarkController","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\BookmarkController"],"releaseLock"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Bookmarks\\Controller\\BookmarkController"],"releaseLock"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Bookmarks\\Controller\\BookmarkController","releaseLock",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["bookmarks.bookmark.release_lock"]]},{"file":"/var/www/html/lib/base.php","line":1069,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/bookmarks/public/rest/v2/lock"]},{"file":"/var/www/html/index.php","line":39,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php","Line":163,"message":"Session token is invalid because it does not exist","user":"mathes","exception":{},"CustomMessage":"Session token is invalid because it does not exist"}}
{"reqId":"hazDb6pNZWUL0stMykBb","level":0,"time":"2024-07-22T15:20:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"himxEbevMRC04bbQnm6s","level":0,"time":"2024-07-22T15:20:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"IjEvpH0sOm5kkOzOia45","level":0,"time":"2024-07-22T15:21:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}
{"reqId":"V2gSfC5yYq4pGSCxwIip","level":0,"time":"2024-07-22T15:21:15+00:00","remoteAddr":"192.168.112.3","user":"mathes","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Found 2 applicable event(s), changing user status","userAgent":"Mozilla/5.0 (Linux) mirall/3.13.2git (Nextcloud, endeavouros-6.9.10-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"mathes"}}
{"reqId":"91bunOoB4lqGBiSKAqRC","level":0,"time":"2024-07-22T15:22:07+00:00","remoteAddr":"192.168.112.3","user":"Wenz","app":"dav","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"No calendar events found for status check","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.13.2stable (build 24386) (Nextcloud, osx-21.6.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"28.0.7.4","data":{"app":"dav","user":"Wenz"}}

Please post the output of occ config:list system from inside the container to make sure you’re seeing the fully integrated config.

Also, please post your Docker Compose file.

Can you clarify what you mean by loop precisely? Also, please check your browser inspect under the Network tab to get an idea of what is really going on behind the scene.

'loglevel' => 0,

I would set this back to the default 2 or at least 1. Otherwise there will be too much noise and you’ll likely lose anything relevant in it.

Hi,

thanks for your fast reply. With “login loop” I mean that after entering the credentials and clicking on login. I was again on the login page and not on the dashboard.

Today they was a new Image pushed from the docker hub, and now it is working again.

Just for completenes here is the config, as requested from inside the container.

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.22:9050",
            "removed.dynv6.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "28.0.8.1",
        "overwrite.cli.url": "https:\/\/stoeber.dynv6.net",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": ".removed.dynv6.net",
        "overwriteprotocol": "https",
        "default_phone_region": "DE",
        "loglevel": 0,
        "theme": "",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_qaulity": "60",
        "preview_max_memory": 2048,
        "preview_max_filesize_image": 150,
        "maintenance_window_start": 1
    }
}

And the docker config.

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb:10.6
    restart: always
    container_name: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-read-only-compressed=OFF
    volumes:
      - ./nextcloud_db:/var/lib/mysql
    ports:
      - 3306:3306
    networks:
      - default
    environment:
      - MYSQL_ROOT_PASSWORD=....
      - MYSQL_PASSWORD=....
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MARIADB_AUTO_UPGRADE=true
    labels:
      - com.centurylinklabs.watchtower.enable=true


  nextcloud-app:
    image: nextcloud:28
    restart: always
    container_name: nextcloud-app
    depends_on:
      - db
    volumes:
      - ./nextcloud_www:/var/www/html
      - ./data:/var/www/html/data
    networks:
      - proxy
      - default
    labels:
      - traefik.enable=true
      - traefik.http.routers.nextcloud-app.entrypoints=web
      - traefik.http.routers.nextcloud-app.rule=Host(`removed.dynv6.net`)
      - traefik.http.routers.nextcloud-app-secure.entrypoints=web-secure
      - traefik.http.routers.nextcloud-app-secure.rule=Host(`removed.dynv6.net`)
      - traefik.http.routers.nextcloud-app-secure.tls=true
      - traefik.http.routers.nextcloud-app-secure.tls.certresolver=default
      - traefik.http.routers.nextcloud-app-secure.service=nextcloud-app
      - traefik.http.services.nextcloud-app.loadbalancer.server.port=80
      - traefik.http.middlewares.nextcloud-app-https-redirect.redirectscheme.scheme=web-secure
      - traefik.http.routers.nextcloud-app.middlewares=nextcloud-app-https-redirect
      - traefik.http.routers.nextcloud-app-secure.middlewares=nextcloud-dav,secHeaders@file
      - traefik.http.middlewares.nextcloud-dav.replacepathregex.regex=^/.well-known/ca(l|rd)dav
      - traefik.http.middlewares.nextcloud-dav.replacepathregex.replacement=/remote.php/dav/
      - traefik.docker.network=proxy
      - com.centurylinklabs.watchtower.enable=true
    environment:
      - MYSQL_PASSWORD=....
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - APACHE_DISABLE_REWRITE_IP=1
      - TRUSTED_PROXIES=192.168.112.2
      - OVERWRITEHOST=removed.dynv6.net
      - OVERWRITEPROTOCOL=https
      - PHP_MEMORY_LIMIT=2G
      - PHP_UPLOAD_LIMIT=32G
      - APACHE_BODY_LIMIT=0
      - NEXTCLOUD_INIT_HTACCESS=1

networks:
  proxy:
    external: true

Thanks for the hint with the loglevel. I will reduce it.

BG Mathias

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.