Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Files in subdirectories not syncing #49

@ghost

Description

I'm experiencing issues with files in subdirectories failing to sync. I can create a directory, and this correctly appears on the drive (I can see it appearing on my Windows VM). However, any file I create within it won't sync:

[2019-07-30 12:35:27,395] INFO: MainThread: Local path "/home/rodom/OneDrive/test/test.txt" was updated on Event(wd=12, mask=8, cookie=0, name='test.txt'). Merge the parent directory.
[2019-07-30 12:35:27,597] ERROR: MainThread: Exception in callback LocalRepositoryWatcher.process_events()
handle: <Handle LocalRepositoryWatcher.process_events()>
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/dist-packages/onedrive_client/od_watcher.py", line 451, in process_events
    self.handle_event(ev, flags, move_pairs)
  File "/usr/local/lib/python3.6/dist-packages/onedrive_client/od_watcher.py", line 349, in handle_event
    repo, parent_dir = self.watch_descriptors[ev.wd]
  File "/usr/local/lib/python3.6/dist-packages/bidict-0.13.1-py3.6.egg/bidict/_common.py", line 96, in proxy
    return meth(*args)
KeyError: 12
[2019-07-30 12:35:27,770] ERROR: Worker-3: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test..
[2019-07-30 12:35:27,770] ERROR: Worker-3: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test.. Skip directory "test".

If I stop and start onedrive-client it does successfully sync test.txt.

If I then create a subdirectory of this one, it still won't sync:

[2019-07-30 12:51:54,295] ERROR: MainThread: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test..
[2019-07-30 12:51:54,296] CRITICAL: MainThread: Failed to create remote directory for "/home/rodom/OneDrive/test/test2". Fallback to merge.
[2019-07-30 12:51:54,498] ERROR: MainThread: Exception in callback LocalRepositoryWatcher.process_events()
handle: <Handle LocalRepositoryWatcher.process_events()>
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/usr/local/lib/python3.6/dist-packages/onedrive_client/od_watcher.py", line 451, in process_events
    self.handle_event(ev, flags, move_pairs)
  File "/usr/local/lib/python3.6/dist-packages/onedrive_client/od_watcher.py", line 349, in handle_event
    repo, parent_dir = self.watch_descriptors[ev.wd]
  File "/usr/local/lib/python3.6/dist-packages/bidict-0.13.1-py3.6.egg/bidict/_common.py", line 96, in proxy
    return meth(*args)
KeyError: 3
[2019-07-30 12:51:54,707] ERROR: Worker-2: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test..
[2019-07-30 12:51:54,708] ERROR: Worker-2: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test.. Skip directory "/test".

However in this case it won't create it even after restart:

[2019-07-30 12:52:08,454] ERROR: Worker-14: Encountered API Error: -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test..
[2019-07-30 12:52:08,455] ERROR: Worker-14: Error when creating remote dir of "/home/rodom/OneDrive/test/test2": -1, Microsoft.SharePoint.Client.ResourceNotFoundException - Cannot find resource for the request test..

I am experiencing this for other nested directory structures too, although I have one that has partially replicated (but not to its full depth) - I can't see how it differs from my tests.

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions