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

[Bug]: NoUserException Backends provided no user object Backends provided no user object for X #47244

Closed
5 of 8 tasks
amitash opened this issue Aug 14, 2024 · 7 comments
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug feature: users and groups

Comments

@amitash
Copy link

amitash commented Aug 14, 2024

⚠️ 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 the files 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

{
  "reqId": "IoKquxdANeD6VE9b8klD",
  "level": 3,
  "time": "2024-08-14T18:52:03+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "files",
  "method": "",
  "url": "--",
  "message": "Backends provided no user object for 1",
  "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": [
          "1"
        ]
      },
      {
        "file": "/var/www/html/lib/private/Files/Node/LazyFolder.php",
        "line": 84,
        "function": "call_user_func_array",
        "args": [
          [
            [
              "OC\\Files\\Node\\Root"
            ],
            "getUserFolder"
          ],
          [
            "1"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/private/Files/Node/LazyRoot.php",
        "line": 53,
        "function": "__call",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->",
        "args": [
          "getUserFolder",
          [
            "1"
          ]
        ]
      },
      {
        "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php",
        "line": 558,
        "function": "getUserFolder",
        "class": "OC\\Files\\Node\\LazyRoot",
        "type": "->",
        "args": [
          "1"
        ]
      },
      {
        "file": "/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php",
        "line": 577,
        "function": "getFileFromId",
        "class": "OCA\\Files_FullTextSearch\\Service\\FilesService",
        "type": "->",
        "args": [
          "1",
          151716
        ]
      },
      {
        "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 1",
    "exception": [],
    "CustomMessage": "Backends provided no user object for 1"
  },
  "id": "66bcfe6aa36fa"
}

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:

- username1: User  1 Full Name
- username2: User 2 Full Name

However, when I run a php occ user:report, I get that there are 3 active users.

+------------------+---+
| Account Report   |   |
+------------------+---+
| Database         | 2 |
|                  |   |
| total users      | 2 |
|                  |   |
| user directories | 1 |
| active users     | 3 |
| disabled users   | 0 |
+------------------+---+

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 and username2, but there was a third one called 1 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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "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
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "cloud.amitash.in",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "cloud.amitash.in"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "29.0.4.1",
        "overwrite.cli.url": "https:\/\/cloud.amitash.in\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 3,
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "jpeg_quality": 60,
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Movie",
            "OC\\Preview\\Krita",
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\Image",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF"
        ],
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "updatedirectory": "\/nc-updater",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "defaultapp": "",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "default_phone_region": "\u201cDK\u201d",
        "memories.gis_type": 2,
        "memories.vod.disable": false,
        "memories.vod.connect": "nextcloud-memories-go-vod:47788",
        "memories.vod.bind": "nextcloud-memories-go-vod:47788",
        "memories.vod.external": true,
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.nvenc": true,
        "memories.vod.nvenc.temporal_aq": true,
        "memories.vod.use_gop_size": true
    }
}

List of activated Apps

Enabled:
  - admin_audit: 1.19.0
  - app_api: 3.0.1
  - assistant: 1.1.0
  - bruteforcesettings: 2.9.0
  - calendar: 4.7.15
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - files: 2.1.0
  - files_antivirus: 5.5.7
  - files_downloadlimit: 2.0.0
  - files_fulltextsearch: 29.0.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - fulltextsearch: 29.0.0
  - fulltextsearch_elasticsearch: 29.0.1
  - integration_openai: 2.0.3
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - mail: 3.7.7
  - memories: 7.3.1
  - nextcloud-aio: 0.6.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - notify_push: 0.7.0
  - oauth2: 1.17.0
  - oidc: 0.9.2
  - password_policy: 1.19.0
  - previewgenerator: 5.6.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recognize: 7.1.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - richdocuments: 8.4.4
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.7
  - support: 1.12.0
  - suspicious_login: 7.0.0
  - systemtags: 1.19.0
  - tasks: 0.16.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_totp: 11.0.0-dev
  - user_status: 1.9.0
  - viewer: 2.3.0
  - workflowengine: 2.11.0
Disabled:
  - activity: 2.21.1 (installed 2.21.1)
  - circles: 29.0.0-dev (installed 29.0.0-dev)
  - contactsinteraction: 1.10.0 (installed 1.10.0)
  - encryption: 2.17.0
  - federation: 1.19.0 (installed 1.19.0)
  - files_external: 1.21.0 (installed 1.21.0)
  - photos: 2.5.0 (installed 2.5.0)
  - survey_client: 1.17.0 (installed 1.17.0)
  - user_ldap: 1.20.0
  - weather_status: 1.9.0 (installed 1.9.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"pdMPROXa4U1ezux2JjD5","level":3,"time":"2024-08-14T19:22:04+00:00","remoteAddr":"","user":"--","app":"files","method":"","url":"--","message":"Backends provided no user object for 1","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":["1"]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":84,"function":"call_user_func_array","args":[[["OC\\Files\\Node\\Root"],"getUserFolder"],["1"]]},{"file":"/var/www/html/lib/private/Files/Node/LazyRoot.php","line":53,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["getUserFolder",["1"]]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":558,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["1"]},{"file":"/var/www/html/custom_apps/files_fulltextsearch/lib/Service/FilesService.php","line":577,"function":"getFileFromId","class":"OCA\\Files_FullTextSearch\\Service\\FilesService","type":"->","args":["1",151716]},{"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 1","exception":[],"CustomMessage":"Backends provided no user object for 1"},"id":"66bd03e937a9f"}

Additional info

No response

@amitash amitash added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Aug 14, 2024
@msullivan-lc
Copy link

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.

@DonZalmrol
Copy link

DonZalmrol commented Sep 6, 2024

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"}}

@thompol
Copy link

thompol commented Sep 15, 2024

Experiencing exactly the same problem here. User was logged in through OAuth2 with the nextcloud-social-login app.

@thompol
Copy link

thompol commented Sep 15, 2024

Seems to be a duplicate of nextcloud/files_fulltextsearch#292.

@amitash
Copy link
Author

amitash commented Sep 21, 2024

I have upgraded my AIO to NC30 and this issue disappeared.

@joshtrichards joshtrichards changed the title [Bug]: NoUserException Backends provided no user object Backends provided no user object for 1 [Bug]: NoUserException Backends provided no user object Backends provided no user object for X Sep 25, 2024
@joshtrichards
Copy link
Member

Duplicate of nextcloud/files_fulltextsearch#292

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2024
@gork-us
Copy link

gork-us commented Dec 31, 2024

Having the same issue, Nextcloud 30.0.4.
Disabling full text search caused the log entries to cease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug feature: users and groups
Projects
None yet
Development

No branches or pull requests

7 participants