nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.34k stars 4.06k forks source link

`OC\Authentication\Exceptions\TokenPasswordExpiredException` spammed in log as "error" #41408

Open nickvergessen opened 11 months ago

nickvergessen commented 11 months ago

We have this log ~320 times already since 2 days.

{
  "reqId": "09mHVnNYnMs0lEpOn2sY",
  "level": 3,
  "time": "2023-11-13T08:19:45+00:00",
  "remoteAddr": "*** sensitive parameters replaced ***",
  "user": "*** sensitive parameters replaced ***",
  "app": "no app in context",
  "method": "POST",
  "url": "/ocs/v2.php/apps/spreed/api/v4/room/*** sensitive parameters replaced ***/participants/active",
  "message": "",
  "userAgent": "Mozilla/5.0 (iOS) Nextcloud-Talk v17.1.1",
  "version": "28.0.0.4",
  "exception": {
    "Exception": "OC\\Authentication\\Exceptions\\TokenPasswordExpiredException",
    "Message": "",
    "Code": 0,
    "Trace": [
      {
        "file": "…/lib/private/Authentication/Token/Manager.php",
        "line": 133,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "…/lib/private/User/Session.php",
        "line": 784,
        "function": "getToken",
        "class": "OC\\Authentication\\Token\\Manager",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "…/lib/private/User/Session.php",
        "line": 258,
        "function": "validateToken",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "…/lib/private/User/Session.php",
        "line": 233,
        "function": "validateSession",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/legacy/OC_App.php",
        "line": 227,
        "function": "getUser",
        "class": "OC\\User\\Session",
        "type": "->",
        "args": []
      },
      {
        "file": "…/lib/private/App/AppManager.php",
        "line": 195,
        "function": "getEnabledApps",
        "class": "OC_App",
        "type": "::",
        "args": []
      },
      {
        "file": "…/lib/private/legacy/OC_App.php",
        "line": 125,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->",
        "args": [
          [
            "extended_authentication"
          ]
        ]
      },
      {
        "file": "…/ocs/v1.php",
        "line": 53,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": [
          [
            "extended_authentication"
          ]
        ]
      },
      {
        "file": "…/ocs/v2.php",
        "line": 23,
        "args": [
          "…/ocs/v1.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "…/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
    "Line": 192,
    "CustomMessage": "--"
  }
}

Not sure what the problem actually is. Is this one of the added debugging steps for the session loss @ChristophWurst ? Or something else is wrong now?

ChristophWurst commented 11 months ago

This should be fixed by https://github.com/nextcloud/server/pull/41302

nickvergessen commented 11 months ago

But the log is an error, not a warning/debug, so I guess it's a different path?

nicfab commented 10 months ago

I have the same issue: Nextcloud Hub 7 (28.0.1). sshot_2024-01-03_09 27 11