File access/syncing broken: "TypeError fsockopen(): Argument #2 ($port) must be of type int, string given"

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 25 Autumn (32.0.6)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Armbian 25.11.2 bookworm \l . 6.6.63-current-bcm2712 (aarch64)
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.66 (Debian)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • ? Don't know
  • PHP version (e.g, 8.3):
    • 8.3.30
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 13 February 2026 (yesterday)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Nextcloud Pi
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I’m logged in via the web browser interface. When I click the Files icon I now consistently get the message, “This folder is unavailable, please try again later or contact the administration”.

When I try to sync my Windows 11 laptop, I get the message “Some files couldn’t be synced!”. (Apparently, no files were synced.)

For each attempt, the log shows two entries, with “No app in context” and “webdav” in the Application column. The consistent message is “TypeError fsockopen(): Argument #2 ($port) must be of type int, string given”. The full JSON is given below.

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

  1. Attempt to access Files via the web interface as a logged-in user; OR

  2. Attempt to sync a Windows 11 computer to the server.

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.

{
    "reqId": "aZBGoGyCxJW3EJnqxeAU7gAAFhE",
    "level": 3,
    "time": "2026-02-14T09:55:44+00:00",
    "remoteAddr": "178.84.207.113",
    "user": "tomgeller",
    "app": "webdav",
    "method": "PROPFIND",
    "url": "/remote.php/dav/files/tomgeller/",
    "scriptName": "/remote.php",
    "message": "fsockopen(): Argument #2 ($port) must be of type int, string given",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
    "version": "32.0.6.1",
    "exception": {
        "Exception": "TypeError",
        "Message": "fsockopen(): Argument #2 ($port) must be of type int, string given",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
                "line": 1309,
                "function": "fsockopen"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
                "line": 5217,
                "function": "_connect",
                "class": "phpseclib\\Net\\SSH2",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php",
                "line": 117,
                "function": "getServerPublicHostKey",
                "class": "phpseclib\\Net\\SSH2",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php",
                "line": 498,
                "function": "getConnection",
                "class": "OCA\\Files_External\\Lib\\Storage\\SFTP",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OCA\\Files_External\\Lib\\Storage\\SFTP",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php",
                "line": 114,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\PermissionsMask",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php",
                "line": 242,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Availability",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Cache/Scanner.php",
                "line": 98,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Cache/Scanner.php",
                "line": 139,
                "function": "getData",
                "class": "OC\\Files\\Cache\\Scanner",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/View.php",
                "line": 1558,
                "function": "scanFile",
                "class": "OC\\Files\\Cache\\Scanner",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Node/Folder.php",
                "line": 82,
                "function": "getDirectoryContent",
                "class": "OC\\Files\\View",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
                "line": 250,
                "function": "getDirectoryListing",
                "class": "OC\\Files\\Node\\Folder",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php",
                "line": 57,
                "function": "getChildren",
                "class": "OCA\\DAV\\Connector\\Sabre\\Directory",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php",
                "line": 106,
                "function": "cacheDirectory",
                "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "preloadCollection",
                "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/PropFindPreloadNotifyPlugin.php",
                "line": 44,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "collectionPreloadNotifier",
                "class": "OCA\\DAV\\Connector\\Sabre\\PropFindPreloadNotifyPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1052,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 984,
                "function": "getPropertiesByNode",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1664,
                "function": "getPropertiesIteratorForPath",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1649,
                "function": "writeMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                "line": 346,
                "function": "generateMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "httpPropFind",
                "class": "Sabre\\DAV\\CorePlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 472,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
                "line": 212,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Server.php",
                "line": 426,
                "function": "start",
                "class": "OCA\\DAV\\Connector\\Sabre\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",
                "line": 22,
                "function": "exec",
                "class": "OCA\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/remote.php",
                "line": 151,
                "args": [
                    "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
        "Line": 1309,
        "message": "fsockopen(): Argument #2 ($port) must be of type int, string given",
        "exception": [],
        "CustomMessage": "fsockopen(): Argument #2 ($port) must be of type int, string given"
    },
    "id": "69904b9718818"
}

---NEXT ENTRY---


{
    "reqId": "aZBGoGyCxJW3EJnqxeAU7gAAFhE",
    "level": 3,
    "time": "2026-02-14T09:55:44+00:00",
    "remoteAddr": "178.84.207.113",
    "user": "tomgeller",
    "app": "no app in context",
    "method": "PROPFIND",
    "url": "/remote.php/dav/files/tomgeller/",
    "scriptName": "/remote.php",
    "message": "Uncaught exception",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36",
    "version": "32.0.6.1",
    "exception": {
        "Exception": "TypeError",
        "Message": "fsockopen(): Argument #2 ($port) must be of type int, string given",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
                "line": 1309,
                "function": "fsockopen"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
                "line": 5217,
                "function": "_connect",
                "class": "phpseclib\\Net\\SSH2",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php",
                "line": 117,
                "function": "getServerPublicHostKey",
                "class": "phpseclib\\Net\\SSH2",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php",
                "line": 498,
                "function": "getConnection",
                "class": "OCA\\Files_External\\Lib\\Storage\\SFTP",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OCA\\Files_External\\Lib\\Storage\\SFTP",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php",
                "line": 114,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\PermissionsMask",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php",
                "line": 242,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php",
                "line": 294,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Availability",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Cache/Scanner.php",
                "line": 98,
                "function": "getMetaData",
                "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Cache/Scanner.php",
                "line": 139,
                "function": "getData",
                "class": "OC\\Files\\Cache\\Scanner",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/View.php",
                "line": 1558,
                "function": "scanFile",
                "class": "OC\\Files\\Cache\\Scanner",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/lib/private/Files/Node/Folder.php",
                "line": 82,
                "function": "getDirectoryContent",
                "class": "OC\\Files\\View",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php",
                "line": 250,
                "function": "getDirectoryListing",
                "class": "OC\\Files\\Node\\Folder",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php",
                "line": 57,
                "function": "getChildren",
                "class": "OCA\\DAV\\Connector\\Sabre\\Directory",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php",
                "line": 106,
                "function": "cacheDirectory",
                "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "preloadCollection",
                "class": "OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/PropFindPreloadNotifyPlugin.php",
                "line": 44,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "collectionPreloadNotifier",
                "class": "OCA\\DAV\\Connector\\Sabre\\PropFindPreloadNotifyPlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1052,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 984,
                "function": "getPropertiesByNode",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1664,
                "function": "getPropertiesIteratorForPath",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 1649,
                "function": "writeMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
                "line": 346,
                "function": "generateMultiStatus",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "httpPropFind",
                "class": "Sabre\\DAV\\CorePlugin",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
                "line": 472,
                "function": "emit",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php",
                "line": 212,
                "function": "invokeMethod",
                "class": "Sabre\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/lib/Server.php",
                "line": 426,
                "function": "start",
                "class": "OCA\\DAV\\Connector\\Sabre\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php",
                "line": 22,
                "function": "exec",
                "class": "OCA\\DAV\\Server",
                "type": "->"
            },
            {
                "file": "/var/www/nextcloud/remote.php",
                "line": 151,
                "args": [
                    "/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/Net/SSH2.php",
        "Line": 1309,
        "message": "Uncaught exception",
        "exception": [],
        "CustomMessage": "Uncaught exception"
    },
    "id": "69904b97187d7"
}

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.

PROPFIND https://URL-REMOVED/remote.php/dav/files/USERNAME-REMOVED/ 500 (Internal Server Error)
(anonymous) @ dav-Rt1kTtvI.mjs:638
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
execute @ index.js:2
patchInline @ index.js:2
le @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
(anonymous) @ index.js:2
getDirectoryContents @ index.js:2
(anonymous) @ Files.ts:48
l @ CancelablePromise.js:82
e @ CancelablePromise.js:81
push.36117.n @ CancelablePromise.js:30
r @ CancelablePromise.js:191
(anonymous) @ Files.ts:45
u @ Files.ts:33
fetchContent @ FilesList.vue:411
mounted @ FilesList.vue:363
ln @ vue.runtime.esm.js:3033
Wn @ vue.runtime.esm.js:4048
insert @ vue.runtime.esm.js:4443
x @ vue.runtime.esm.js:6966
(anonymous) @ vue.runtime.esm.js:7180
(anonymous) @ vue.runtime.esm.js:3781
a @ vue.runtime.esm.js:3891
(anonymous) @ vue.runtime.esm.js:3462
e @ vue.runtime.esm.js:3452
(anonymous) @ vue.runtime.esm.js:3908
(anonymous) @ vue.runtime.esm.js:8797
92323 @ main.ts:33
o @ bootstrap:19
(anonymous) @ files-main.js?v=7d6878f2-0:1
(anonymous) @ chunk loaded:23
(anonymous) @ files-main.js?v=7d6878f2-0:1
(anonymous) @ files-main.js?v=7d6878f2-0:1Understand this error
FilesList.vue:442 [ERROR] files: Error while fetching content {app: 'files', uid: 'USERNAME-REMOVED', level: '2', error: Error: Invalid response: 500 
    at Qe (https://tgeller.mooo.com/dist/core-common.js?v=7d6878f2-0:…}
log @ index.mjs:47
error @ index.mjs:65
fetchContent @ FilesList.vue:442
await in fetchContent
mounted @ FilesList.vue:363
ln @ vue.runtime.esm.js:3033
Wn @ vue.runtime.esm.js:4048
insert @ vue.runtime.esm.js:4443
x @ vue.runtime.esm.js:6966
(anonymous) @ vue.runtime.esm.js:7180
(anonymous) @ vue.runtime.esm.js:3781
a @ vue.runtime.esm.js:3891
(anonymous) @ vue.runtime.esm.js:3462
e @ vue.runtime.esm.js:3452
(anonymous) @ vue.runtime.esm.js:3908
(anonymous) @ vue.runtime.esm.js:8797
92323 @ main.ts:33
o @ bootstrap:19
(anonymous) @ files-main.js?v=7d6878f2-0:1
(anonymous) @ chunk loaded:23
(anonymous) @ files-main.js?v=7d6878f2-0:1
(anonymous) @ files-main.js?v=7d6878f2-0:1Understand this error
css-generic.js:1 uBOL: Generic cosmetic filtering stopped because no more DOM changes

Web server / Reverse Proxy

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

I saw nothing unusual in the access or error logs.

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!):

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "7": "nextcloudpi",
            "5": "nextcloudpi.local",
            "8": "nextcloudpi.lan",
            "3": "tgeller.mooo.com",
            "11": "178.84.207.113",
            "1": "192.168.178.165",
            "21": "nc.tgeller.com",
            "14": "nextcloudpi",
            "2": "tgeller.mooo.com",
            "12": "[2001:1c00:571f:2d00:b02d:2215:fada:eae4]"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.6.1",
        "overwrite.cli.url": "https:\/\/tgeller.mooo.com\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/media\/myCloudDrive\/ncdata\/data\/tmp",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "logfile": "\/media\/myCloudDrive\/ncdata\/data\/nextcloud.log",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "maintenance_window_start": 3,
        "default_phone_region": "nl",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": true,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_stmtptimeout": 30,
        "forbidden_filename_characters": [
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            ".filepart",
            ".part"
        ],
        "filesystem_check_changes": 1,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "theme": ""
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "filesystem"
        },
        "app_api": {
            "enabled": "no",
            "installed_version": "5.0.2",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "23"
        },
        "bruteForce": {
            "whitelist_1": "178.84.199.93\/1"
        },
        "bruteforcesettings": {
            "apply_allowlist_to_ratelimit": "1",
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "6.2.0",
            "types": ""
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "32.0.0",
            "loopback_tmp_path": "\/",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1771062302,\"2\":1771065001,\"1\":1771065001}",
            "migration_22": "1",
            "migration_run": "0",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.16.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "8.3.2",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.13.1",
            "types": "dav"
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "emailTestSuccessful": "0",
            "installedat": "1731099208.7405",
            "lastcron": 1771065001,
            "lastupdatedat": 0,
            "metadataGenerationDone": true,
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "1699972f643c5d6ec7b8fae46078766a",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-gps": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-place": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.12.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "builtSocialSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.34.2",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "authentication"
        },
        "files": {
            "enabled": "yes",
            "installed_version": "2.4.0",
            "mimetype_version": "32.0.6.1",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "5.0.0-dev.0",
            "types": ""
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.24.1",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.24.1",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.25.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "nextcloudpi": {
            "enabled": "yes",
            "installed_version": "0.0.2",
            "types": ""
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "4.13.0",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "logging"
        },
        "notify_push": {
            "base_endpoint": "https:\/\/tgeller.mooo.com\/push",
            "cookie": "***REMOVED SENSITIVE VALUE***",
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "lastPlaceMappedUser": "ncp",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "preview": {
            "jpeg_quality": "60"
        },
        "previewgenerator": {
            "enabled": "yes",
            "heightSizes": "256",
            "installed_version": "99.99.99",
            "squareSizes": "32 256",
            "types": "filesystem",
            "widthSizes": "256 384"
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "profile": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "serverinfo": {
            "cached_count_appdata_files": 222805,
            "cached_count_filecache": 10423657,
            "cached_count_storages": 8,
            "enabled": "yes",
            "installed_version": "4.0.0",
            "size_appdata_storage": 42773148,
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.15.1",
            "profile_enabled_by_default": "0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "filesystem"
        },
        "support": {
            "SwitchUpdaterServerHasRun": "yes",
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "logging"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0.17.1",
            "types": ""
        },
        "text": {
            "enabled": "yes",
            "installed_version": "6.0.1",
            "types": "dav"
        },
        "theming": {
            "backgroundMime": "image\/png",
            "enabled": "yes",
            "installed_version": "2.7.0",
            "logoDimensions": "500x500",
            "logoMime": "image\/svg+xml",
            "name": "NextCloudPi",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": ""
        },
        "updatenotification": {
            "enabled": "no",
            "installed_version": "1.20.0",
            "types": ""
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "webhook_listeners": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.14.0",
            "types": "filesystem"
        }
    }
}

Apps

Cannot load Zend OPcache - it was already loaded
Enabled:

activity: 5.0.0

bruteforcesettings: 5.0.0

calendar: 6.2.0

circles: 32.0.0

cloud_federation_api: 1.16.0

comments: 1.22.0

contacts: 8.3.2

contactsinteraction: 1.13.1

dashboard: 7.12.0

dav: 1.34.2

federatedfilesharing: 1.22.0

federation: 1.22.0

files: 2.4.0

files_downloadlimit: 5.0.0-dev.0

files_external: 1.24.1

files_pdfviewer: 5.0.0

files_reminders: 1.5.0

files_sharing: 1.24.1

files_trashbin: 1.22.0

files_versions: 1.25.0

firstrunwizard: 5.0.0

logreader: 5.0.0

lookup_server_connector: 1.20.0

nextcloud_announcements: 4.0.0

nextcloudpi: 0.0.2

notes: 4.13.0

notifications: 5.0.0

notify_push: 1.3.0

oauth2: 1.20.0

password_policy: 4.0.0

photos: 5.0.0

previewgenerator: 99.99.99

privacy: 4.0.0

profile: 1.1.0

provisioning_api: 1.22.0

recommendations: 5.0.0

related_resources: 3.0.0

serverinfo: 4.0.0

settings: 1.15.1

sharebymail: 1.22.0

support: 4.0.0

survey_client: 4.0.0

systemtags: 1.22.0

tasks: 0.17.1

text: 6.0.1

theming: 2.7.0

twofactor_backupcodes: 1.21.0

user_status: 1.12.0

viewer: 5.0.0

weather_status: 1.12.0

webhook_listeners: 1.3.0

workflowengine: 2.14.0
Disabled:

admin_audit: 1.22.0

app_api: 32.0.0 (installed 5.0.2)

encryption: 2.20.0

suspicious_login: 10.0.0

twofactor_nextcloud_notification: 6.0.0

twofactor_totp: 14.0.0

updatenotification: 1.22.0 (installed 1.20.0)

user_ldap: 1.23.0

Looks like:

2 Likes

Thank you! I applied the new file at fix(sftp): Handle empty port parameter to allow host-defined ports by solracsf · Pull Request #58350 · nextcloud/server · GitHub and it all seems to work now.

I just noticed the same issue two or three days ago. Yesterday I upgraded to Nextcloud Hub 26 Winter (33.0.0), but there is no change in behaviour. As I am using a german Manajaro KDE Plasma, my ‘Nextcloud Desktop-Synchronisationsclient’ stopps synching with the message “Einige Dateien konnten nicht synchronisiert werden! Warnung siehe unten” I don’t know where these warnings should be. Also in the web frontend: “Dieser Ordner ist nicht verfügbar. Bitte später erneut versuchen oder an die Administration wenden”.

I looked through the linked pages, but I don’t get it. Don’t understand the workflow and words. So @tgeller what file did you apply? What did you do to fix it?

Don’t feel bad – development processes are pretty opaque until you’ve worked with them for a while.

  1. Click the link I provided.
  2. Click the “Files changed” tab. There you’ll see two things:
    1. What file was changed. In this case, apps/files_external/lib/Lib/Storage/SFTP.php. This is relative to NextCloud’s installation location, which (on my system, if I remember correctly) is /var/www/nextcloud. So the full path of the file to change was /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php .
    2. Which lines to add (shown in green) or remove (in red). In this case, five lines were added and two removed. (Some of them were just adding or deleting blank lines for better appearance.)
  3. Make a copy of the file on your system before applying the changes, just in case the new ones break your installation. In this case I named the copy SFTP-old.php.
  4. Change your SFTP.php as indicated.
  5. Test it by using your NextCloud. When you’re satisfied everything works well, you can delete SFTP-old.php.

This is a beginner’s method that works for small changes like this one. There are other methods for bigger changes.

Note that there’s no guarantee that your problem was the same as mine, so this fix might not work for you.

Good luck!

For those who are using 32.0.6, I have a SFTP external storage and just solved this error by following this comment.

Fill in the port number should fix this.

To solve this, you have to add the SFTP-Port in the External Storage Configuration. There is a port-Field under the Host-Field now. Just enter the port number (22, 23 or whatever your SFTP port is), and everything will work.

1 Like

@tgeller Thank you very much for this detailed description. I could follow it easily and fix my problem this way. I thought about changing the code, but as you wrote “applied the new file” I looked for a download. :slight_smile:

1 Like