Skip to content

[Bug]: occ files_external:notify gives Icewind\SMB\Exception\ConnectionRefusedException on 33 #58445

Closed

Description

@oblivioncth

⚠️ This issue respects the following points: ⚠️

Bug description

For multiple major versions I've ran

occ files_external:notify 1

as a separate process in my nextcloud docker stack in order to enable SMB notifications for the External Files app, and it's seemingly worked without issue. Now, after upgrading to 33, trying to run the above command results in

In Connection.php line 56:

[Icewind\SMB\Exception\ConnectionRefusedException]

The same happens even if I try to explicitly provide the username/password to the command (and that was never needed before anyway). The server itself is still able to connect to the share and I'm able to read/write files with my user account, so it seems only that this command (or the occ tool at large) is affected.

I even cloned out a snapshot of my install when it was still on version 32 to confirm the command executes fine there and it was only after upgrading to 33.

Steps to reproduce

Try to run:

occ files_external:notify 1

as a separate process.

Expected behavior

Share is observed for changes like bfore.

Nextcloud Server version

33

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

PostgreSQL

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?

None

What user-backends are you using?

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

Configuration report

{
    "system": {
        "activity_expire_days": "90",
        "allow_user_to_change_display_name": false,
        "apps_paths": [
            {
                "path": "\/config\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": true
            }
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbport": "5432",
        "dbtableprefix": "oc_",
        "dbtype": "pgsql",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "US",
        "filelocking.enabled": true,
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "jpeg_quality": "90",
        "log_type": "file",
        "log_type_audit": "file",
        "logdateformat": "d\/m\/Y H:i:s",
        "logfile": "\/config\/log\/nextcloud.log",
        "logfile_audit": "\/config\/log\/audit.log",
        "loglevel": "2",
        "logtimezone": "America\/New_York",
        "log_rotate_size": 26214400,
        "lost_password_link": "disabled",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "maintenance_window_start": 1,
        "maintenance": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "oidc_login_attributes": {
            "id": "sub",
            "is_admin": "groups_nextcloudAdmin",
            "mail": "email",
            "name": "name"
        },
        "oidc_login_auto_redirect": true,
        "oidc_login_button_text": "Log in with Authentik",
        "oidc_login_client_id": "lmWduLl0rttR005louOOU3AIGTBeJN4wtYPM3qeU",
        "oidc_login_client_secret": "R26bA6GG90ktW3lKS8cDRETEwCGkgO0BKVFR1FnLyii28TpQ31loCOpKAzU7QRnd",
        "oidc_login_default_group": "authentik",
        "oidc_login_disable_registration": false,
        "oidc_login_end_session_redirect": true,
        "oidc_login_logout_url": "https:\/\/auth.mydomain.com\/application\/o\/nextcloud\/end-session\/",
        "oidc_login_provider_url": "https:\/\/auth.mydomain.com\/application\/o\/nextcloud\/",
        "oidc_login_scope": "openid profile email",
        "oidc_login_webdav_enabled": true,
        "overwrite.cli.url": "https:\/\/cloud.mydomain.com",
        "overwritehost": "cloud.mydomain.com",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "secret": "***REMOVED SENSITIVE VALUE***",
        "serverid": 0,
        "share_folder": "Shared",
        "trashbin_retention_obligation": "auto",
        "trusted_domains": [
            "127.0.0.1",
            "localhost",
            "nextcloud",
            "nextcloud-*",
            "cloud.mydomain.com",
            "192.168.1.30"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "version": "33.0.0.16",
        "versions_retention_obligation": "auto, 30",
        "files.chunked_upload.max_size": 99614720,
        "app_install_overwrite": [
            "oidc_login"
        ],
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": []
    }
}

List of activated Apps

Enabled:
  - activity: 6.0.0-dev.0
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - federation: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_external: 1.25.1
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - nextcloud_announcements: 5.0.0
  - notifications: 6.0.0
  - notify_push: 1.3.0
  - oauth2: 1.21.0
  - oidc_login: 3.3.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - previewgenerator: 5.12.1
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recommendations: 6.0.0-dev.0
  - related_resources: 4.0.0-dev.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - systemtags: 1.23.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - admin_audit: 1.23.0
  - app_api: 33.0.0 (installed 33.0.0)
  - encryption: 2.21.0
  - suspicious_login: 11.0.0-dev.0
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No log entries are produced for this

Additional info

Every time the command is run, the machine hosting the SMB share shows the connection attempt and lists it as "successful" in its audit logs.

Activity

  1. added theissue type on Feb 20, 2026
  2. susnux commented on Feb 21, 2026

    @susnux
    Contributor
  3. moved this from To triage to Triaged in 🧑‍🤝‍🧑 Community triageon Feb 21, 2026
  4. icewind1991 commented on Feb 23, 2026

    @icewind1991
    Member

    Can you try rolling back the icewind/smb library to 3.7.0 (the version that was included in NC32) and see if that resolve the issue for you.

    I think editing "3rdparty/composer.json" and then running composer update should do it, though I'm not a 100% if that will work if NC is installed from the release packages.

    Alternatively, if it's easier you can also try updating the NC32 snapshot to icewind/smb 3.8.1 and see if that has the same issue as 33 has for you.

  5. oblivioncth commented on Feb 24, 2026

    @oblivioncth
    ContributorAuthor

    I imagine testing in both directions is not necessary, though I'm happy to if desired.

    Repeating what I did, to ensure the test was proper, I:

    1. Destroyed my normal nextcloud instance and deployed the clone that is still on 32.0.6.1
    2. Confirmed that occ files_external:notify 1 ran without error
    3. Edited /app/www/public/3rdparty/composer.json
      • Changed config.platform.php from 8.1.0 to 8.2.0
      • Changed require.icewind/smb from ^3.7.0 to 3.8.1
    4. Ran composer update and confirmed package reinstall when .git was not found in the smb package dir
    5. Restarted the container, confirming the updated library remained
    6. Ran occ files_external:notify 1

    After doing this I can confirm that updating the library from 3.7.x to 3.8.1 on a NC32 install does reproduce the same error as on NC33.

  6. moved this from Triaged to In progress in 🧑‍🤝‍🧑 Community triageon Feb 24, 2026
  7. nmbgeek commented on Apr 3, 2026

    @nmbgeek

    Following - I am experiencing this as well on 33

  8. krzys-h commented on Apr 5, 2026

    @krzys-h

    Just updated my nextcloud instance and ran into the problem as well. Downgrading icewind/smb does seem to fix the issue.

  9. oblivioncth commented on Jun 26, 2026

    @oblivioncth
    ContributorAuthor

    @icewind1991
    You may have gotten this far already, but I took the time to bisect this for you. Seems the breakage is from 4a93467905985863d2ed765787d63d2677dabbcf

  10. added 3 commits that reference this issue on Jun 27, 2026
    d107097
    b919544
    9d16cbb
  11. added a commit that references this issue on Jul 17, 2026
    c401458
  12. added a commit that references this issue on Aug 3, 2026
    3b804d8
  13. added a commit that references this issue on Aug 10, 2026
    7925c87
  14. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

    This issue has been automatically locked because it has been closed for more than 14 days. As we do not monitor closed issues, we are locking this issue to prevent further comments from getting lost in the noise.
    Please open a new issue if you have a similar problem instead. For general discussions, please use our forum: https://help.nextcloud.com

  15. locked as resolved and limited conversation to collaborators on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions