-
Notifications
You must be signed in to change notification settings - Fork 75
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
Undefined variable $result at /var/www/nextcloud/apps/user_saml/lib/GroupBackend.php#219” #838
Comments
Hi @roynabb, thanks for reporting. The log entry about |
Hello, Thank you for your time and effort. [index] Error: Call to a member function addUser() on null in file '/var/www/nextcloud/apps/user_saml/lib/GroupManager.php' line 193 |
Thanks, unfortunately this is not complete. Please check in the nextcloud.log file in the data directory. If your issue is reproducible, you may want to try to apply the changes in https://github.com/nextcloud/user_saml/pull/839/files for the file |
Nextcloud.log file : {"reqId":"o5NiTptBHUriM1iaiZx6","level":0,"time":"2024-04-29T08:34:33+00:00","remoteAddr":"","user":"leruyetj","app":"encryption","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"28.0.4.1","data":{"app":"encryption"}} |
Hm, it does not include any related entry. |
New logs:
Caused by Error Call to a member function addUser() on null -Undefined variable $result at /var/www/nextcloud/apps/user_saml/lib/GroupBackend.php#219 |
Thanks, the first one is probably unrelated, the second one does not give much more info. #838 (comment) would reveal more (and the proper log file that can also be downloaded from the Logging page). |
Hi, i can confirm this issue. After logging an error message as above occurs and i am prompted to login again. My Upgrade was from nextcloud enterprise 28.0.3 (user_saml v6.1.1) to 28.0.5 (user_saml v6.1.3) here is my log: {
"reqId": "qq143twnex3d06g6PHQz",
"level": 3,
"time": "2024-05-22T11:38:22+00:00",
"remoteAddr": "10.0.6.2",
"user": "--",
"app": "core",
"method": "GET",
"url": "/apps/theming/theme/light-highcontrast.css?plain=0&v=2bddf2c5",
"message": "Renewing session token failed: Token does not exist: b2956a9668ffeb4fb41977416f819dc46d75ec475d1bb5bd7809ff5924700fadad54bd64f7a6c2ecf2b820496e5ee6af5b6f9fc90b368f789693ccf0259eb2c6",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
"version": "28.0.5.2",
"exception": {
"Exception": "OC\\Authentication\\Exceptions\\InvalidTokenException",
"Message": "Token does not exist: b2956a9668ffeb4fb41977416f819dc46d75ec475d1bb5bd7809ff5924700fadad54bd64f7a6c2ecf2b820496e5ee6af5b6f9fc90b368f789693ccf0259eb2c6",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
"line": 167,
"function": "getTokenFromCache",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
"line": 248,
"function": "getToken",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/lib/public/AppFramework/Db/TTransactional.php",
"line": 63,
"function": "OC\\Authentication\\Token\\{closure}",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/lib/private/Authentication/Token/PublicKeyTokenProvider.php",
"line": 247,
"function": "atomic",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
[
"Closure"
],
[
"OC\\DB\\ConnectionAdapter"
]
]
},
{
"file": "/var/www/html/lib/private/Authentication/Token/Manager.php",
"line": 172,
"function": "renewSessionToken",
"class": "OC\\Authentication\\Token\\PublicKeyTokenProvider",
"type": "->",
"args": [
"*** sensitive parameters replaced ***",
"5b435bb22f4a3dee33c4418a19398fb0"
]
},
{
"file": "/var/www/html/lib/private/User/Session.php",
"line": 929,
"function": "renewSessionToken",
"class": "OC\\Authentication\\Token\\Manager",
"type": "->",
"args": [
"*** sensitive parameters replaced ***",
"5b435bb22f4a3dee33c4418a19398fb0"
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1151,
"function": "loginWithCookie",
"class": "OC\\User\\Session",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/lib/base.php",
"line": 1058,
"function": "handleLogin",
"class": "OC",
"type": "::",
"args": [
[
"OC\\AppFramework\\Http\\Request"
]
]
},
{
"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": 197,
"message": "Renewing session token failed: Token does not exist: b2956a9668ffeb4fb41977416f819dc46d75ec475d1bb5bd7809ff5924700fadad54bd64f7a6c2ecf2b820496e5ee6af5b6f9fc90b368f789693ccf0259eb2c6",
"user": "us66zumi",
"exception": {},
"CustomMessage": "Renewing session token failed: Token does not exist: b2956a9668ffeb4fb41977416f819dc46d75ec475d1bb5bd7809ff5924700fadad54bd64f7a6c2ecf2b820496e5ee6af5b6f9fc90b368f789693ccf0259eb2c6"
}
} |
Hello,
I am encountering an issue with our Nextcloud. Attached is a screenshot of the error message, and the details are included in the ticket titles. The problem affects only some users, not all.
more logs:
-InvalidTokenException Token does not exist: token does not exist
-Renewing session token failed: Token does not exist: token does not exist .
-IDP parameter for the UID not found. Possible parameters are:
[“groups”,“username”,“email”,“Role”]
-Exception Call to a member function addUser() on null in file ‘/var/www/nextcloud/apps/user_saml/lib/GroupManager.php’ line 193
The version of :
-Nexcloud : 28.0.4 .
-SSO & SAML : 6.1.3
Thank you!!
The text was updated successfully, but these errors were encountered: