Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #3888
nickvergessen opened this issue Nov 13, 2023 · 3 comments

Comments

@nickvergessen
Copy link
Member

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
Copy link
Member

This should be fixed by #41302

@nickvergessen
Copy link
Member Author

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

@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@nicfab
Copy link

nicfab commented Jan 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants