Owncloudcmd Forbidden

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

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

So what? You have changed the sync source to /backup. Great!

01-21 17:40:09:657 [ info sync.csync.updater ]: Checking for rename based on inode # 1434
01-21 17:40:09:657 [ info sync.csync.updater ]: file: iproute2/rt_protos, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:657 [ info sync.csync.updater ]: Checking for rename based on inode # 1429
01-21 17:40:09:657 [ info sync.csync.updater ]: file: iproute2/bpf_pinning, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:657 [ info sync.csync.updater ]: Checking for rename based on inode # 1430
01-21 17:40:09:657 [ info sync.csync.updater ]: file: iproute2/ematch_map, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:657 [ info sync.csync.updater ]: Checking for rename based on inode # 317
01-21 17:40:09:657 [ info sync.csync.updater ]: file: iproute2/rt_protos.d, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1438
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_protos.d/README, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]:  <= Closing walk for /backup/iproute2/rt_protos.d with read_from_db 0
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1435
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_realms, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1437
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_tables, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1431
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/group, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1433
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_dsfield, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 1436
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_scopes, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:658 [ info sync.csync.updater ]: Checking for rename based on inode # 318
01-21 17:40:09:658 [ info sync.csync.updater ]: file: iproute2/rt_tables.d, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:659 [ info sync.csync.updater ]: Checking for rename based on inode # 1439
01-21 17:40:09:659 [ info sync.csync.updater ]: file: iproute2/rt_tables.d/README, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:659 [ info sync.csync.updater ]:  <= Closing walk for /backup/iproute2/rt_tables.d with read_from_db 0
01-21 17:40:09:659 [ info sync.csync.updater ]: Checking for rename based on inode # 1432
01-21 17:40:09:659 [ info sync.csync.updater ]: file: iproute2/nl_protos, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:659 [ info sync.csync.updater ]:  <= Closing walk for /backup/iproute2 with read_from_db 0
01-21 17:40:09:659 [ info sync.csync.updater ]: Checking for rename based on inode # 2109548
01-21 17:40:09:659 [ info sync.csync.updater ]: file: avahi, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:659 [ info sync.csync.updater ]: Checking for rename based on inode # 2109549
01-21 17:40:09:659 [ info sync.csync.updater ]: file: avahi/avahi-daemon.conf, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:659 [ info sync.csync.updater ]: Checking for rename based on inode # 2109551
01-21 17:40:09:659 [ info sync.csync.updater ]: file: avahi/services, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:660 [ info sync.csync.updater ]:  <= Closing walk for /backup/avahi/services with read_from_db 0
01-21 17:40:09:660 [ info sync.csync.updater ]: Checking for rename based on inode # 2109550
01-21 17:40:09:660 [ info sync.csync.updater ]: file: avahi/hosts, instruction: INSTRUCTION_NEW <<=
01-21 17:40:09:660 [ info sync.csync.updater ]:  <= Closing walk for /backup/avahi with read_from_db 0
01-21 17:40:09:660 [ info sync.csync.updater ]:  <= Closing walk for /backup with read_from_db 0
01-21 17:40:09:660 [ info sync.csync.csync ]:   Update detection for local replica took 1.214 seconds walking 2155 files
01-21 17:40:09:660 [ info sync.csync.utils ]:   Memory: 449796K total size, 26120K resident, 22988K shared
01-21 17:40:09:660 [ info sync.csync.csync ]:   ## Starting remote discovery ##
01-21 17:40:09:661 [ info sync.accessmanager ]: 6 "PROPFIND" "https://cesar:password@cloud.domain.com/remote.php/dav/files/cesar/" has X-Request-ID "f11517f6-a5d8-4cdc-8d85-189e9f497f17"
01-21 17:40:09:661 [ info sync.networkjob ]:    OCC::LsColJob created for "https://cloud.domain.com" + "" "OCC::DiscoverySingleDirectoryJob"
01-21 17:40:09:706 [ warning sync.networkjob ]: QNetworkReply::ContentAccessDenied "Server replied \"403 Forbidden\" to \"PROPFIND https://cesar@cloud.domain.com/remote.php/dav/files/cesar/\"" QVariant(int, 403)
01-21 17:40:09:706 [ info sync.networkjob.lscol ]:      LSCOL of QUrl("https://cesar@cloud.domain.com/remote.php/dav/files/cesar/") FINISHED WITH STATUS "ContentAccessDenied Server replied \"403 Forbidden\" to \"PROPFIND https://cesar@cloud.domain.com/remote.php/dav/files/cesar/\""
01-21 17:40:09:707 [ warning sync.discovery ]:  LSCOL job error "Error transferring https://cesar:password@cloud.domain.com/remote.php/dav/files/cesar/ - server replied: Forbidden" 403 QNetworkReply::ContentAccessDenied
01-21 17:40:09:707 [ warning sync.csync.updater ]:      Directory access Forbidden (File Firewall?)
01-21 17:40:09:707 [ warning sync.engine ]:     ERROR during  csync_update :  "An error occurred while opening a folder : Error transferring https://cesar:password@cloud.domain.com/remote.php/dav/files/cesar/ - server replied: Forbidden"
01-21 17:40:09:708 [ info sync.database ]:      Closing DB "/backup/._sync_20e10836eb9f.db"
01-21 17:40:09:708 [ info sync.engine ]:        CSync run took  1263 ms

I’d verify ownership and access rights of the server directories. They all must be owned by www-data or appropriate.

1 Like

everything is www-data

But you still get 403. And I still have my concerns regarding the coud.domain.com address… :roll_eyes:

the address is correct. I just changed it to post on the forum

After having checked all the threads, you spread over this forum, I have to ask you: Is your cloud working at all, e.g. the access via browser?

everything working! Users created 100% worked.

yes via browser & client !

new errors:

root@owncloudcmd:/home# owncloudcmd /home https://cesar:123pass@cloud.domain.com
01-25 19:17:31:407 [ info sync.accessmanager ]: 2 "" "https://cesar:123pass@cloud.domain.com/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "b05055c5-f278-4049-a1f2-83d973cb30df"
01-25 19:17:31:408 [ info sync.networkjob ]:    OCC::JsonApiJob created for "https://cloud.domain.com" + "ocs/v1.php/cloud/capabilities" ""
01-25 19:17:31:507 [ info sync.networkjob.jsonapi ]:    JsonApiJob of QUrl("https://cesar@cloud.domain.com/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS "OK"
01-25 19:17:31:507 [ 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-25 19:17:31:507 [ info sync.accessmanager ]: 2 "" "https://cesar:123pass@cloud.domain.com/ocs/v1.php/cloud/user?format=json" has X-Request-ID "157b3b5f-cb99-44e2-a54b-4fcec53b67ee"
01-25 19:17:31:508 [ info sync.networkjob ]:    OCC::JsonApiJob created for "https://cloud.domain.com" + "ocs/v1.php/cloud/user" ""
01-25 19:17:31:588 [ info sync.networkjob.jsonapi ]:    JsonApiJob of QUrl("https://cesar@cloud.domain.com/ocs/v1.php/cloud/user?format=json") FINISHED WITH STATUS "OK"
01-25 19:17:31:592 [ fatal default ]:   Cannot load system exclude list or list supplied via --exclude

Once again, your command line is NOT complete. It’s OK and recommended that you only omit any secrets from your posts. If you shorten otherwise, it’s impossible to pin the problem.

Please try this:

owncloudcmd /home https://cesar:123pass@cloud.domain.com/remote.php/dav/files/cesar/ /home