onedrived-dev icon indicating copy to clipboard operation
onedrived-dev copied to clipboard

NameAlreadyExists error and sync conflicts

Open tigerjack opened this issue 7 years ago • 0 comments

I've just installed and configured onedrived on my Linux distro.

I already had a lot of files on the One Drive server previously synchronized using Microsoft One Drive from a Windows machine. Basically, in the local sync directory (the localrooth_path of your tool), I just had symlinks pointing to the relevant hard disks directories.

Now, using Linux, all the symlinks are already pointing to the correct directories. So, when I started the daemon, I assumed that everything would have gone fine. However, when I started the daemon using onedrived start, the log started to produce a lot of errors saying

Encountered API Error: nameAlreadyExists - The specified item name already exists.

It's not so bad; it just means that it was trying to upload the file, but obviously a file with the same name already existed.

The bad news, however, is for local files: some of them get renamed to something like <original filename> (<machine_name>); for other ones the file <original filename> (<machine_name>) was added as a duplicate of the <original filename> file; basically, I ended up having a lot of files whose name were a.txt and a (myarch).txt. Obviously this is not feasible: it was basically trying to duplicate the whole content of the server on the local machine, side by side with the original files.

For some of these pair of files I also made a further check, and all of the properties (filename, content, ctime, mtime, md5sum) whose identical.

So why those files are considered as a different version of the original file? Is there any way to fix the problem?

tigerjack avatar May 09 '18 10:05 tigerjack