Repository navigation
Open
Labels
Milestone
Description
What is the problem you are having with rclone?
I am telling it to list deleted versions of files in B2. It is not actually doing so.
What is your rclone version (output from rclone version)
rclone v1.45-133-g291f2709-beta
- os/arch: linux/amd64
- go version: go1.11.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Ubuntu 19.04 64-bit
Which cloud storage system are you using? (eg Google Drive)
B2
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Observe (the /tmp/rclone is the current beta):
jik@jik5:/tmp$ /tmp/rclone ls --b2-versions B2:jik-encrypted/ubmm8380hmd1ova1poskn7ih2k/km0b5i87bf2iv0ohma9pd5dpm0/8mqsoegl21ooasr7taeeoteb4c/a5rek3qooiqd7qpc7hr6kjbm2s/1g0obg2ltqv4pcb4oa890vuhno/ | tail
34949527 v6bc76anfonhb4dlj41b9n72fg/uqpd8csci1i7s3k7g90b04nc111ppgp5n21duvnhp3hc1a2kjje0
35177281 v6bc76anfonhb4dlj41b9n72fg/uvjcadp00uapvbli5t0jd6q8qb0kpum7u1b6h0rea12f4e8ibqa0
35282172 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg
35133318 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-22-124107-000
35163306 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-24-123642-000
35194344 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-25-123946-000
35195836 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-26-123940-000
35215781 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-27-124111-000
35227969 v6bc76anfonhb4dlj41b9n72fg/v6bc76anfonhb4dlj41b9n72fg-v2019-01-29-124017-000
35067677 v6bc76anfonhb4dlj41b9n72fg/vhq45vabeenj56kuo0rbb88q6475k94i3bbu9q455vrglkdc7e50
jik@jik5:/tmp$ /tmp/rclone ls --b2-versions B2:jik-encrypted/ubmm8380hmd1ova1poskn7ih2k/km0b5i87bf2iv0ohma9pd5dpm0/8mqsoegl21ooasr7taeeoteb4c/a5rek3qooiqd7qpc7hr6kjbm2s/1g0obg2ltqv4pcb4oa890vuhno/v6bc76anfonhb4dlj41b9n72fg/ | tail
0 v6bc76anfonhb4dlj41b9n72fg
jik@jik5:/tmp$
Note now the first time I run the command, it indicates that there is a "v6bc76anfonhb4dlj41b9n72fg" subdirectory with a bunch of files, including old file versions in it, but then when I run the command again, copying that directory to the end of the path because I'm actually just interested in what's in that directory, it doesn't list its contents.
What the heck.
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
This doesn't appear to produce much debugging output, but here it is:
2019/01/30 09:50:25 DEBUG : rclone: Version "v1.45-133-g291f2709-beta" starting with parameters ["/tmp/rclone" "-vv" "ls" "--b2-versions" "B2:jik-encrypted/ubmm8380hmd1ova1poskn7ih2k/km0b5i87bf2iv0ohma9pd5dpm0/8mqsoegl21ooasr7taeeoteb4c/a5rek3qooiqd7qpc7hr6kjbm2s/1g0obg2ltqv4pcb4oa890vuhno/v6bc76anfonhb4dlj41b9n72fg/"]
2019/01/30 09:50:25 DEBUG : Using config file from "/home/jik/.rclone.conf"
0 v6bc76anfonhb4dlj41b9n72fg
2019/01/30 09:50:27 DEBUG : 6 go routines active
2019/01/30 09:50:27 DEBUG : rclone: Version "v1.45-133-g291f2709-beta" finishing with parameters ["/tmp/rclone" "-vv" "ls" "--b2-versions" "B2:jik-encrypted/ubmm8380hmd1ova1poskn7ih2k/km0b5i87bf2iv0ohma9pd5dpm0/8mqsoegl21ooasr7taeeoteb4c/a5rek3qooiqd7qpc7hr6kjbm2s/1g0obg2ltqv4pcb4oa890vuhno/v6bc76anfonhb4dlj41b9n72fg/"]
Activity
ncw commentedon Jan 30, 2019
This does look odd! I tried to replicate it but I couldn't immediately.
Can you run the command with
-vv --dump bodiesand attach the output of both the commands you ran? (the directory above and the directory)jikquantopian commentedon Jan 30, 2019
working.log
not-working.log
ncw commentedon Jan 30, 2019
Thanks for the logs.
I think I see what the problem is....
There used to be a folder called
And depending on how you come at it you see either the files, or you see the contents of the folder (which is empty).
I think this replicates your problem or something like it.
I'm not sure how to fix this - rclone doesn't deal well with files and directories with the same name.
You could work around this with
Does the above analysis seem correct to you?
jikamens commentedon Feb 3, 2019
I think you've got it slightly backward. There used to be a file with that name, but I replaced it with a folder.
I'm not sure how to fix it either, but I do think it's a bug that should be fixed. :-/
ivandeex commentedon Feb 9, 2021
@jikamens
This bug is reported against obsolete version of rclone. Can you reproduce it with rclone 1.54?
jikamens commentedon Feb 12, 2021
Same incorrect behavior in 1.54.