SFTP Connection Closes after each folder listing - Thrashing? OwnCloud 10 Ubuntu 14


#1

Steps to reproduce

  1. Own Cloud 10 Clean Install Ubuntu 14
  2. Connect SFTP using Bitvise SSH on Windows 10
  3. Browse files or attempt to sync with client

Expected behaviour

SFTP Connection is opened. A batch of commands is executed all at once, for example, listing the contents of an entire selection of sub directories for sync. The connection is closed.

Actual behaviour

SFTP Connection is opened. Password authentication is completed on the FTP Server. The connection is closed within approximately 5 seconds. This process is repeated countless times apparently once for each folder or subfolder listing. For large datasets, this is thousands of times.

Using the Windows Client occasionally the error message "An error occurs while opening a folder connection closed" is displayed before the process is stopped. Eventually the process will restart.

Server configuration

Operating system:
Windows 10
Web server:
Ubuntu 14
Database:
MySQL
PHP version:
PHP 5
ownCloud version: (see ownCloud admin page)
version 10.0.2.1
Updated from an older ownCloud or fresh install:
fresh install
Where did you install ownCloud from:
bitnami
Signing status (ownCloud 9.0 and above):
SSL Signed

Are you using external storage, if yes which one: local/smb/sftp/...
SFTP
Are you using encryption: yes/no
no


ownCloud 10 multiple page not found errors using sFTP
#2

This is a correct description of how the external storage sftp connection works. Seems like the sftp connector can't handle it. Honestly, there are many better ways to connect to a Windows system from ownCloud rather then sftp ... if you like, you can chime in improve the code - otherwise I recommend a SMB connection. The Enterprise Edition has an additional way to actually get notifications via SMB which helps greatly and can be tested from marketplace.owncloud.com