Rclone sync dropbox error - conflict file

What is the problem you are having with rclone?

If you try to sync directores in a same dropbox conection you receive a error os Conflict File in some files, not all. On manual copy no error has been reported

Run the command 'rclone version' and share the full output of the command.

rclone v1.53.1

  • os/arch: linux/386
  • go version: go1.15

and

rclone v1.60.0-beta.6364.03d0f331f

  • os/version: ubuntu 14.04
  • os/kernel: 4.4.0-148-generic (i686)
  • os/type: linux
  • os/arch: 386
  • go/version: go1.18.4
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Dropbox

The command you were trying to run (eg rclone copy /tmp remote:tmp)


rclone -vv sync --create-empty-src-dirs Dropbox:/Backups/Client/Main/Rede/Inventario Dropbox:/Backups/Client/Segunda-Feira/Rede/Inventario --log-file=/tmp/Teste.log

The rclone config contents with secrets removed.


[Dropbox]
type = dropbox
client_id = *************
client_secret = **********
token = ***************

A log from the command with the -vv flag


https://gist.github.com/brunopavan/4caaf8f49990fb29084d46a53fbd0135


Dropbox is case insensitive so it seems you have a file called the same thing in a different case I'd imagine.

So it usually means you have a file called test and a directory called test or something vice versa.

Example would be:

felix@gemini:~$ rclone ls DB:test1
      316 hosts
felix@gemini:~$ rclone ls DB:test2
felix@gemini:~$ rclone mkdir DB:test2/hosts
felix@gemini:~$ rclone copy DB:test1 DB:test2 -vvv
2022/07/18 16:55:42 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/07/18 16:55:42 DEBUG : rclone: Version "v1.59.0" starting with parameters ["rclone" "copy" "DB:test1" "DB:test2" "-vvv"]
2022/07/18 16:55:42 DEBUG : Creating backend with remote "DB:test1"
2022/07/18 16:55:42 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/07/18 16:55:43 DEBUG : Creating backend with remote "DB:test2"
2022/07/18 16:55:43 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 16:55:43 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 16:55:43 ERROR : hosts: Failed to copy: copy failed: to/conflict/folder/.
2022/07/18 16:55:43 ERROR : Attempt 1/3 failed with 1 errors and: copy failed: to/conflict/folder/.
2022/07/18 16:55:43 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 16:55:43 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 16:55:44 ERROR : hosts: Failed to copy: copy failed: to/conflict/folder/..
2022/07/18 16:55:44 ERROR : Attempt 2/3 failed with 1 errors and: copy failed: to/conflict/folder/..
2022/07/18 16:55:44 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 16:55:44 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 16:55:44 ERROR : hosts: Failed to copy: copy failed: to/conflict/folder/
2022/07/18 16:55:44 ERROR : Attempt 3/3 failed with 1 errors and: copy failed: to/conflict/folder/
2022/07/18 16:55:44 INFO  :
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.9s

2022/07/18 16:55:44 DEBUG : 8 go routines active
2022/07/18 16:55:44 INFO  : Dropbox root 'test1': Commiting uploads - please wait...
2022/07/18 16:55:44 INFO  : Dropbox root 'test2': Commiting uploads - please wait...
2022/07/18 16:55:44 Failed to copy: copy failed: to/conflict/folder/

This is not the case, copying the files through the dropbox website, the copy is completed successfully.

As a test, I created a second dropbox account associated with the same company, so I can access these folders from both accounts, using the copy in this mode works, but instead of a copy through the Drop server, it ended up downloading the file and resending it through the second connection .

Command used

rclone -vv sync --create-empty-src-dirs Dropbox:/Backups/Client/Main/Rede/Inventario Dropbox_2:/Backups/Client/Segunda-Feira/Rede/Inventario --log-file=/tmp/Teste.log

The UI will rename the bad file or folder with (1):

image

The log file has the details. Check for a folder / filer with the names listed in your log:

2022/07/18 16:22:19 ERROR : ClienteDEV-0001 - administrador.HTML: Failed to copy: copy failed: to/conflict/file/...
2022/07/18 16:22:19 ERROR : ClienteDEV-002 - t.melo.HTML: Failed to copy: copy failed: to/conflict/file/..
2022/07/18 16:22:20 ERROR : EDSONNN-PC - a.matos.HTML: Failed to copy: copy failed: to/conflict/file/
2022/07/18 16:22:20 ERROR : COMERCIAL009 - F0025.HTML: Failed to copy: copy failed: to/conflict/file/...

I get this when I try with a file/folder conflict:

felix@gemini:~$ rclone ls DB:test1
      316 hosts/testfile
felix@gemini:~$ rclone ls DB:test2
      316 hosts
felix@gemini:~$ rclone copy DB:test1 DB:test2 -vvv
2022/07/18 21:03:08 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/07/18 21:03:08 DEBUG : rclone: Version "v1.59.0" starting with parameters ["rclone" "copy" "DB:test1" "DB:test2" "-vvv"]
2022/07/18 21:03:08 DEBUG : Creating backend with remote "DB:test1"
2022/07/18 21:03:08 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/07/18 21:03:08 DEBUG : Creating backend with remote "DB:test2"
2022/07/18 21:03:09 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 21:03:09 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 21:03:09 ERROR : hosts/testfile: Failed to copy: copy failed: to/conflict/file_ancestor/.
2022/07/18 21:03:09 ERROR : Attempt 1/3 failed with 1 errors and: copy failed: to/conflict/file_ancestor/.
2022/07/18 21:03:09 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 21:03:09 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 21:03:10 ERROR : hosts/testfile: Failed to copy: copy failed: to/conflict/file_ancestor/...
2022/07/18 21:03:10 ERROR : Attempt 2/3 failed with 1 errors and: copy failed: to/conflict/file_ancestor/...
2022/07/18 21:03:10 DEBUG : Dropbox root 'test2': Waiting for checks to finish
2022/07/18 21:03:10 DEBUG : Dropbox root 'test2': Waiting for transfers to finish
2022/07/18 21:03:10 ERROR : hosts/testfile: Failed to copy: copy failed: to/conflict/file_ancestor/..
2022/07/18 21:03:10 ERROR : Attempt 3/3 failed with 1 errors and: copy failed: to/conflict/file_ancestor/..
2022/07/18 21:03:10 INFO  :
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         2.5s

2022/07/18 21:03:10 DEBUG : 8 go routines active
2022/07/18 21:03:10 INFO  : Dropbox root 'test1': Commiting uploads - please wait...
2022/07/18 21:03:10 INFO  : Dropbox root 'test2': Commiting uploads - please wait...
2022/07/18 21:03:10 Failed to copy: copy failed: to/conflict/file_ancestor/..

The goal would be to see what those errors are in the source and list them out in the destination to see what the conflict is. Don't try the whole sync. Focus on one error and let's find the cause.

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