Nextcloud 10 will not connect reliably with Owncloud Ubuntu Desktop

I’ve been running Nextcloud 10 server on an ubuntu box for some months now. I’ve had on and off again trouble with connecting to an Owncloud Client on Ubuntu 14.04. Currently the client is “waiting” and grayed out. On the same ubuntu 14.04 desktop I’m running Windows 7 through virtualbox. The Nextcloud desktop on the windows machine connects without problems. I would gladly install Nextcloud Desktop client but I’ve had difficulties compiling it.

But this is a problem especially since most ubuntu users are using the Owncloud desktop client (out of convenience).

So until such time when there is a reasonable install path for Linux users… please direct me to directions that a reasonably computer literate person can follow to install Nextcloud client on Linux Ubuntu…

Here is the error in Nextcloud log as I try to connect

Log
Fatal webdav Exception: {“Message”:“HTTP/1.1 400 File name contains at least one invalid character”,“Exception”:“OCA\DAV\Connector\Sabre\Exception\InvalidPath”,“Code”:0,“Trace”:"#0 /var/www/nextcloud/apps/dav/lib/Connector/Sabre/LockPlugin.php(60): OCA\DAV\Connector\Sabre\ObjectTree->getNodeForPath(‘agregorigroup/n…’)\n#1 [internal function]: OCA\DAV\Connector\Sabre\LockPlugin->getLock(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#2 /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#3 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(446): Sabre\Event\EventEmitter->emit(‘beforeMethod’, Array)\n#4 /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#5 /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php(60): Sabre\DAV\Server->exec()\n#6 /var/www/nextcloud/remote.php(165): require_once(’/var/www/nextcl…’)\n#7 {main}",“File”:"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/ObjectTree.php",“Line”:129,“User”:“wayneg”}

The current owncloud client should run without problems, do you run a current version (2.2.4)? Can you check if you have some files with strange characters? Some special characters are known to cause problems and they can cause this error.

The owncloud client is 2.2.4. Can you recommend a way to see if I have a file with “strange characters”?

Here’s a little more info: The following day I started the system and it started working again. If it does not restart in a day I can force a successful restart by removing the nextcloud directory on the desktop and relogin with the client and restart a synch… that results in a working system too.

Some weeks ago i did receive an error message regarding a file with unacceptable extraneous characters… I deleted the file… but I have running the Deleted Files and Versions App… could that still be accessing this unacceptable file?
Thanks,
Wayne

Did you install the client from the Suse repository? I had some problems with the owncloud-client package lately. I discovered my version of owncloud-client was 2.2.4-1.3 but the latest and greatest version from the repo was 2.2.4-1.1
Maybe there was a problem with the subversion 3 and they’ve withdrawn it. I reinstalled the client and the problem was gone. Maybe you should check which exact version do you use…

$ apt policy owncloud-client
owncloud-client:
  Installed: 2.2.4-1.1
  Candidate: 2.2.4-1.1
  Version table:
 *** 2.2.4-1.1 500
        500 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.10  Packages
        100 /var/lib/dpkg/status
     2.2.2+dfsg-1 500
        500 http://de.archive.ubuntu.com/ubuntu yakkety/universe i386 Packages

You can also open the client log-window with F12, there it perhaps tells you which file it is.

up to date… thanks for the note though

owncloud-client:
Installed: 2.2.4-1.3
Candidate: 2.2.4-1.3
Version table:
*** 2.2.4-1.3 0
500 http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.04/ Packages
100 /var/lib/dpkg/status
1.5.0+dfsg-4ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

Here’s what F12 give us:

11-22 18:50:34:074 0x27e7460 status.php returns: QMap((“edition”, QVariant(QString, “”) ) ( “installed” , QVariant(bool, true) ) ( “maintenance” , QVariant(bool, false) ) ( “version” , QVariant(QString, “9.1.0.16”) ) ( “versionstring” , QVariant(QString, “10.0”) ) ) 0 Reply: QNetworkReplyImpl(0x2acb000)
11-22 18:50:34:077 0x27e7460 ** Application: ownCloud found: QUrl( “https://cloud.gregorigroup.com/status.php” ) with version “10.0” ( “9.1.0.16” )
11-22 18:50:34:077 0x27e7460 # Check whether authenticated propfind works.
11-22 18:50:34:078 0x27e7460 !!! OCC::PropfindJob created for “https://cloud.gregorigroup.com” + “/” "OCC::ConnectionValidator"
11-22 18:51:01:087 0x27e7460 virtual void OCC::AbstractNetworkJob::slotTimeout() OCC::PropfindJob(0x32f51d0) Timeout QUrl( “https://cloud.gregorigroup.com/remote.php/webdav/” )
11-22 18:51:01:088 0x27e7460 void OCC::AbstractNetworkJob::slotFinished() 5 “Operation canceled” QVariant(, )
11-22 18:51:01:089 0x27e7460 PROPFIND request not successful, http result code is 0 ""
11-22 18:51:01:089 0x27e7460 “No connection to ownCloud at https://cloud.gregorigroup.com.
Operation canceled"
11-22 18:51:01:090 0x27e7460 Account "wayneg@cloud.gregorigroup.com” disconnected or paused, terminating or descheduling sync folders
11-22 18:51:05:840 0x27e7460 Resetting QNAM
11-22 18:51:05:841 0x27e7460 Checking server and authentication
11-22 18:51:05:841 0x27e7460 Trying to look up system proxy
11-22 18:51:05:842 0x2a9bd80 virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
11-22 18:51:05:850 0x27e7460 No system proxy set by OS
11-22 18:51:05:851 0x27e7460 Object::connect: No such signal QNetworkReplyImpl::encrypted() in /usr/src/packages/BUILD/src/libsync/networkjobs.cpp:371
11-22 18:51:05:851 0x27e7460 !!! OCC::CheckServerJob created for “https://cloud.gregorigroup.com” + “status.php” "OCC::ConnectionValidator"
11-22 18:51:06:127 0x27e7460 status.php returns: QMap((“edition”, QVariant(QString, “”) ) ( “installed” , QVariant(bool, true) ) ( “maintenance” , QVariant(bool, false) ) ( “version” , QVariant(QString, “9.1.0.16”) ) ( “versionstring” , QVariant(QString, “10.0”) ) ) 0 Reply: QNetworkReplyImpl(0x3304c70)
11-22 18:51:06:128 0x27e7460 ** Application: ownCloud found: QUrl( “https://cloud.gregorigroup.com/status.php” ) with version “10.0” ( “9.1.0.16” )
11-22 18:51:06:128 0x27e7460 # Check whether authenticated propfind works.
11-22 18:51:06:129 0x27e7460 !!! OCC::PropfindJob created for “https://cloud.gregorigroup.com” + “/” "OCC::ConnectionValidator"
11-22 18:51:33:143 0x27e7460 virtual void OCC::AbstractNetworkJob::slotTimeout() OCC::PropfindJob(0x3365100) Timeout QUrl( “https://cloud.gregorigroup.com/remote.php/webdav/” )
11-22 18:51:33:144 0x27e7460 void OCC::AbstractNetworkJob::slotFinished() 5 “Operation canceled” QVariant(, )
11-22 18:51:33:144 0x27e7460 PROPFIND request not successful, http result code is 0 ""
11-22 18:51:33:145 0x27e7460 “No connection to ownCloud at https://cloud.gregorigroup.com.
Operation canceled"
11-22 18:51:33:146 0x27e7460 Account "wayneg@cloud.gregorigroup.com” disconnected or paused, terminating or descheduling sync folders
11-22 18:51:37:836 0x27e7460 Resetting QNAM
11-22 18:51:37:837 0x27e7460 Checking server and authentication
11-22 18:51:37:838 0x27e7460 Trying to look up system proxy
11-22 18:51:37:838 0x2a9bd80 virtual void OCC::SystemProxyRunnable::run() Starting system proxy lookup
11-22 18:51:37:841 0x27e7460 No system proxy set by OS
11-22 18:51:37:842 0x27e7460 Object::connect: No such signal QNetworkReplyImpl::encrypted() in /usr/src/packages/BUILD/src/libsync/networkjobs.cpp:371
11-22 18:51:37:842 0x27e7460 !!! OCC::CheckServerJob created for “https://cloud.gregorigroup.com” + “status.php” "OCC::ConnectionValidator"
11-22 18:51:38:092 0x27e7460 status.php returns: QMap((“edition”, QVariant(QString, “”) ) ( “installed” , QVariant(bool, true) ) ( “maintenance” , QVariant(bool, false) ) ( “version” , QVariant(QString, “9.1.0.16”) ) ( “versionstring” , QVariant(QString, “10.0”) ) ) 0 Reply: QNetworkReplyImpl(0x336c7d0)
11-22 18:51:38:093 0x27e7460 ** Application: ownCloud found: QUrl( “https://cloud.gregorigroup.com/status.php” ) with version “10.0” ( “9.1.0.16” )
11-22 18:51:38:094 0x27e7460 # Check whether authenticated propfind works.
11-22 18:51:38:095 0x27e7460 !!! OCC::PropfindJob created for “https://cloud.gregorigroup.com” + “/” “OCC::ConnectionValidator”

Tonight I have all three systems in my office unable to connect to Nextcloud. Two ubuntu systems running Owncloud-client and a Win 7 machine running Nextcloud-client. I can still access nextcloud via the web and on my phone. But the desktop clients will not connect. I checked the load on the Nextcloud server

root@odroid64:~# uptime
23:10:08 up 5 days, 2:21, 1 user, load average: 0.00, 0.08, 0.11
root@odroid64:~#

so it’s not an overloaded system but for some reason nextcloud is not responding to the desktop clients…

I can force each system to reconnect by removing the account and resetting up…
Wayne

You get a timeout. Not sure, perhaps a firewall blocking the connections? Can you connect to demo.nextcloud.com (user/pw: test/test)?
Is your webdav-interface working properly? You can try to connect to webdav directly (in your file manager, you can connect to network storage, url would be davs://youserver.com/remote.php/webdav).

Hi Tflidd,

I can successfully connect via webdav and I can connect using demo.nextcloud.com. But as I mentioned, I can force a synch to start on my desktop system if I remove and reenter the account details. It will synch up and work for the day…or a couple of days then stop working.

Can you check the server logfiles as well. Is there still the problem with the not-supported file name?

Regarding the connection time outs, you are not using a proxy server, or you have other network issues, problems with DNS resolving, …?

If you have more logs, perhaps check on the client bug tracker if you can find similar reports: https://github.com/owncloud/client/issues