[OC\User\NoUserException] 8F8EAC24-BC01-49D7-A77C-AD3221099998 is not a valid user anymore
user:delete
André
Nextcloud version: 12
Operating system and version: Ubuntu 16.04
Apache or nginx version: apache 2.4.18
PHP version: 7.0.18
Is this the first time you’ve seen this error: After updating to nextcloud 12
The output of your Nextcloud log in Admin > Logging: no enteries in logfile
The output of your Apache/nginx/system log in /var/log/____: no enteries
Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.
I do seem to have the same issue and just as of yesterday, I write a little shell script, to work around that. I have tried it on our test server, where we had 1600+ deleted LDAP users, which had accumulated for about 2 years.
Today, I updated our NC to 12.0.4 and I was finally able to remove 1600+ old ldap user accounts from our NC instance. It boiled down to this simple for loop in bash:
for i in sudo -u apache php occ ldap:show-remnants | awk -F "| " '{print $2}'; do echo “Delete user: $i”; sudo -u apache php occ user:delete $i; done