Hey guys, I’m facing a problem I have no idea how to solve and whats causing it. An old nextcloud server file sometimes is downloaded and the new local file is renamed to “conflicted copy”.
Server details:
Nextcloud version: 18
Operating system and version: Ubuntu 18.04 64bit
Apache or nginx version: Apache/2.4.29
PHP version: PHP 7.3
[Important to say, it was happening in nc server 17 too, I’ve done a brand new installation for nextlcoud 18 - and I’ve reinstalled the whole server which nextcloudcmd runs too]
Context nc client:
- Ubuntu - no GUI
- nextcloudcmd 2.6.3
- A script using RSYNC copy a bunch of files using a SMB share running another linux (-avizW - tried with -aviz only too)
- After rsync, the script runs nextcloudcmd to sync this folder to nextcloud server.
- Most times it works great, it upload the newest.
- Sometimes, instead of upload the new file, nextcloud download the older that was last synced and rename the local new file to conflicted copy.
While nccmd was download a file, I’ve checked the files in client and server using stat:
NC server version:
File: file.gdb
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.gdb
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
In this case, nextcloudcmd was downloading the server version(05/03/20) and after, renamed the local(06/03/20) as “conflicted”.
It’s important to say I didn’t touch the remote files anytime.
Any ideas? I’m out of options. Thanks is advance.