x0b / rcx

Rclone for Android
https://x0b.github.io
GNU General Public License v3.0
1.72k stars 155 forks source link

Couldn't parse config item chunk_size with Mi units #223

Open zhanghai opened 2 years ago

zhanghai commented 2 years ago

What version of RCX are you using (About -> App version)?

rcx v1.12.2 (with rclone v1.55.1-rcx) from F-Droid

What is your Android version, phone model and manufacturer?

OnePlus 10 Pro OxygenOS Android 12

Which steps are required to reproduce this issue?

Import a config that has chunk_size set with Mi

What is your configuration (rclone.conf)?

The issue seems evident enough, probably rclone v1.55.1 is missing 2925e138 and needs to be updated to at least v1.56.0

Does the same issue also occur when using the same configuration on a PC or in Termux?

Config created and works fine on Arch Linux with rclone v1.59.1

What are the contents of Android/data/io.github.x0b.rcx/files/logs/log.txt?

2022/09/10 21:55:42 Failed to create file system for "******": failed to make remote "******" to wrap: couldn't parse config item "chunk_size" = "100Mi" as fs.SizeSuffix: parsing "100Mi" as fs.SizeSuffix failed: bad suffix 'i'

zhanghai commented 2 years ago

Found out that I can simply replace Mi with M so that rclone v1.55.1 understands it - they are the same thing according to 2925e13. But maybe still worth updating the rclone binary since 1.55.1 is old?