xybu / onedrived-dev

A Microsoft OneDrive client for Linux, written in Python3.
https://github.com/xybu/onedrived-dev
MIT License
706 stars 78 forks source link

onedrived starts but does not sync (does not seem to be an ngrok error) #60

Open leolivier opened 7 years ago

leolivier commented 7 years ago

Hi When I start onedrive using onedrived start --debug > ond.log It seems to start correctly but then there are some different errors and it stops syncing. One directory (among a lot) has been synced at the first launch (~300MB) then nothing and I have ~35GB in my onedrive. I get this error at start but it continues after this one so I'm not sure it's the problem:

  File "/usr/lib/python3.4/socketserver.py", line 305, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python3.4/socketserver.py", line 331, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python3.4/socketserver.py", line 344, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python3.4/socketserver.py", line 669, in __init__
    self.handle()
[2017-07-23 09:55:54,705] DEBUG: Worker-1: Starting new HTTPS connection (1): api.onedrive.com
  File "/usr/lib/python3.4/http/server.py", line 398, in handle
    self.handle_one_request()
  File "/usr/lib/python3.4/http/server.py", line 386, in handle_one_request
    method()
  File "/mnt/ssd/home/pi/.local/lib/python3.4/site-packages/onedrived/od_webhook.py", line 129, in do_POST
    return self.echo(query[self.VALIDATION_REQUEST_QUERY][0])
  File "/mnt/ssd/home/pi/.local/lib/python3.4/site-packages/onedrived/od_webhook.py", line 112, in echo
    self.send_response(http.server.HTTPStatus.OK)
AttributeError: 'module' object has no attribute 'HTTPStatus'

Later, I get this:

[2017-07-23 09:55:54,909] DEBUG: MainThread: https://api.onedrive.com:443 "POST /v1.0/drives/31100c4dd70e082d/root:/:/subscri

ptions HTTP/1.1" 400 95                                                                                                     
 54 [2017-07-23 09:55:54,915] ERROR: MainThread: Error: invalidRequest - Error validating notificationUrl. ProtocolError
 55 [2017-07-23 09:55:54,932] WARNING: MainThread: Failed to create webhook. Will deep sync again in 21600 sec.

After this, it adds watchers for each and every directories but removes then after a while without doing anything (as if nothing had changed)

Please see log attached for all details: ond.txt . Edit: running on raspbian jessie...

leolivier commented 7 years ago

No advice or clue on this?

vanyasem commented 6 years ago

Here is a dirty workaround: delete items_*.sqlite3 from your onedrived config folder (usually found in ~/.config/onedrived/. That will clear the database of local files, and will enforce it's recreation on next launch. It seems that some "shadow" entries are left in it

leolivier commented 6 years ago

Thanks @vanyasem but it comes too late for me. I gace up with onedrived and I'm now using rclone which is very very powerful...

vanyasem commented 6 years ago

Please, reopen the issue. I only posted a dirty workaround that can't be considered a permanent fix.

leolivier commented 6 years ago

Reopened as requested by@vanyasem but was opened 5months ago with absolutely no answer, so... Let's see