Owncloudcmd failes to sync with error

Steps to reproduce

I am trying to run the owncloudcmd utility to make a onetime sync. To test this I am trying for the folder Temp on the server to a folder on the local computer.

export OWNCLOUD_CHUNKING_NG=0
owncloudcmd --trust  -u <username>  -p <pwd>  /mnt/disk/tmp/test  https://<domainName.com>/remote.php/dav/files/<username>/Temp/

This produces the following error :

07-23 16:01:18:963 [ info sync.accessmanager ]: 2 "" "https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "32f24275-6e41-4813-af2b-8589ab884e0c"
07-23 16:01:18:963 [ info sync.networkjob ]:    Created OCC::JsonApiJob("https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json", "32f24275-6e41-4813-af2b-8589ab884e0c", "32f24275-6e41-4813-af2b-8589ab884e0c") for QObject(0x0)
07-23 16:01:19:205 [ warning sync.networkjob ]: OCC::JsonApiJob("https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json", "32f24275-6e41-4813-af2b-8589ab884e0c", "32f24275-6e41-4813-af2b-8589ab884e0c", "Error transferring https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json - server replied: Not Found") QNetworkReply::ContentNotFoundError "Server replied \"404 Not Found\" to \"GET https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json\"" 404
07-23 16:01:19:205 [ info sync.networkjob.jsonapi ]:    JsonApiJob of QUrl("https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS "ContentNotFoundError Server replied \"404 Not Found\" to \"GET https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json\""
07-23 16:01:19:206 [ warning sync.networkjob.jsonapi ]: Network error:  OCC::JsonApiJob("https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json", "32f24275-6e41-4813-af2b-8589ab884e0c", "32f24275-6e41-4813-af2b-8589ab884e0c", "Error transferring https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json - server replied: Not Found") "Server replied \"404 Not Found\" to \"GET https://<domainName.com>/remote.php/dav/files/<username>/Temp/ocs/v1.php/cloud/capabilities?format=json\"" 404
07-23 16:01:19:206 [ debug default ]    [ main(int, char**)::<lambda ]: Server capabilities QJsonObject()
07-23 16:01:19:206 [ fatal default ]:   Error connecting to server

Aborted                 (core dumped) owncloudcmd --trust -u <username> -p <pwd> /mnt/disk/tmp/test https://<domainName.com>/remote.php/dav/files/<username>/Temp/

Expected behaviour

Sync happens for the folder Temp on the server to the local folder

Actual behaviour

Error is reported

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: Apache

Database: PostGreSQL

PHP version: php 7.2

ownCloud version: 10.2.0

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: Official repo

Signing status (ownCloud 9.0 and above):

No errors have been found.

List of activated apps:

 
sudo -u www-data php occ app:list

Enabled:
  - activity: 2.4.2
  - bookmarks: 0.10.5
  - calendar: 1.6.2
  - comments: 0.3.0
  - configreport: 0.2.0
  - dav: 0.4.0
  - federatedfilesharing: 0.4.0
  - federation: 0.1.0
  - files: 1.5.2
  - files_external: 0.7.1
  - files_pdfviewer: 0.11.0
  - files_sharing: 0.11.0
  - files_texteditor: 2.3.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.10.1
  - firstrunwizard: 1.2.0
  - gallery: 16.1.1
  - market: 0.4.0
  - notifications: 0.5.0
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.4.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - user_external
  - wallpaper
 

Are you using external storage, if yes which one: No

Are you using encryption: No

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

Version :

owncloudcmd -v
ownCloud 2.11.1 (build 8946) Aug 31 2022 10:28:50
https://github.com/owncloud/client/commit/c6dbf397482d074bc931e2812bb5542f0fa23d0d
Libraries Qt 5.12.10, OpenSSL 1.1.1  11 Sep 2018
Using virtual files plugin: off

Logs

Web server error log (login attempts by owncloudcmd

{"reqId":"eb0bd9f4-4464-4aeb-afe5-2a751d37f82d","level":2,"time":"2023-07-23T14:26:46+08:00","remoteAddr":"192.168.2.1","user":"<username>","app":"no app in context","method":"GET","url":"\/remote.php\/dav\/files\/<username>\/Temp\/ocs\/v1.php\/cloud\/capabilities?format=json","message":"File with name Temp\/ocs\/v1.php\/cloud\/capabilities could not be located"}
{"reqId":"7b562124-bed7-475f-a149-d7701bfc35a9","level":2,"time":"2023-07-23T16:00:23+08:00","remoteAddr":"192.168.2.1","user":"<username>","app":"no app in context","method":"GET","url":"\/remote.php\/dav\/files\/<username>\/Temp\/ocs\/v1.php\/cloud\/capabilities?format=json","message":"File with name Temp\/ocs\/v1.php\/cloud\/capabilities could not be located"}
{"reqId":"32f24275-6e41-4813-af2b-8589ab884e0c","level":2,"time":"2023-07-23T16:01:19+08:00","remoteAddr":"192.168.2.1","user":"<username>","app":"no app in context","method":"GET","url":"\/remote.php\/dav\/files\/<username>\/Temp\/ocs\/v1.php\/cloud\/capabilities?format=json","message":"File with name Temp\/ocs\/v1.php\/cloud\/capabilities could not be located"}

Hey,

i think this is a quite old version of the desktop client. Maybe you can re-try with a more recent version because i’m not sure if the ownCloud people is still supporting such versions on recent ownCloud server versions:

$ owncloudcmd --version
owncloudcmd ownCloud 4.1.0.11250
https://github.com/owncloud/client/commit/279a6f3ff8ffc7138acee7b160ad9edab8f913bb
Libraries Qt 5.15.2, OpenSSL 3.0.9 30 May 2023
Using virtual files plugin: suffix
2 Likes

Thank you for the suggestion.

Upgrading to version 4.1 fixed the issue. I had to upgrade the OS as well for this but all fine. :slight_smile:

owncloudcmd ownCloud 4.1.0.11250
https://github.com/owncloud/client/commit/279a6f3ff8ffc7138acee7b160ad9edab8f913bb
Libraries Qt 5.15.2, OpenSSL 1.1.1f  31 Mar 2020
Using virtual files plugin: suffix
ubuntu-5.4.0-153-generic
2 Likes

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