Skip to content

Sync fails after renaming a local folder with owncloudcmd #12400

Open

Description

@mangelft

Pre-submission Checks

  • I checked for similar issues, but could not find any. I also checked the closed issues. I could not contribute additional information to any existing issue.
  • I will take the time to fill in all the required fields. I know that the bug report may be dismissed otherwise due to lack of information.

Describe the bug

When attempting to move or rename a local directory that has been previously synchronized to a Space using the owncloudcmd command, the synchronization process fails to properly update the remote Space.

Expected behavior

owncloudcmd should detect that the local directory has been renamed or moved and update the corresponding folder in the Space accordingly. The synchronization should complete successfully without creating duplicates or leaving orphaned entries on the server.

Steps to reproduce the issue

  1. Synchronize a local directory to a folder in a Space using the command:
    owncloudcmd --non-interactive -u USER -p TOKEN --server https://ocis.owncloud.com /PATH/LOCAL 'https://WebDav_URL_SPACE' REMOTE_FOLDER_IN_SPACE
  2. Rename a local directory
  3. Retry the synchronization

Screenshots

No response

Logs

Could not complete propagation of "renamed_folder" by OCC::PropagateIgnoreJob(0x13b94940) with status OCC::SyncFileItem::BlacklistedError and error: "Server replied "409 Conflict" to "MOVE (skipped due to earlier error, trying again in 2 minute(s))"
...
[ warning default ]: Failed to sync

Client version number

ownCloud 6.0.0.17092

Desktop environment (Linux only)

Ubuntu 22.04.5 LTS.

Client package version and origin (Linux only)

No response

Installation path (Windows only)

No response

Server information

Infinite Scale 7.2.0 Community
ownCloud Web UI 12.0.2

Additional context

No response

Activity

  1. DeepDiver1975 commented on Nov 14, 2025

    @DeepDiver1975
    Contributor

    Please double check the server logs why the MOVE failed.

  2. mangelft commented on Nov 14, 2025

    @mangelft
    Author

    It's a Kubernetes deployment using the ocis-charts repository. I've reviewed the main microservices (proxy, storageusers) but haven't found anything relevant. Which microservice should I review?

  3. DeepDiver1975 commented on Nov 14, 2025

    @DeepDiver1975
    Contributor

    @kobergj can you help out? Thx

  4. kobergj commented on Nov 14, 2025

    @kobergj

    @mangelft please check ocdav service. It contains the http handlers for file operations. It should log an error.

    Note: 409 Conflict is usually thrown when trying to move a folder to one of it's children (or parents) or when the destination folder does not exist.

  5. mangelft commented on Nov 14, 2025

    @mangelft
    Author

    Thanks for the help @kobergj I also didn’t find anything relevant in the ocdav service. Do you have the option to reproduce the issue in your own environment? The issue occurs when files are renamed or moved, and if you attempt a second synchronization, those files are added to the blacklist. I have tested this behavior with the owncloud client and in that case it worked as expected, it only seems to happen with owncloudcmd.

  6. erikjv commented on Nov 20, 2025

    @erikjv
    Contributor

    Which client OS is this? Also, are there any non-ascii characters (e.g. with diacritic symbols) in the names?

  7. mangelft commented on Nov 20, 2025

    @mangelft
    Author

    Ubuntu 22.04.5 LTS. I have only renamed a folder from folder3 to folder4

    25-11-20 14:27:06:943 [ info sync.networkjob ]: Created OCC::MoveJob(OCC::Account("MyAccount"), "https://ocis.owncloud.com/remote.php/dav/spaces/02ac43bc-5428-486c-a238-0476dc1ccb57$3fe3f57a-16ca-4553-96d2-23c7de44f890/issue-57/folder3", "MOVE", Original-Request-ID: "0d791b51-5d7b-4d6a-a191-3fbe5c025136", X-Request-ID: "0d791b51-5d7b-4d6a-a191-3fbe5c025136") for OCC::PropagateRemoteMove(0x179aae80)
    25-11-20 14:27:07:245 [ info sync.networkjob.move ]:  MOVE of QUrl("https://ocis.owncloud.com/remote.php/dav/spaces/02ac43bc-5428-486c-a238-0476dc1ccb57$3fe3f57a-16ca-4553-96d2-23c7de44f890/issue-57/folder3") FINISHED WITH STATUS "ContentConflictError, Server replied \"409 Conflict\" to \"MOVE https://ocis.owncloud.com/remote.php/dav/spaces/02ac43bc-5428-486c-a238-0476dc1ccb57$3fe3f57a-16ca-4553-96d2-23c7de44f890/issue-57/folder3\""
    25-11-20 14:27:07:245 [ info sync.database ]: Setting blacklist entry for "folder3" 1 "Server replied \"409 Conflict\" to \"MOVE https://ocis.owncloud.com/remote.php/dav/spaces/02ac43bc-5428-486c-a238-0476dc1ccb57$3fe3f57a-16ca-4553-96d2-23c7de44f890/issue-57/folder3\"" 1763645227 25 1763105808 "" "folder4" OCC::SyncJournalErrorBlacklistRecord::Category::Normal
    25-11-20 14:27:07:246 [ info sync.propagator ]: blacklisting  "folder3"  for  25 , retry count  1
    
  8. mangelft commented on Dec 18, 2025

    @mangelft
    Author

    Any news? Could it be related to this? owncloud/ocis#11854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions