Rclone rmdirs not working

Hi,

Running this command,

rclone rmdirs -v -P remove:/path

Is not giving any feedback or showing like anything is working, the elapsed time ticker is not moving and staying at 0.
I only used -P because -v was not showing anything either. I am running this command against a Dropbox remove.

My goal is to remove empty folders in the remote. So far without any luck
If removing the empty directories would not work, listing them would be good as well, so I know where they are.

rclone v1.50.2

Ubuntu 18

Dropbox

Can you please include the same command with "-vv" as that's part of the question template. Without a log file, we can't really figure much out.

I would like to include a log but it would be useless, it's empty even with the -vv.
How long do I need to wait after running the command? And can I run it with dry run?

You should wait until the command finishes and post the entire log like this:

felix@gemini:~$ rclone lsf GD: -vv
2019/11/20 09:28:48 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "lsf" "GD:" "-vv"]
2019/11/20 09:28:48 DEBUG : Using config file from "/opt/rclone/rclone.conf"
Wednesday-2019-11-06/
crypt/
hosts
rclone.log
2019/11/20 09:28:49 DEBUG : 5 go routines active
2019/11/20 09:28:49 DEBUG : rclone: Version "v1.50.2" finishing with parameters ["rclone" "lsf" "GD:" "-vv"]

Those are 3 back tics ` before and after the block you want to post.

It does not finish, it keeps "running" without doing much.
Oh it just came back with this:

2019/11/20 15:29:33 DEBUG : too_many_requests/...: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/...)
2019/11/20 15:29:33 DEBUG : pacer: Rate limited, increasing sleep to 5m0s
2019/11/20 15:29:33 DEBUG : pacer: Reducing sleep to 3m45s
2019/11/20 15:29:33 DEBUG : too_many_requests/..: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/..)
2019/11/20 15:29:33 DEBUG : pacer: Rate limited, increasing sleep to 5m0s
2019/11/20 15:29:33 DEBUG : too_many_requests/..: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/..)
2019/11/20 15:29:33 DEBUG : too_many_requests/.: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/.)
2019/11/20 15:29:33 DEBUG : too_many_requests/.: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/.)
2019/11/20 15:29:33 DEBUG : pacer: Reducing sleep to 3m45s
2019/11/20 15:29:33 DEBUG : too_many_requests/.: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 1/10 (error too_many_requests/.)
2019/11/20 15:29:33 DEBUG : pacer: Rate limited, increasing sleep to 5m0s
2019/11/20 15:29:33 DEBUG : too_many_requests/..: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:29:33 DEBUG : pacer: low level retry 2/10 (error too_many_requests/..)

You cut off the top part which is the full command you ran. Can you please share that.

Ok, my appologies:

rclone -vv rmdirs viaa:/folder/ >> /home/user/Desktop/rclonermdirslog.log

2019/11/20 15:31:28 DEBUG : rclone: Version "v1.50.2" starting with parameters ["rclone" "-vv" "rmdirs" "viaa:/persoonlijkemaploder/"]
2019/11/20 15:31:28 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2019/11/20 15:31:28 DEBUG : too_many_requests/...: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:31:28 DEBUG : pacer: low level retry 1/10 (error too_many_requests/...)
2019/11/20 15:31:28 DEBUG : pacer: Rate limited, increasing sleep to 5m0s
2019/11/20 15:31:29 DEBUG : too_many_requests/..: Too many requests or write operations. Trying again in 300 seconds.
2019/11/20 15:31:29 DEBUG : pacer: low level retry 2/10 (error too_many_requests/..)
2019/11/20 15:36:29 DEBUG : pacer: Reducing sleep to 3m45s
2019/11/20 15:36:29 DEBUG : Dropbox root 'folder': Using root namespace "xxxxxxxxx"
2019/11/20 15:41:29 DEBUG : pacer: Reducing sleep to 2m48.75s
2019/11/20 15:45:14 DEBUG : pacer: Reducing sleep to 2m6.5625s
2019/11/20 15:48:03 DEBUG : pacer: Reducing sleep to 1m34.921875s
2019/11/20 15:50:10 DEBUG : pacer: Reducing sleep to 1m11.19140625s

For some reasone if I copied the terminal output and pasted it here it would always cut out the command or first line. The above command is directly from the terminal, not retyped

I believe you can add "--fast-list" for Dropbox to help speed things up. If you check your API console, are you out of requests? It seems to be trying but not progressing.

How can I check that?

I am not as familiar with dropbox personally but when I was testing, there was an admin console:

And I was able to see my API hits in that.

I would have "Unlimited API Call Rate Limit" listed there under billing, so why is it failing?

I think it's related to this:

You should be able to turn down the rate by using:

--tpslimit=9

as that should help out or make it a little lower.

rclone -vv rmdirs --dry-run --tpslimit=9 viaa:/directory/directory/ 

This is what the command would be, any extra suggestions?

Nah, it's not working now so give it a whirl :slight_smile:

You should also take a look at the limitations:

https://rclone.org/dropbox/#limitations

Ok thank you I am running it now

IT WORKED! Thank you @Animosity022!

Wait: Now it does not redirect to a csv file -_- do I need to use tee? because I used >> before

You can use --log-file logname.txt if you want to keep the output in a logfile if that's easier.

Works, so impressed with rclone. I should be learning how the use the dropbox api really with this sort of stuff :stuck_out_tongue:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.