Update to Nextcloud Hub 10 (31.0.0) cannot delete group sharing

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Linux truenas 6.6.44
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    8.3.19
  • Is this the first time you’ve seen this error? (Yes / No):
    • YES
  • When did this problem seem to first start?
    • 更新31.0.0后
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • truenas shop 应用程序版本:31.0.0 版本:1.6.12
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • NO

Summary of the issue you are facing:

[…]

Steps to replicate it (hint: details matter!):

  1. 在truenas shop中 从30.0.6升到 31.0.0

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

OCA\Activity\FilesHooks::OCA\Activity\{closure}(): Argument #1 ($user) must be of type OCP\IUser, string given in file '/var/www/html/apps/activity/lib/FilesHooks.php' line 934
/var/www/html/lib/private/AppFramework/App.php
行161
OC\AppFramework\Http\Dispatcher->dispatch(
  {
    "__class__": "OCA\\Files_Sharing\\Controller\\ShareAPIController"
  },
  "deleteShare"
)
/var/www/html/lib/private/Route/Router.php
行307
OC\AppFramework\App::main(
  "OCA\\Files_Sharing\\Controller\\ShareAPIController",
  "deleteShare",
  {
    "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
  },
  {
    "id": "92",
    "_route": "ocs.files_sharing.shareapi.deleteshare"
  }
)
/var/www/html/ocs/v1.php
行49
OC\Route\Router->match(
  "/ocsapp/apps/files_sharing/api/v1/shares/92"
)
/var/www/html/ocs/v2.php
行7
undefinedundefinedrequire_once(
  "/var/www/html/ocs/v1.php"
)
由 TypeError 导致
OCA\Activity\FilesHooks::OCA\Activity\{closure}(): Argument #1 ($user) must be of type OCP\IUser, string given
PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE
```Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - circles: 31.0.0-dev.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contactsinteraction: 1.12.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_accesscontrol: 2.0.0
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - groupfolders: 19.0.3
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - nextcloud_announcements: 3.0.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - registration: 2.6.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - sharereview: 1.3.3
  - support: 3.0.0
  - survey_client: 3.0.0
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - updatenotification: 1.21.0
  - viewer: 4.0.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - dashboard: 7.11.0 (installed 7.10.0)
  - encryption: 2.19.0
  - files_external: 1.23.0 (installed 1.22.0)
  - files_versions: 1.24.0 (installed 1.23.0)
  - firstrunwizard: 4.0.0 (installed 3.0.0)
  - photos: 4.0.0-dev.1 (installed 3.0.2)
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - user_ldap: 1.22.0 (installed 1.21.0)
  - user_status: 1.11.0 (installed 1.10.0)
  - weather_status: 1.11.0 (installed 1.10.0)

#### Apps

The output of `occ app:list` (if possible).

### Tips for increasing the likelihood of a response
![image|337x147](upload://6zuZ8NdR2AX9lmVFCAgl6IPnd9C.png)
![image|573x314](upload://xWnpEbIC8TN7frpbXMz27WGcat7.png)
![image|690x251](upload://zK91zg9KyBuLDQUzeu3FwTUYc52.png)

* Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
* If screenshots are useful, feel free to include them. 
  - If possible, also include key error output in text form so it can be searched for.
* Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

“system”: {
“htaccess.RewriteBase”: “/”,
“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
}
],
“memcache.distributed”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “XXXX”,
“password”: “XXXXX”,
“port”: 1111
},
“overwritehost”: “xxx.com:1111”,
“overwriteprotocol”: “https”,
“trusted_proxies”: “XXXX”,
“upgrade.disable-web”: true,
“passwordsalt”: “XXXXX”,
“secret”: “XXXXX”,
“datadirectory”: “XXXX”,
“dbtype”: “pgsql”,
“version”: “30.0.6.2” Version has been rolled back to this version

    ,
    "overwrite.cli.url": "https:\/\/ xxxx.com",
    "dbname": "XXXX",
    "dbhost": "XXXXX",
    "dbport": "",
    "dbtableprefix": "oc_",
    "dbuser": "XXXXX",
    "dbpassword": "XXXX",
    "installed": true,
    "instanceid": "XXXXX",
    "maintenance_window_start": 16,
    "maintenance": false,
    "default_phone_region": "CN",
    "defaultapp": "files",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "loglevel": 2,
    "mail_from_address": "XXXX",
    "mail_domain": "XXXX",
    "mail_smtphost": "XXXX",
    "mail_smtpport": "465",
    "auto_logout": true,
    "session_lifetime": 3600,
    "default_language": "zh_CN",
    "default_locale": "zh",
    "preview_concurrency_new": 8,
    "jpeg_quality": 60,
    "preview_max_x": 800,
    "preview_max_y": 600,
    "preview_imaginary_url": "XXXXX",
    "mail_smtpauth": 1,
    "mail_smtpname": "XXXXX",
    "mail_smtppassword": "XXXX",
    "mail_smtpsecure": "ssl",
    "trusted_domains": [
        "127.0.0.1",
        "192.168.xxx.4",
        "192.168.xxx.4:xxx",
        "192.168.xxx.5",
        "localhost",
        "nextcloud"
    ]
}

}

A share shared to a single user can be deleted, but a share shared to a group can not be deleted

After the update to 31.0.0, do you have a situation where you can not delete group shared links?

Strange errors or errors that only occur with a few users are often based on third-party apps. Perhaps you can deactivate and uninstall your manually installed apps. First uninstall the apps that you don’t use anyway.

For performance reasons, Nextcloud uses many client-side components based on JavaScript. You can therefore also try either deleting all cached data or using a completely different browser. For example, the browser may be using outdated JavaScript libraries.

Thank you for your reply, no weird third-party applications, and the latest version of Edge, which the browser uses, has also switched browsers.

The above problem will be solved after update to 31.0.2。
But the biggest problem is the following error in the log when downloading multiple files:
“Cannot modify header information - headers already sent by (output started at /var/www/html/3rdparty/deepdiver/zipstreamer/src/ZipStreamer.php:325) at /var/www/html/3rdparty/sabre/http/lib/Sapi.php#68”