Closed amitash closed 1 month ago
I'm seeing the same/similar error message on my installation of AIO. I recently deleted a user but transferred all their files to another user before removing them. The error only exists for the deleted user. I concur, it looks like it is a background job.
Here's a copy of the raw log entry.
{
"reqId": "FsimdfJzMJCT58wFLNfq",
"level": 3,
"time": "2024-08-22T15:02:41+00:00",
"remoteAddr": "",
"user": "--",
"app": "files",
"method": "",
"url": "--",
"message": "Backends provided no user object for <<DELETED USERNAME>>",
"userAgent": "--",
"version": "29.0.4.1",
"exception": {
"Exception": "OC\\User\\NoUserException",
"Message": "Backends provided no user object",
"Code": 0,
"Trace": [{ "function": "getUserFolder", "class": "OC\\Files\\Node\\Root", "type": "->", "args": ["<<DELETED USERNAME>>"] }, {
"file": "/var/www/html/lib/private/Files/Node/LazyFolder.php",
"line": 84,
"function": "call_user_func_array",
"args": [
[
["OC\\Files\\Node\\Root"], "getUserFolder"
],
["<<DELETED USERNAME>>"]
]
}, { "file": "/var/www/html/lib/private/Files/Node/LazyRoot.php", "line": 53, "function": "__call", "class": "OC\\Files\\Node\\LazyFolder", "type": "->", "args": ["getUserFolder", ["<<DELETED USERNAME>>"]] }, { "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php", "line": 558, "function": "getUserFolder", "class": "OC\\Files\\Node\\LazyRoot", "type": "->", "args": ["<<DELETED USERNAME>>"] }, { "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php", "line": 577, "function": "getFileFromId", "class": "OCA\\Files_FullTextSearch\\Service\\FilesService", "type": "->", "args": ["<<DELETED USERNAME>>", 5832] }, { "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php", "line": 1288, "function": "getFileFromIndex", "class": "OCA\\Files_FullTextSearch\\Service\\FilesService", "type": "->", "args": ["*** sensitive parameters replaced ***"] }, { "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php", "line": 707, "function": "updateDirectoryContentIndex", "class": "OCA\\Files_FullTextSearch\\Service\\FilesService", "type": "->", "args": ["*** sensitive parameters replaced ***"] }, { "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Provider/FilesProvider.php", "line": 314, "function": "updateDocument", "class": "OCA\\Files_FullTextSearch\\Service\\FilesService", "type": "->", "args": ["*** sensitive parameters replaced ***"] }, { "file": "/var/www/html/custom_apps/fulltextsearch/lib/Service/IndexService.php", "line": 409, "function": "updateDocument", "class": "OCA\\Files_FullTextSearch\\Provider\\FilesProvider", "type": "->", "args": ["*** sensitive parameters replaced ***"] }, { "file": "/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php", "line": 109, "function": "updateDocument", "class": "OCA\\FullTextSearch\\Service\\IndexService", "type": "->", "args": ["*** sensitive parameters replaced ***"] }, { "file": "/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php", "line": 77, "function": "liveCycle", "class": "OCA\\FullTextSearch\\Cron\\Index", "type": "->", "args": [] }, { "file": "/var/www/html/lib/public/BackgroundJob/Job.php", "line": 80, "function": "run", "class": "OCA\\FullTextSearch\\Cron\\Index", "type": "->", "args": [null] }, {
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 102,
"function": "start",
"class": "OCP\\BackgroundJob\\Job",
"type": "->",
"args": [
["OC\\BackgroundJob\\JobList"]
]
}, {
"file": "/var/www/html/lib/public/BackgroundJob/TimedJob.php",
"line": 92,
"function": "start",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
["OC\\BackgroundJob\\JobList"]
]
}, {
"file": "/var/www/html/cron.php",
"line": 177,
"function": "execute",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->",
"args": [
["OC\\BackgroundJob\\JobList"]
]
}],
"File": "/var/www/html/lib/private/Files/Node/Root.php",
"Line": 370,
"message": "Backends provided no user object for <<DELETED USERNAME>>",
"exception": [],
"CustomMessage": "Backends provided no user object for <<DELETED USERNAME>>"
},
"id": "66c7532f24c6f"
}
Let me know if I can help in any other way.
I'm experiencing the exact same issue, however on my instance its for MS LDAP and an existing user (my user) https://www.reddit.com/r/NextCloud/comments/1fa6w4w/comment/llr52bc/?context=3
Log:
{"reqId":"6I78eVAQ3Kt2Zq6R0GKU","level":3,"time":"2024-09-05T15:02:57+00:00","remoteAddr":"","user":"--","app":"files","method":"","url":"--","message":"Backends provided no user object for A5C37473-E534-4128-814B-8CC374902346","userAgent":"--","version":"29.0.4.1","exception":{"Exception":"OC\\User\\NoUserException","Message":"Backends provided no user object","Code":0,"Trace":[{"function":"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->","args":["A5C37473-E534-4128-814B-8CC374902346"]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":84,"function":"call_user_func_array","args":[[["OC\\Files\\Node\\Root"],"getUserFolder"],["A5C37473-E534-4128-814B-8CC374902346"]]},{"file":"/var/www/html/lib/private/Files/Node/LazyRoot.php","line":53,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["getUserFolder",["A5C37473-E534-4128-814B-8CC374902346"]]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":558,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["A5C37473-E534-4128-814B-8CC374902346"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":577,"function":"getFileFromId","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["A5C37473-E534-4128-814B-8CC374902346",3243]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":1288,"function":"getFileFromIndex","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":707,"function":"updateDirectoryContentIndex","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Provider/FilesProvider.php","line":314,"function":"updateDocument","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Service/IndexService.php","line":409,"function":"updateDocument","class":"OCA\\Files_FullTextSearch\\Provider\\FilesProvider","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php","line":109,"function":"updateDocument","class":"OCA\\FullTextSearch\\Service\\IndexService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/custom_apps/fulltextsearch/lib/Cron/Index.php","line":77,"function":"liveCycle","class":"OCA\\FullTextSearch\\Cron\\Index","type":"->","args":[]},{"file":"/var/www/html/lib/public/BackgroundJob/Job.php","line":80,"function":"run","class":"OCA\\FullTextSearch\\Cron\\Index","type":"->","args":[null]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":102,"function":"start","class":"OCP\\BackgroundJob\\Job","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/lib/public/BackgroundJob/TimedJob.php","line":92,"function":"start","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]},{"file":"/var/www/html/cron.php","line":177,"function":"execute","class":"OCP\\BackgroundJob\\TimedJob","type":"->","args":[["OC\\BackgroundJob\\JobList"]]}],"File":"/var/www/html/lib/private/Files/Node/Root.php","Line":370,"message":"Backends provided no user object for A5C37473-E534-4128-814B-8CC374902346","exception":{},"CustomMessage":"Backends provided no user object for A5C37473-E534-4128-814B-8CC374902346"}}
Experiencing exactly the same problem here. User was logged in through OAuth2 with the nextcloud-social-login
app.
Seems to be a duplicate of #46664.
I have upgraded my AIO to NC30 and this issue disappeared.
Duplicate of #46664
⚠️ This issue respects the following points: ⚠️
Bug description
I have combed through other GitHub issues with a similar error that is related to the
groupfolders
app. I, however, have never installed the app and the error I see is, I think, with thefiles
app instead. I am unable to find what could reproduce this error but following is a log (there are >3000 of these accumulating every 15 minutes).NoUserException Backends provided no user object Backends provided no user object for 1
I can suppress this error if I disable the
Full text search
app.To my knowledge, other than filling up the log files, this error has not caused any other problems.
A strange this I noticed was when I run a
php occ user:list
, I get the following:However, when I run a
php occ user:report
, I get that there are 3 active users.I have no clue how this third user has been created. I have, in the recent past, created and deleted an
oauth client
.While trying to get more info for this error, I noticed that there were 3 directories in the files folder (the directories created for each user by nextcloud). As expected, two of these were
username1
andusername2
, but there was a third one called1
which I deleted but that hasn't suppressed the error. Please note that the error was already occurring for multiple days before I deleted that stray user directory.Steps to reproduce
Unfortunately, I do not know how to reproduce this error.
Expected behavior
There should be no NoUserException error.
Installation method
Other Community project
Nextcloud Server version
29
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response