Cannot Delete Nextcloud Group

Anyone with some Nextcloud experience? The setup is a NethSec Vm on proxmox, with a Debian VM behind it that has NS8 installed and then Nextcloud within NS8. I am port forwarding 443 from the WAN to the Debian LAN IP in Nethsec, then within Nextcloud in NS8, I have a Letsencrypt certificate for the hostname assigned in the Nextcloud settings on Node1.

Logged into Nextcloud as admin, I was able to create Team Folders, Accounts and Groups. One of the Groups I cannot delete after creating. I had assigned it to the admin, but I can’t even remove it from the admin or delete it from the groups. Nor can I assign it to any accounts I’ve added. The weird thing is

I don’t suppose it has anything with the reverse proxy in Traefik1? I don’t have a clue.

From the Nextcloud log in NS8:

2026-04-07T16:25:00-04:00 [1:nextcloud1:nextcloud-app] crond: USER www-data pid 193 cmd php -f /var/www/html/cron.php 2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.052 * 100 changes in 300 seconds. Saving... 2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.052 * Background saving started by pid 25 2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 25:C 07 Apr 2026 20:25:03.184 * DB saved on disk 2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 25:C 07 Apr 2026 20:25:03.185 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB 2026-04-07T16:25:03-04:00 [1:nextcloud1:nextcloud-redis] 1:M 07 Apr 2026 20:25:03.253 * Background saving terminated with success 2026-04-07T16:25:21-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 - 07/Apr/2026:20:25:21 +0000 "GET /ocs/v2.php" 304 2026-04-07T16:25:21-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:21 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 0 "-" "-" 2091 "nextcloud1-https@file" "http://127.0.0.1:20003" 27ms 2026-04-07T16:25:24-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 - 07/Apr/2026:20:25:24 +0000 "PUT /ocs/v2.php" 200 2026-04-07T16:25:24-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:24 +0000] "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/2.0" 200 176 "-" "-" 2092 "nextcloud1-https@file" "http://127.0.0.1:20003" 25ms 2026-04-07T16:25:30-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 - 07/Apr/2026:20:25:30 +0000 "GET /index.php" 200 2026-04-07T16:25:30-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:30 +0000] "GET /index.php/apps/files/preview-service-worker.js HTTP/2.0" 200 5359 "-" "-" 2093 "nextcloud1-https@file" "http://127.0.0.1:20003" 26ms 2026-04-07T16:25:35-04:00 [1:nextcloud1:nextcloud-app] NOTICE: PHP message: [nextcloud][no app in context][3] {"reqId":"aE6K5qMPDqaTcWvJKzM5","level":3,"time":"2026-04-07T20:25:35+00:00","remoteAddr":"99.32.54.25","user":"a64e6cd7-aee9-4611-bd36-667b1fcad379","app":"no app in context","method":"DELETE","url":"/ocs/v2.php/cloud/groups/Rennco","scriptName":"/ocs/v2.php","message":"{\"Exception\":\"Exception\",\"Message\":\"Could not delete existing group Rennco in LDAP backend.\",\"Code\":0,\"Trace\":[{\"function\":\"deleteGroup\",\"class\":\"OCA\\\\User_LDAP\\\\Group_LDAP\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Group_Proxy.php\",\"line\":55,\"function\":\"call_user_func_array\",\"args\":[[{\"__class__\":\"OCA\\\\User_LDAP\\\\Group_LDAP\"},\"deleteGroup\"],[\"Rennco\"]]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Proxy.php\",\"line\":153,\"function\":\"walkBackends\",\"class\":\"OCA\\\\User_LDAP\\\\Group_Proxy\",\"type\":\"->\",\"args\":[\"Rennco\",\"deleteGroup\",[\"Rennco\"]]},{\"file\":\"/var/www/html/apps/user_ldap/lib/Group_Proxy.php\",\"line\":172,\"function\":\"handleRequest\",\"class\":\"OCA\\\\User_LDAP\\\\Proxy\",\"type\":\"->\",\"args\":[\"Rennco\",\"deleteGroup\",[\"Rennco\"]]},{\"file\":\"/var/www/html/lib/private/Group/Group.php\",\"line\":320,\"function\":\"deleteGroup\",\"class\":\"OCA\\\\User_LDAP\\\\Group_Proxy\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/apps/provisioning_api/lib/Controller/GroupsController.php\",\"line\":318,\"function\":\"delete\",\"class\":\"OC\\\\Group\\\\Group\",\"type\":\"->\",\"args\":[]},{\"file\":\"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":204,\"function\":\"deleteGroup\",\"class\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\",\"type\":\"->\",\"args\":[\"Rennco\"]},{\"file\":\"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":118,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\"},\"deleteGroup\"]},{\"file\":\"/var/www/html/lib/private/AppFramework/App.php\",\"line\":153,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\",\"args\":[{\"__class__\":\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\"},\"deleteGroup\"]},{\"file\":\"/var/www/html/lib/private/Route/Router.php\",\"line\":321,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\",\"args\":[\"OCA\\\\Provisioning_API\\\\Controller\\\\GroupsController\",\"deleteGroup\",{\"__class__\":\"OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer\"},{\"_route\":\"ocs.provisioning_api.groups.deletegroup\",\"groupId\":\"Rennco\"}]},{\"file\":\"/var/www/html/ocs/v1.php\",\"line\":61,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\",\"args\":[\"/ocsapp/cloud/groups/Rennco\"]},{\"file\":\"/var/www/html/ocs/v2.php\",\"line\":8,\"args\":[\"/var/www/html/ocs/v1.php\"],\"function\":\"require_once\"}],\"File\":\"/var/www/html/apps/user_ldap/lib/Group_LDAP.php\",\"Line\":1275,\"message\":\"Could not delete existing group Rennco in LDAP backend.\",\"exception\":{},\"CustomMessage\":\"Could not delete existing group Rennco in LDAP backend.\"}","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.6.1"} 2026-04-07T16:25:35-04:00 [1:nextcloud1:nextcloud-app] 127.0.0.1 - 07/Apr/2026:20:25:35 +0000 "DELETE /ocs/v2.php" 500 2026-04-07T16:25:35-04:00 [1:traefik1:traefik] 99.32.54.25 - - [07/Apr/2026:20:25:35 +0000] "DELETE /ocs/v2.php/cloud/groups/Rennco HTTP/2.0" 500 100 "-" "-" 2094 "nextcloud1-https@file" "http://127.0.0.1:20003" 32ms

LDAP groups need to be removed from the “Domains and users” page in the cluster-admin on NS8, see User domains — NS8 documentation

Something broke this morning when I chose to do an update under the Bugs and Fixes page of the NethSec UI. I chose ‘Check Fixes’ and let it do the update. Now I can’t click on half the selections in the left sidebar. They do nothing. Their is no selection anymore for domains and users. It’s almost like it reverted back to an older version. Clicking on Factory Reset, Backup and Restore, Controller, Storage, all do nothing. Rebooting doesn’t correct anything.

Please hard refresh the browser or try another browser, maybe some cache issue…

Domains and users is on NS8, not on NethSec…

That all absolutely worked! Thanks, Markus! I was able to use the UI again after clearing cache. I accessed domains and users in NS8 and deleted the group and then reviewed it in Nextcloud. I had a brain fart there. It was gone from Nextcloud at that point. Is it better to add accounts (users and groups) in NS8 and use them to login to Nextcloud, or to add them in Nextcloud? If I add them in NS8, will the groups show up in Nextcloud, where I can assign them to users and also Team Folders? We have a fair amount of customers that use our NS7 Nextcloud for file exchange with us. I want to transition to NS8 before long, so that the system is current and can stay updated. I plan on getting Nethserver subscriptions once I am confident it’s running smooth.

1 Like

Yes, you need to use NS8 cluster-admin for managing users and groups.

Yes, you can assign the LDAP groups to team folders but assigning LDAP groups to LDAP users needs to be done in cluster-admin.