NC 31 wants to scan files from a user that no longer exists in LDAP

Hi,

We migrated from OC to NC, we are now on NC version 31.0.2. Almost everything is working but I am still polishing some things to get this thing into production and to finally replace our old OC instance.

There are some LDAP users that don’t exist anymore in the LDAP server, NC will refuse to find them with the occ ldap tools. But these users still exist in the database (oc_accounts, oc_preferences). For example, I keep getting a notification in the logs for a particular user:

{“reqId”:“ddedOhNbfQdBAPvo0MVN”,“level”:2,“time”:“2025-04-02T16:43:18+00:00”,“remoteAddr”:“”,“user”:false,“app”:“files”,“method”:“”,“url”:“–”,“message”:“User This_is_not_the_real_Name still has unscanned files after running background scan, background scan might be stopped prematurely”,“userAgent”:“–”,“version”:“31.0.2.1”,“data”:{“app”:“files”}}

NC wants to scan the files for the user but I can’t find the user or delete the user. Is there a “clean” way to remove the non-existing user from the tables? Would it be safe simply to remove the user from oc_accounts and oc_preferences?

Even after doing LDAP user cleanup?

1 Like