Owncloudcmd Forbidden

owncloudcmd -u user -p pass /tmp/test https:cloud.domain.com

01-18 18:10:30:653 [ info sync.csync.csync ]: ## Starting remote discovery ##
01-18 18:10:30:653 [ info sync.accessmanager ]: 6 “PROPFIND” “https:cloud.dmain.com/remote.php/dav/files/user/” has X-Request-ID “4f23f45a-61b4-4939-a7c9-4c0248e75b17”
01-18 18:10:30:653 [ info sync.networkjob ]: OCC::LsColJob created for “https:cloud.domain.com” + “” “OCC::DiscoverySingleDirectoryJob”
01-18 18:10:30:675 [ warning sync.networkjob ]: QNetworkReply::ContentAccessDenied “Server replied "403 Forbidden" to "PROPFIND https:cloud.domain.com/remote.php/dav/files/user/"” QVariant(int, 403)
01-18 18:10:30:675 [ info sync.networkjob.lscol ]: LSCOL of QUrl(“https:cloud.domain.com/remote.php/dav/files/user/”) FINISHED WITH STATUS “ContentAccessDenied Server replied "403 Forbidden" to "PROPFIND https:cloud.domain.com/remote.php/dav/files/user/"”
01-18 18:10:30:675 [ warning sync.discovery ]: LSCOL job error “Error transferring https:cloud.domain.com/remote.php/dav/files/user/ - server replied: Forbidden” 403 QNetworkReply::ContentAccessDenied
01-18 18:10:30:675 [ warning sync.csync.updater ]: Directory access Forbidden (File Firewall?)
01-18 18:10:30:675 [ warning sync.engine ]: ERROR during csync_update : “An error occurred while opening a folder : Error transferring https:cloud.domain.com/remote.php/dav/files/user/ - server replied: Forbidden”
01-18 18:10:30:676 [ info sync.database ]: Closing DB “/tmp/test._sync_ba29c7f389aa.db”
01-18 18:10:30:679 [ info sync.engine ]: CSync run took 1037 ms
01-18 18:10:30:679 [ info sync.database ]: Closing DB “/tmp/test/._sync_ba29c7f389aa.db”

Hey,

i would first check which version of owncloudcmd is in use (maybe this is outdated and not allowed to be used anymore against a recent ownCloud version?).

I’m also not sure if the missing // in https:cloud.domain.com only a copy and paste problem to this forum or if you are really using https:cloud.domain.com instead of the correct https//:cloud.domain.com?

It’s from the forum, it doesn’t allow posting on websites

owncloud 10.13.4.

tested with ubuntu 18 and 22

I couldn’t install with debian12. ownload’s php is older

Hey,

this looks to me like the version of the ownCloud server but i had recommended to check the version of the owncloudcmd software running on your desktop. :slightly_smiling_face:

Is it not a permission error?

Hey,

the reason why i’m suggesting to check the version of the client is New Default Minimum Supported Desktop Client Version which i think could be the reason for this.

Which version did you suggest?

root@ubuntu:/usr/local# owncloudcmd -v
ownCloud version 2.5.1
Git revision d1e6fd700210c3f6502507065d59248e47bf8362
Using Qt 5.12.8, built against Qt 5.12.5
Using ‘OpenSSL 1.1.1f 31 Mar 2020’

root@ubuntu:~# owncloudcmd /etc https://user:pass@cloud.domain.com

01-19 19:15:47:839 [ info sync.accessmanager ]: 2 “” “https://user:pass@cloud.domain.com/ocs/v1.php/cloud/capabilities?format=json” has X-Request-ID “28883e01-d9a4-4704-9c4d-8067a908a50f”
01-19 19:15:47:839 [ info sync.networkjob ]: OCC::JsonApiJob created for “https://cloud.domain.com” + “ocs/v1.php/cloud/capabilities” “”
01-19 19:15:47:940 [ info sync.networkjob.jsonapi ]: JsonApiJob of QUrl(“https://user@cloud.domain.com/ocs/v1.php/cloud/capabilities?format=json”) FINISHED WITH STATUS “OK”
01-19 19:15:47:940 [ debug default ] [ main(int, char**)::<lambda ]: Server capabilities QJsonObject({“checksums”:{“preferredUploadType”:“SHA1”,“supportedTypes”:[“SHA1”]},“core”:{“pollinterval”:30000,“status”:{“edition”:“Community”,“hostname”:“cloud.domain.com”,“installed”:true,“maintenance”:false,“needsDbUpgrade”:false,“product”:“ownCloud”,“productname”:“ownCloud”,“version”:“10.13.4.1”,“versionstring”:“10.13.4”},“support-url-signing”:true,“webdav-root”:“remote.php/webdav”},“dav”:{“chunking”:“1.0”,“propfind”:{“depth_infinity”:false},“reports”:[“search-files”],“trashbin”:“1.0”},“files”:{“app_providers”:[{“apps_url”:“/index.php/app/list”,“enabled”:true,“new_url”:“/index.php/app/new”,“open_web_url”:“/index.php/app/open-with-web”,“version”:“1.1.0”}],“bigfilechunking”:true,“blacklisted_files”:[“.htaccess”],“blacklisted_files_regex”:“\.(part|filepart)$”,“favorites”:true,“file_locking_enable_file_action”:false,“file_locking_support”:true,“privateLinks”:true,“privateLinksDetailsParam”:true,“undelete”:true,“versioning”:true},“files_sharing”:{“api_enabled”:true,“auto_accept_share”:true,“can_share”:true,“default_permissions”:31,“federation”:{“incoming”:true,“outgoing”:true},“group”:{“expire_date”:{“enabled”:false}},“group_sharing”:true,“providers_capabilities”:{“ocFederatedSharing”:{“remote”:[“shareExpiration”]},“ocinternal”:{“group”:[“shareExpiration”],“link”:[“shareExpiration”,“passwordProtected”],“user”:[“shareExpiration”]}},“public”:{“can_create_public_link”:true,“defaultPublicLinkShareName”:“Public link”,“enabled”:true,“expire_date”:{“enabled”:false},“multiple”:true,“password”:{“enforced”:false,“enforced_for”:{“read_only”:false,“read_write”:false,“read_write_delete”:false,“upload_only”:false}},“roles_api”:true,“send_mail”:false,“social_share”:true,“supports_upload_only”:true,“upload”:true},“remote”:{“expire_date”:{“enabled”:false}},“resharing”:true,“search_min_length”:2,“share_with_group_members_only”:true,“share_with_membership_groups_only”:true,“user”:{“expire_date”:{“enabled”:false},“profile_picture”:true,“send_mail”:false},“user_enumeration”:{“enabled”:true,“group_members_only”:false}},“notifications”:{“ocs-endpoints”:[“list”,“get”,“delete”]}})
01-19 19:15:47:941 [ info sync.accessmanager ]: 2 “” “https://user:pass@cloud.domain.com/ocs/v1.php/cloud/user?format=json” has X-Request-ID “dcc678fe-8ae9-42c0-a31c-91caaed4c7b6”
01-19 19:15:47:941 [ info sync.networkjob ]: OCC::JsonApiJob created for “https://cloud.domain.com” + “ocs/v1.php/cloud/user” “”
01-19 19:15:48:024 [ info sync.networkjob.jsonapi ]: JsonApiJob of QUrl(“https://user@cloud.domain.com/ocs/v1.php/cloud/user?format=json”) FINISHED WITH STATUS “OK”
01-19 19:15:48:025 [ fatal default ]: Cannot load system exclude list or list supplied via --exclude
Aborted (core dumped)
root@ubuntu:~# root@ubuntu:~# owncloudcmd /etc https://user:pass@cloud.domain.com

Hey,

have you tried to review the link i had provided in my previous posting which i think is already providing an answer to this question?

yes.

This new way I did changed the error.

01-19 19:31:14:511 [ fatal default ]: Cannot load system exclude list or list supplied via --exclude

Hey,

i think for this new issue i think a new thread would be recommended because i think the initial problem about the “Forbidden” message due to the usage of an outdated version of the client has been already solved.

I think if you create a new thread the same suggestions to give more context about your new problem like suggested here would make sense:

root@cmd:/tmp# owncloudcmd -h --trust -u cesar -p pass /etc https://cloud.domain.com

01-20 19:43:10:118 [ info sync.accessmanager ]: 6 “PROPFIND” “https://cloud.domain.com/remote.php/dav/files/cesar/” has X-Request-ID “28498b87-b2a9-4824-a065-a0493ac947cc”
01-20 19:43:10:118 [ info sync.networkjob ]: OCC::LsColJob created for “https://cloud.domain.com” + “” “OCC::DiscoverySingleDirectoryJob”
01-20 19:43:10:163 [ warning sync.networkjob ]: QNetworkReply::ContentAccessDenied “Server replied "403 Forbidden" to "PROPFIND https://cloud.domain.com/remote.php/dav/files/cesar/\”" QVariant(int, 403)
01-20 19:43:10:163 [ info sync.networkjob.lscol ]: LSCOL of QUrl(“https://cloud.domain.com/remote.php/dav/files/cesar/”) FINISHED WITH STATUS “ContentAccessDenied Server replied "403 Forbidden" to "PROPFIND https://cloud.domain.com/remote.php/dav/files/cesar/\”"
01-20 19:43:10:164 [ warning sync.discovery ]: LSCOL job error “Error transferring https://cloud.domain.com/remote.php/dav/files/cesar/ - server replied: Forbidden” 403 QNetworkReply::ContentAccessDenied
01-20 19:43:10:164 [ warning sync.csync.updater ]: Directory access Forbidden (File Firewall?)
01-20 19:43:10:164 [ warning sync.engine ]: ERROR during csync_update : “An error occurred while opening a folder : Error transferring https://cloud.domain.com/remote.php/dav/files/cesar/ - server replied: Forbidden”
01-20 19:43:10:165 [ info sync.database ]: Closing DB “/etc/._sync_20e10836eb9f.db”
01-20 19:43:10:165 [ info sync.engine ]: CSync run took 524 ms
01-20 19:43:10:165 [ info sync.database ]: Closing DB “/etc/._sync_20e10836eb9f.db”

help please :frowning: not work all versions

Hey,

i think this new problem should be kept in the new Owncloudcmd does not synchronize thread and i think that you need to have some patience to see if any community user is able to offer any help (i’m not able because i’m not using owncloudcmd at all and have no knowledge on the usage of it).

1 Like

Friend, I’ve done everything. and the worst thing is that nextcloud works.

May I assume you know what different shoes are? :wink:

Bonus hint: ContentAccessDenied

This is, sorry for the wording, totally weird, even as an unreal example.

  1. Syncing your local /etc directory might not be the strongest idea.
  2. The remote URL must be a complete and valid WebDAV-URL for the user.

Example: https://cloud.domain.com/remote.php/dav/files/cesar/etc

You can find the correct base path in the Settings section of the Files-app.

Please consult the manual pages.

1 Like