derrix060 / onedriveClient

A Microsoft OneDrive and OneDrive for Business client for Linux, written in Python3.
MIT License
65 stars 10 forks source link

Various synchronization errors #15

Closed ByteCommander closed 5 years ago

ByteCommander commented 6 years ago

I just installed the current version of this repository on my Ubuntu 16.04 machine using the recommended pip3 method. I successfully configured my account and drive to sync with the local OneDrive folder in my home directory.

However, I am facing various problems:

I wrote a wrapper script to at least get notified whenever it logs an error, but it's still really upsetting that every time I do something in my OneDrive folder, I should actually check if the change got correctly synchronized online, and if not, try to move the failed files around until they get synchronized correctly.

Could you please try and have a look into these issues? If I can provide any debugging help, please let me know what information you need.

derrix060 commented 6 years ago

These 'Encountered API Error' is from onedrivesdk:

def item_request_call(repo, request_func, *args, **kwargs):
    while True:
        try:
            return request_func(*args, **kwargs)
        except onedrivesdk.error.OneDriveError as e:
            logging.error('Encountered API Error: %s.', e)

according with their documentarion:

Certain characters have special meanings when used in file names in OneDrive, SharePoint, Windows and macOS, such as "" for wildcards, and "\" in file name paths. If a file or folder you’re trying to upload to OneDrive contains any of the characters listed below, it may prevent files and folders from syncing. Rename the file or folder to remove these characters before you upload it. ... Characters that aren't allowed in file and folder names in OneDrive for Business on SharePoint Server 2013 ~ " # % & : < > ? / \ { | }.

derrix060 commented 6 years ago

Can you update me if this is still an issue and the correct filename?

ByteCommander commented 6 years ago

It is a repeating issue, but not popping up as often recently since I didn't add many files. However, except for username (originally 8 lowercase latin letters, nothing special), the error message regarding the invalid character was unaltered. I literally created a file named testfile in the root of my OneDrive synced folder and got this.

derrix060 commented 6 years ago

That's very difficult to help. As you can see in the implementation that I put above, this is a onedrivesdk error. I think is a good idea to open an issue on their side...

derrix060 commented 6 years ago

What version of onedrivesdk are you using (you can get running pip3 freeze | grep onedrivesdk)? This is a very difficult issue to reproduce. I have some files with not supported names that was sync, and I have 4gb of data...