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

Error files: Backends provided no user object for *** #19798

Closed
scroom opened this issue Mar 5, 2020 · 14 comments
Closed

Error files: Backends provided no user object for *** #19798

scroom opened this issue Mar 5, 2020 · 14 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug feature: ldap

Comments

@scroom
Copy link

scroom commented Mar 5, 2020

Steps to reproduce

  1. Use Nextcloud with LDAP integration
  2. Delete an LDAP-user
  3. Delete it in Nextcloud

Expected behaviour

No errors should be shown

Actual behaviour

I get thousands of error messages which are stating, for some deleted users: Error files: Backends provided no user object for deleted user name

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: MySQL

PHP version:

Nextcloud version: 17.0.3

Updated from an older Nextcloud/ownCloud or fresh install: Updated

Where did you install Nextcloud from: Git

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - audioplayer: 2.9.0
  - calendar: 2.0.2
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - contacts: 3.2.0
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_mindmap: 0.0.17
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - firstrunwizard: 2.6.0
  - gallery: 18.4.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notes: 3.1.5
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - polls: 1.3.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - qownnotesapi: 20.1.0
  - quota_warning: 1.6.0
  - recommendations: 0.5.0
  - richdocuments: 3.5.2
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - tasks: 0.11.3
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - user_ldap: 1.7.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - mail

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.example.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/cloud.example.com",
        "dbtype": "mysql",
        "version": "17.0.3.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "updater.release.channel": "stable",
        "maintenance": false,
        "theme": "",
        "logfile": "\/var\/log\/nextcloud.log",
        "loglevel": 2,
        "log_rotate_size": 104857600,
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "auth.bruteforce.protection.enabled": false,
        "remember_login_cookie_lifetime": 86400,
        "session_lifetime": 14400,
        "session_keepalive": false

Are you using external storage, if yes which one: No

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+-------------------------------------------------------------------+
| Configuration                 |                                                                   |
+-------------------------------+-------------------------------------------------------------------+
| hasMemberOfFilterSupport      | 0                                                                 |
| homeFolderNamingRule          |                                                                   |
| lastJpegPhotoLookup           | 0                                                                 |
| ldapAgentName                 | cn=Admin,dc=example,dc=com                                         |
| ldapAgentPassword             | ***                                                               |
| ldapAttributesForGroupSearch  | cn                                                                |
| ldapAttributesForUserSearch   | uid;mail;cn;givenName;sn                                          |
| ldapBackupHost                |                                                                   |
| ldapBackupPort                |                                                                   |
| ldapBase                      | o=domains,dc=example,dc=com                                          |
| ldapBaseGroups                | ou=Group,domainName=example.de,o=domains,dc=example,dc=com |
| ldapBaseUsers                 | o=domains,dc=example,dc=com                                          |
| ldapCacheTTL                  | 300                                                               |
| ldapConfigurationActive       | 1                                                                 |
| ldapDefaultPPolicyDN          |                                                                   |
| ldapDynamicGroupMemberURL     |                                                                   |
| ldapEmailAttribute            | mail                                                              |
| ldapExperiencedAdmin          | 0                                                                 |
| ldapExpertUUIDGroupAttr       | cn                                                                |
| ldapExpertUUIDUserAttr        | uid                                                               |
| ldapExpertUsernameAttr        |                                                                   |
| ldapExtStorageHomeAttribute   |                                                                   |
| ldapGidNumber                 | gidNumber                                                         |
| ldapGroupDisplayName          | cn                                                                |
| ldapGroupFilter               | (|(objectclass=posixGroup))                                       |
| ldapGroupFilterGroups         |                                                                   |
| ldapGroupFilterMode           | 1                                                                 |
| ldapGroupFilterObjectclass    |                                                                   |
| ldapGroupMemberAssocAttr      | memberUid                                                         |
| ldapHost                      | localhost                                                         |
| ldapIgnoreNamingRules         |                                                                   |
| ldapLoginFilter               | (&(|(objectclass=mailUser))(|(uid=%uid)))                         |
| ldapLoginFilterAttributes     | uid                                                               |
| ldapLoginFilterEmail          | 0                                                                 |
| ldapLoginFilterMode           | 0                                                                 |
| ldapLoginFilterUsername       | 0                                                                 |
| ldapNestedGroups              | 0                                                                 |
| ldapOverrideMainServer        |                                                                   |
| ldapPagingSize                | 500                                                               |
| ldapPort                      | 389                                                               |
| ldapQuotaAttribute            |                                                                   |
| ldapQuotaDefault              |                                                                   |
| ldapTLS                       | 0                                                                 |
| ldapUserAvatarRule            | default                                                           |
| ldapUserDisplayName           | cn                                                                |
| ldapUserDisplayName2          |                                                                   |
| ldapUserFilter                | (|(objectclass=mailUser))                                         |
| ldapUserFilterGroups          |                                                                   |
| ldapUserFilterMode            | 1                                                                 |
| ldapUserFilterObjectclass     | inetOrgPerson                                                     |
| ldapUuidGroupAttribute        | auto                                                              |
| ldapUuidUserAttribute         | auto                                                              |
| turnOffCertCheck              | 0                                                                 |
| turnOnPasswordChange          | 0                                                                 |
| useMemberOfToDetectMembership | 1                                                                 |
+-------------------------------+-------------------------------------------------------------------+

Logs

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"1WDnBimK6nOZgGtETbcL","level":3,"time":"2020-03-05T19:54:04+00:00","remoteAddr":"******","user":"user1","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/core\/whatsnew?format=json","message":"Undefined index: changelogURL at \/var\/www\/nextcloud\/core\/Controller\/WhatsNewController.php#91","userAgent":"Mozilla\/5.0 (Linux; Android 10; SM-G960F) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/80.0.3987.132 Mobile Safari\/537.36","version":"17.0.3.1"}
{"reqId":"z18BNFkZ96rGt51Em92O","level":3,"time":"2020-03-05T19:54:14+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.6.3git (Nextcloud)","version":"17.0.3.1"}
{"reqId":"apcuZK6WTS4O01SdZjN1","level":3,"time":"2020-03-05T19:54:14+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko\/20100101 Firefox\/73.0","version":"17.0.3.1"}
{"reqId":"JaZYozK7wNj6H5s0dJzt","level":3,"time":"2020-03-05T19:54:44+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.6.3git (Nextcloud)","version":"17.0.3.1"}
{"reqId":"p9Pkg5XeIEVKbCZXbMiZ","level":3,"time":"2020-03-05T19:54:46+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.6.3git (Nextcloud)","version":"17.0.3.1"}
{"reqId":"0LguEdsZ3AeEMZz3xpGC","level":3,"time":"2020-03-05T19:55:15+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.6.3git (Nextcloud)","version":"17.0.3.1"}
{"reqId":"QdfRKKm2GnqHve8wnTNT","level":3,"time":"2020-03-05T19:55:18+00:00","remoteAddr":"*******","user":"user2","app":"files","method":"PROPFIND","url":"\/remote.php\/dav\/files\/user2\/","message":" Backends provided no user object for user3","userAgent":"Mozilla\/5.0 (Linux) mirall\/2.6.3git (Nextcloud)","version":"17.0.3.1"}
@scroom scroom added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Mar 5, 2020
@scroom
Copy link
Author

scroom commented Mar 5, 2020

Many others seem to have the same problem: https://help.nextcloud.com/t/backends-provided-no-user-object-for-a-deleted-user/54862/2

@kesselb
Copy link
Contributor

kesselb commented Mar 5, 2020

Might be related: #19647

@kesselb
Copy link
Contributor

kesselb commented Mar 5, 2020

cc @nextcloud/ldap

@scroom
Copy link
Author

scroom commented Mar 10, 2020

If you need more infos don't hesitate to ask.

@blizzz
Copy link
Member

blizzz commented Mar 10, 2020

please checkout https://docs.nextcloud.com/server/17/admin_manual/configuration_user/user_auth_ldap_cleanup.html and please also try out upcoming maintenance release (rc2 is out right now)

@scroom
Copy link
Author

scroom commented Mar 10, 2020

@blizzz I've done so. But the user which is filling my logs, doesn't show up in the remnants-list and if I try to delete the user with delete-user I get the response that the user doesn't exist.

@louis378

This comment has been minimized.

@blizzz
Copy link
Member

blizzz commented Mar 18, 2020

@scroom did you try to remove the user manually before?

@louis378
Copy link

@blizzz
How to remove the user manually?
Did you mean use occ user:delete cmd?

@blizzz
Copy link
Member

blizzz commented Mar 19, 2020

@blizzz
How to remove the user manually?
Did you mean use occ user:delete cmd?

@louis378 I know nothing about your situation. Frankly speaking, an "The same issue too." has zero value. From your question i also suppose you have not read https://docs.nextcloud.com/server/17/admin_manual/configuration_user/user_auth_ldap_cleanup.html?

@scroom
Copy link
Author

scroom commented Mar 19, 2020

@blizzz I wanted to delete the user but it wasn't possible to do so. I had to wait that the user showed up in the remnants-list. But this list wasn't filled.
Now after I changed from AJAX to system cron the list gets filled and I can delete the users manually which is either a lot of work or you have to write a script that does the work for you.

@louis378
Copy link

louis378 commented Mar 20, 2020

@blizzz
Today my problem was solved.
I have tried using occ user: delete [user],
But it always appears "the user doesn't exist."

So I tried to delete the record from DB table share that column uid_initiator contains the user.
So far, the log has not seen this error message.

Hope this will help will.

@blizzz
Copy link
Member

blizzz commented Mar 25, 2020

@blizzz I wanted to delete the user but it wasn't possible to do so. I had to wait that the user showed up in the remnants-list. But this list wasn't filled.
Now after I changed from AJAX to system cron the list gets filled and I can delete the users manually which is either a lot of work or you have to write a script that does the work for you.

use at own risk.

@blizzz
Copy link
Member

blizzz commented Mar 25, 2020

So I tried to delete the record from DB table share that column uid_initiator contains the user.

Eh, don't just manipulate the DB without knowing what you're doing… There's a ton of app logic sitting on top of it.

@blizzz blizzz closed this as completed Mar 25, 2020
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 bug feature: ldap
Projects
None yet
Development

No branches or pull requests

4 participants