Skip to content

[Bug]: File sharing broken after upgrading server to 32.0.0 on FreeBSD #55845

@atroxix

Description

@atroxix

⚠️ This issue respects the following points: ⚠️

Bug description

I've upgraded Nextcloud server via FreeBSD ports from the 31.0.9 to 32.0.0 (I always keep the installation on the latest version available in ports). Upgrading process was normal and nothing stands out that would have gone wrong there.

After upgrading I got the error regarding app_api not functioning and after researching this part, I decided that perhaps I won't need ex-apps, so I just disabled the app. I guess this should be fine and the server should continue functioning properly with it's core features?

The problem is that all shares appear empty to all users now (when I open a folder internally shared to me by somebody then nothing is logged).

Steps to reproduce

I'm not really sure if and how this could be reproduced. Here's what I did (the usual Nextcloud upgrade routine I've used for years):

  1. Upgraded Nextcloud
  2. Ran: sudo -u www php occ maintenance:update:htaccess
  3. Ran: sudo -u www php occ upgrade

Expected behavior

Shared files and folders appear properly and sharing works.

Nextcloud Server version

32

Operating system

Other

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.0.13",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "default_timezone": "Europe\/Tallinn",
        "logtimezone": "Europe\/Tallinn",
        "trusted_domains": [
            "nc.mydomain",
            "nc.mydomaininternal",
            "nc.mydomaininternal2"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "filesystem_check_changes": 0,
        "allow_local_remote_servers": true,
        "default_phone_region": "EE",
        "default_locale": "et_EE",
        "forcessl": false,
        "mail_smtpmode": "smtp",
        "updatechecker": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "singleuser": false,
        "loglevel": 1,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "trashbin_retention_obligation": "auto",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "nc.mydomain",
        "overwrite.cli.url": "https:\/\/nc.mydomain",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/",
        "htaccess.RewriteBase": "\/",
        "mysql.utf8mb4": true,
        "maintenance": false,
        "apps_paths": [
            {
                "path": "\/usr\/local\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": true
            },
            {
                "path": "\/usr\/local\/www\/nextcloud\/apps-pkg",
                "url": "\/apps-pkg",
                "writable": false
            }
        ],
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "files_ebookreader",
            "socialsharing_email",
            "socialsharing_facebook",
            "files_reader",
            "carnet",
            "files_external_gdrive",
            "files_markdown",
            "bookmarks",
            "twofactor_admin",
            "files_texteditor",
            "twofactor_totp",
            "cms_pico"
        ],
        "has_rebuilt_cache": true,
        "maintenance_window_start": 1,
        "auth.bruteforce.protection.enabled": false
    }
}

List of activated Apps

Enabled:
  - activity: 5.0.0-dev.0
  - bookmarks: 16.0.0
  - calendar: 6.0.2
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contactsinteraction: 1.13.1
  - dav: 1.34.2
  - federatedfilesharing: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0-dev.0
  - files_external: 1.24.0
  - files_markdown: 2.4.1
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.0
  - files_texteditor: 2.15.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - integration_dropbox: 4.0.3
  - lookup_server_connector: 1.20.0
  - notes: 4.12.3
  - notifications: 5.0.0-dev.0
  - oauth2: 1.20.0
  - photos: 5.0.0-dev.1
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - related_resources: 3.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - socialsharing_email: 3.3.0
  - systemtags: 1.22.0
  - text: 6.0.0-dev.0
  - theming: 2.7.0
  - twofactor_admin: 4.8.0
  - twofactor_backupcodes: 1.21.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0
  - twofactor_totp: 14.0.0
  - updatenotification: 1.22.0
  - viewer: 5.0.0-dev.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - app_api: 32.0.0 (installed 32.0.0)
  - app_api-3.1.0: 0
  - audioplayer: 3.5.1 (installed 3.5.1)
  - bruteforcesettings: 5.0.0-dev.0 (installed 1.0.3)
  - carnet: 0.25.11 (installed 0.25.11)
  - circles: 32.0.0 (installed 26.0.0)
  - cms_pico: 1.0.21 (installed 1.0.21)
  - collectives: 3.2.1 (installed 3.2.1)
  - contacts: 8.0.4 (installed 8.0.4)
  - dashboard: 7.12.0 (installed 7.0.0)
  - encryption: 2.20.0
  - federation: 1.22.0 (installed 1.3.0)
  - files_ebookreader: 0.0.1 (installed 0.0.1)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 5.0.0-dev.0 (installed 2.2.1)
  - logreader: 5.0.0-dev.0 (installed 2.0.0)
  - nextcloud_announcements: 4.0.0-dev.0 (installed 1.2.0)
  - password_policy: 4.0.0-dev.0 (installed 1.3.0)
  - recommendations: 5.0.0-dev.0 (installed 1.1.0)
  - serverinfo: 4.0.0-dev.0 (installed 1.17.0)
  - sharerenamer: 3.5.0 (installed 3.5.0)
  - socialsharing_facebook: 3.3.0 (installed 3.3.0)
  - support: 4.0.0-dev.0 (installed 1.5.0)
  - survey_client: 4.0.0-dev.0 (installed 1.1.0)
  - suspicious_login: 10.0.0-dev.0
  - user_ldap: 1.23.0
  - user_status: 1.12.0 (installed 1.4.0)
  - weather_status: 1.12.0 (installed 1.2.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

When opening details view for anything in the web UI, the UI gives error "Failed to load selected tags"

And error "Entity does not exist or is not available" is logged. See log file nextcloud-log-details.log for full log.

And no existing shares are shown.

When I try to internally share a file, the following error is thrown in UI and after a while error "No permission to access this file" is logged - see nextcloud-log-share-file.log for full log:

Error creating the share: Cannot increase permissions of /Documents/Readme.md

Log when opening details of a folder internally shared to me by somebody else: nextcloud-log-details-share.log


### Additional info

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions