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

Account gets suspended #69

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hello, first, thank you for this program. It is easy to use and your tutorial is also very well done and I could setup it for the first time very easily. My problem is that after I add an account and sync data to it (~3.5GB), everything seems fine, but when I return on the next day (tmux attach) and try to login into the account, I get a message saying that the account has been suspended. This happened twice already. To sync I use the mentioned command # NGROK=/root/ngrok onedrived start --debug. At first it synches the data, then it shows some infos every 20-30 minutes INFO: MainThread: [...], but doesn't upload any data it seems. So I wonder why the account(s) get suspended. Maybe because NGROK queries so often the account, that Microsoft thinks that it's not a normal behavior and suspends the account?

Is there maybe a way for onedrived-dev to stop synching once it finished a synchronisation?

ghost commented 6 years ago

Looks like onedrived-dev has to exit ngrok. How can I do that? killall ngrok doesn't kill ngrok completely and it still shows as:

# ps ax  | grep ngrok
  356 pts/1    Z+     0:00 [ngrok] <defunct>
ghost commented 6 years ago

Nevermind, I solved it by the following workaround:

# cat end_NGROK.sh
pkill ngrok
ps -ef | grep defunct | grep -v grep | cut -b8-20 | xargs kill -9