r/NextCloud•
_bnoo

Nextcloud downloading older files from server and renaming new local file as "conflicted copy"

Sometimes, when I change the file, not always, but eventually, nextcloud download the server version and the local(updated) one is renamed as a conflict. I do not touch the remote file anytime.

I'm using nextcloudcmd in linux

As it download right now, I've checked the files with stat:

NC server version:

File: file.file

Size: 514306048 Blocks: 1004512 IO Block: 4096 regular file

Device: 821h/2081d Inode: 28704779 Links: 1

Access: (0644/-rw-r--r--) Uid: ( 33/www-data) Gid: ( 33/www-data)

Access: 2020-03-05 23:14:52.404870625 -0300

Modify: 2020-03-05 15:07:38.000000000 -0300

Change: 2020-03-05 17:17:59.406827248 -0300

Local file version:

File: file.file

Size: 514306048 Blocks: 1004504 IO Block: 4096 regular file

Device: 802h/2050d Inode: 42217755 Links: 1

Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/root)

Access: 2020-03-06 11:18:58.612782211 -0300

Modify: 2020-03-06 10:31:07.655084200 -0300

Change: 2020-03-06 11:05:54.295050781 -0300

The new local file is copied using RSYNC (-avizW). When nextcloudcmd runs, it downloads the NC server version and rename the local(new) version.

Any ideas?

Posted Mar 6, 2020, 2:54 PM UTC · edited

23
Orm1server•

I'm pretty sure I'm having the same problem. Since updating to nc18, (18.0.3) I'm constantly fighting conflicted copies of files both on Android client and 2.6.4 windows clients. It is not a every file type thing. Files have not been edited in NC web gui,. I have tried various online solutions but with no luck. Hoping that future update will solve

1
_bnooOP•

I gave up. But since my clients are linux, I’ve made a script to detect the download, stop nextcloud client sync process, send an instruction to delete the remote file at system level, rescan remote folder to register that file no longer exists in remote folder, then start the client sync again. This way it will detect that file is no longer in remote folder, then upload.

Seems a very specific error. It was happening in 17 and still happening in 18. I have no idea how to fix and only happens with database files.

1
Orm1server•

I'm having issues with txt files on Android NC client, and PST files on windows that I am aware of so far

1