My owncloud cant connect sftp

Steps to reproduce

  1. I use the SFTP option to add external storage with username password

Expected behaviour

external storage access

Actual behaviour

Connection fail

Server configuration

Operating system: Ubuntu Server 20.04 LTSR

Web server: Apache/2.4.41 (Ubuntu)

Database: 10.3.32-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04

PHP version: PHP 7.4.3 (cli)

ownCloud version: (see ownCloud admin page) 10.9.1.2

Updated from an older ownCloud or fresh install: 10.9.1.2

Where did you install ownCloud from: Documentation guide

Signing status (ownCloud 9.0 and above): no

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

![1|690x190](upload://hYOzWvH6ipRtRqTIxaNGd4T8Cq4.jpeg)

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

config file
{
“system”: {
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“localhost”,
“192.168.100.72”
],
“datadirectory”: “/var/www/owncloud/data”,
“overwrite.cli.url”: “http://localhost”,
“dbtype”: “mysql”,
“version”: “10.9.1.2”,
“dbname”: “owncloud”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“allow_user_to_change_mail_address”: “”,
“logtimezone”: “UTC”,
“apps_paths”: [
{
“path”: “/var/www/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“instanceid”: “ocr7t70bk517”,
“memcache.local”: “\OC\Memcache\APCu”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “127.0.0.1”,
“port”: “6379”
}
}
}

List of activated apps:
nabled:

  • activity:
    • Version: 2.6.1
    • Path: /var/www/owncloud/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/comments
  • configreport:
    • Version: 0.2.0
    • Path: /var/www/owncloud/apps/configreport
  • dav:
    • Version: 0.7.0
    • Path: /var/www/owncloud/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/owncloud/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /var/www/owncloud/apps/files
  • files_external:
    • Version: 0.8.0
    • Path: /var/www/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /var/www/owncloud/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /var/www/owncloud/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/owncloud/apps/files_sharing
  • files_texteditor:
    • Version: 2.4.1
    • Path: /var/www/owncloud/apps/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /var/www/owncloud/apps/firstrunwizard
  • market:
    • Version: 0.6.2
    • Path: /var/www/owncloud/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /var/www/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/owncloud/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/owncloud/apps/updatenotification
      Disabled:
  • admin_audit:
    • Path: /var/www/owncloud/apps/admin_audit
  • announcementcenter:
    • Path: /var/www/owncloud/apps/announcementcenter
  • customgroups:
    • Path: /var/www/owncloud/apps/customgroups
  • encryption:
    • Path: /var/www/owncloud/apps/encryption
  • enterprise_key:
    • Path: /var/www/owncloud/apps/enterprise_key
  • external:
    • Path: /var/www/owncloud/apps/external
  • files_antivirus:
    • Path: /var/www/owncloud/apps/files_antivirus
  • files_classifier:
    • Path: /var/www/owncloud/apps/files_classifier
  • files_external_dropbox:
    • Path: /var/www/owncloud/apps/files_external_dropbox
  • files_external_ftp:
    • Path: /var/www/owncloud/apps/files_external_ftp
  • files_ldap_home:
    • Path: /var/www/owncloud/apps/files_ldap_home
  • files_lifecycle:
    • Path: /var/www/owncloud/apps/files_lifecycle
  • firewall:
    • Path: /var/www/owncloud/apps/firewall
  • graphapi:
    • Path: /var/www/owncloud/apps/graphapi
  • guests:
    • Path: /var/www/owncloud/apps/guests
  • metrics:
    • Path: /var/www/owncloud/apps/metrics
  • oauth2:
    • Path: /var/www/owncloud/apps/oauth2
  • openidconnect:
    • Path: /var/www/owncloud/apps/openidconnect
  • password_policy:
    • Path: /var/www/owncloud/apps/password_policy
  • ransomware_protection:
    • Path: /var/www/owncloud/apps/ransomware_protection
  • sharepoint:
    • Path: /var/www/owncloud/apps/sharepoint
  • systemtags_management:
    • Path: /var/www/owncloud/apps/systemtags_management
  • theme-enterprise:
    • Path: /var/www/owncloud/apps/theme-enterprise
  • user_external:
    • Path: /var/www/owncloud/apps/user_external
  • user_ldap:
    • Path: /var/www/owncloud/apps/user_ldap
  • user_shibboleth:
    • Path: /var/www/owncloud/apps/user_shibboleth
  • web:
    • Path: /var/www/owncloud/apps/web
  • windows_network_drive:
    • Path: /var/www/owncloud/apps/windows_network_drive
  • wopi:
    • Path: /var/www/owncloud/apps/wopi
  • workflow:
    • Path: /var/www/owncloud/apps/workflow
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: yes i use qnap storage and started stftp and tested it’ no ploblem

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser: Edge

Operating system: Window 10

Logs

Web server error log

Insert your websMon Feb 14 22:51:24.190695 2022] [mpm_prefork:notice] [pid 52143] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Feb 14 22:51:24.190753 2022] [core:notice] [pid 52143] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 22:52:23.643002 2022] [mpm_prefork:notice] [pid 52143] AH00169: caught SIGTERM, shutting down
[Mon Feb 14 22:52:23.726666 2022] [mpm_prefork:notice] [pid 55948] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Feb 14 22:52:23.726747 2022] [core:notice] [pid 55948] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 22:52:46.465122 2022] [mpm_prefork:notice] [pid 55948] AH00171: Graceful restart requested, doing restart
AH00112: Warning: DocumentRoot [/var/www/owncloud] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Mon Feb 14 22:52:46.501299 2022] [mpm_prefork:notice] [pid 55948] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Feb 14 22:52:46.501314 2022] [core:notice] [pid 55948] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 22:53:12.055058 2022] [mpm_prefork:notice] [pid 55948] AH00171: Graceful restart requested, doing restart
AH00112: Warning: DocumentRoot [/var/www/owncloud] does not exist
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Mon Feb 14 22:53:12.101983 2022] [mpm_prefork:notice] [pid 55948] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Feb 14 22:53:12.102010 2022] [core:notice] [pid 55948] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 23:09:16.831372 2022] [mpm_prefork:notice] [pid 55948] AH00169: caught SIGTERM, shutting down
[Mon Feb 14 23:09:37.801384 2022] [mpm_prefork:notice] [pid 942] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Mon Feb 14 23:09:37.801594 2022] [core:notice] [pid 942] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 14 23:10:28.318712 2022] [authz_core:error] [pid 2077] [client 192.168.100.21:62869] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Feb 14 23:22:35.284631 2022] [authz_core:error] [pid 1061] [client 192.168.100.21:63072] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Mon Feb 14 23:28:37.290002 2022] [authz_core:error] [pid 1063] [client 192.168.100.21:63207] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
erver log here

ownCloud log (data/owncloud.log)

{"reqId":"BFBS8lEoPDCpLCuL7LUt","level":3,"time":"2022-02-15T07:08:49+00:00","remoteAddr":"192.168.100.21","user":"admin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/globalstorages\/1?testOnly=true","message":"Exception: {\"Exception\":\"RuntimeException\",\"Message\":\"Invalid size\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(3300): phpseclib3\\\\Net\\\\SSH2->read_remaining_bytes()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1536): phpseclib3\\\\Net\\\\SSH2->get_binary_packet()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1412): phpseclib3\\\\Net\\\\SSH2->key_exchange()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2159): phpseclib3\\\\Net\\\\SSH2->connect()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2137): phpseclib3\\\\Net\\\\SSH2->sublogin(*** sensitive parameters replaced ***)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(140): phpseclib3\\\\Net\\\\SSH2->login(*** sensitive parameters replaced ***)\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(156): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->getConnection()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->test()\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#9 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(303): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\StoragesController->show()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(927): OC\\\\Route\\\\Router->match()\\n#16 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php\",\"Line\":3490}"}
{"reqId":"AFP7JuUkZ5deULfUVR8H","level":3,"time":"2022-02-15T07:08:49+00:00","remoteAddr":"192.168.100.21","user":"admin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/globalstorages\/1?testOnly=true","message":"Exception: {\"Exception\":\"RuntimeException\",\"Message\":\"Invalid size\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(3300): phpseclib3\\\\Net\\\\SSH2->read_remaining_bytes()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1536): phpseclib3\\\\Net\\\\SSH2->get_binary_packet()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1412): phpseclib3\\\\Net\\\\SSH2->key_exchange()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2159): phpseclib3\\\\Net\\\\SSH2->connect()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2137): phpseclib3\\\\Net\\\\SSH2->sublogin(*** sensitive parameters replaced ***)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(140): phpseclib3\\\\Net\\\\SSH2->login(*** sensitive parameters replaced ***)\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(156): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->getConnection()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->test()\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#9 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(303): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\StoragesController->show()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(927): OC\\\\Route\\\\Router->match()\\n#16 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php\",\"Line\":3490}"}
{"reqId":"sWIV0WUAKWnPLNy47B3i","level":3,"time":"2022-02-15T07:10:14+00:00","remoteAddr":"192.168.100.21","user":"admin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/globalstorages\/1?testOnly=true","message":"Exception: {\"Exception\":\"RuntimeException\",\"Message\":\"Invalid size\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(3300): phpseclib3\\\\Net\\\\SSH2->read_remaining_bytes()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1536): phpseclib3\\\\Net\\\\SSH2->get_binary_packet()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1412): phpseclib3\\\\Net\\\\SSH2->key_exchange()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2159): phpseclib3\\\\Net\\\\SSH2->connect()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2137): phpseclib3\\\\Net\\\\SSH2->sublogin(*** sensitive parameters replaced ***)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(140): phpseclib3\\\\Net\\\\SSH2->login(*** sensitive parameters replaced ***)\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(156): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->getConnection()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->test()\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#9 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(303): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\StoragesController->show()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(927): OC\\\\Route\\\\Router->match()\\n#16 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php\",\"Line\":3490}"}
{"reqId":"Td8qeZsY8fKrNRijVIek","level":3,"time":"2022-02-15T07:10:15+00:00","remoteAddr":"192.168.100.21","user":"admin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/globalstorages\/1?testOnly=true","message":"Exception: {\"Exception\":\"RuntimeException\",\"Message\":\"Invalid size\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(3300): phpseclib3\\\\Net\\\\SSH2->read_remaining_bytes()\\n#1 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1536): phpseclib3\\\\Net\\\\SSH2->get_binary_packet()\\n#2 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(1412): phpseclib3\\\\Net\\\\SSH2->key_exchange()\\n#3 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2159): phpseclib3\\\\Net\\\\SSH2->connect()\\n#4 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php(2137): phpseclib3\\\\Net\\\\SSH2->sublogin(*** sensitive parameters replaced ***)\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(140): phpseclib3\\\\Net\\\\SSH2->login(*** sensitive parameters replaced ***)\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SFTP.php(156): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->getConnection()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SFTP->test()\\n#8 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#9 \\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(303): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\StoragesController->show()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(927): OC\\\\Route\\\\Router->match()\\n#16 \\\/var\\\/www\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#17 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/phpseclib\\\/phpseclib\\\/phpseclib\\\/Net\\\/SSH2.php\",\"Line\":3490}"}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Welcome to th forum, @Jetsada_Bitz

I don’t use any external ftp connections, but your “invalid size” issue sounds well known to me. Indeed, there was a similar thread in the past. Have a look at it.

BTW, I want to avoid flaming up and/or continue the discussion from there. My proposal was a (for myself) acceptable solution. I don’t have to amend anything to it.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.