yadayada / acd_cli

An unmaintained command line interface and FUSE filesystem for Amazon (Cloud) Drive
Other
1.35k stars 167 forks source link

[ERROR] [acd_cli] - Root node not found. Sync may have been incomplete. #567

Closed jxer closed 7 years ago

jxer commented 7 years ago

after moving to the new auth and updating acd cli i now get this error on every initial sync

my scripting used to remove everything in .cache prior to a sync minus the auth file. this worked fine for months. if i rerun the sync command without deleting anything it then syncs very quickly with no error.

anyone?

jxer commented 7 years ago

now getting this without deleting just syncing.

Getting changesTraceback (most recent call last): File "/usr/local/bin/acdcli", line 9, in load_entry_point('acdcli==0.3.2', 'console_scripts', 'acdcli')() File "/usr/local/bin/acd_cli.py", line 1680, in main ret = args.func(args) File "/usr/local/bin/acd_cli.py", line 774, in sync_action ret = sync_node_list(args.full, args.to_file, args.from_file) File "/usr/local/bin/acd_cli.py", line 149, in sync_node_list file=to_file if to_file else None) File "/usr/local/lib/python3.4/dist-packages/acdcli/api/metadata.py", line 51, in get_changes raise RequestError(r.status_code, r.text) acdcli.api.common.RequestError: RequestError: 401, [acd_api] no body received.

tintop2k commented 7 years ago

Why would you delete your database before every sync?

The oauth_data file has been renamed to oauth.json. Are you taking that into account when deleting?

On Fri, 26 May 2017, 16:00 jxer, notifications@github.com wrote:

now getting this without deleting just syncing.

Getting changesTraceback (most recent call last): File "/usr/local/bin/acdcli", line 9, in load_entry_point('acdcli==0.3.2', 'console_scripts', 'acdcli')() File "/usr/local/bin/acd_cli.py", line 1680, in main ret = args.func(args) File "/usr/local/bin/acd_cli.py", line 774, in sync_action ret = sync_node_list(args.full, args.to_file, args.from_file) File "/usr/local/bin/acd_cli.py", line 149, in sync_node_list file=to_file if to_file else None) File "/usr/local/lib/python3.4/dist-packages/acdcli/api/metadata.py", line 51, in get_changes raise RequestError(r.status_code, r.text) acdcli.api.common.RequestError: RequestError: 401, [acd_api] no body received.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/yadayada/acd_cli/issues/567#issuecomment-304305683, or mute the thread https://github.com/notifications/unsubscribe-auth/AQTBhOCVFhZmjQLVdstr4F5Osf5YeKZzks5r9ukKgaJpZM4Nnss2 .

jxer commented 7 years ago

and now after deleting the db files.

17-05-26 11:18:58.969 [CRITICAL] [acdcli.api.client] - Error getting endpoint data. Response: {"message":"Token has expired"}

jxer commented 7 years ago

@tintop2k it use to be a cleaner way back when acd cli wouldn't always see all the files rclone uploaded

Tangoes commented 7 years ago

@jxer start with this:

Please run acd_cli delete-everything first to delete your authentication and node data in the cache path. Then, use pip to uninstall

pip3 uninstall acdcli

and then, reinstall again from master branch using

pip3 install --upgrade git+https://github.com/yadayada/acd_cli.git

and then run the authorization:

acd_cli init

To ensure that everything is OK, if you type

acd_cli version

you should get:

acd_cli 0.3.2, api 0.9.3

Then, sync.

acdcli sync

After No root node found error, sync again:

acdcli sync

And wait 5 minutes if asked.

Every time you delete database, the no root node error will raise up.

jxer commented 7 years ago

@Tangoes "Then, sync.

acdcli sync

After No root node found error, sync again:

acdcli sync

And wait 5 minutes if asked.

Every time you delete database, the no root node error will raise up."

is this new behavior? it never use to do this

and it cleared up all the other errors on its own

jxer commented 7 years ago

is it no longer recommend to delete the db anymore before sync? this use to be standard practice

Tangoes commented 7 years ago

@jxer I´ve never deleted the DB before sync. I had this "missing root node" months ago, and now, every time I need to delete db. If you don´t, no errors are shown.

jxer commented 7 years ago

@Tangoes why are you needing to delete the db?

Tangoes commented 7 years ago

@jxer Well, I told it a bad way. I never need to delete de DB. I just wanted to say:

I had this "missing root node" months ago, and now, every time I delete the db. If you don´t, no errors are shown.

yadayada commented 7 years ago

is it no longer recommend to delete the db anymore before sync? this use to be standard practice

Please don't delete your node cache when the sync is incomplete, that just puts you at risk for another incomplete sync. Just re-issue the sync action (without the -f flag) once or twice.

Tangoes commented 7 years ago

@fnkr as said before, just type

acdcli sync

And problem solved.

tintop2k commented 7 years ago

Keep running the sync command until it completes. You don't need to remove the database just sync.

On Sat, 27 May 2017, 10:41 Florian Kaiser, notifications@github.com wrote:

@Tangoes https://github.com/tangoes Uhm, that's what I've been doing. The result was getting this error message. Did you read the log I've posted (especially the last 4 lines)? :)

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/yadayada/acd_cli/issues/567#issuecomment-304441401, or mute the thread https://github.com/notifications/unsubscribe-auth/AQTBhHw2vvaRuCMV6rCa3aADKcc5WZ5bks5r9-_igaJpZM4Nnss2 .