com.piyushgarg.rclone's Issues
rclone MUST be reinstalled after reboot, remount does not work
Samsung J2 Prime
Android 6.0.1 Stock
Magisk 19.3
rclone 1.7
I do not know the cause. Everything else works fine.
cannot mount on Android tv box
i am install rclone magisk module on my shield tv that installed pie and rooted
All steps are fine.
i can see 'done' message, but cannot see my google drive folder at /mnt/cloud/gdrive
cannot mount on tv box?
Update rclone
Hi, I need the latest version of rclone. Is there a way to disentangle the rclone application from this module?
failed to get token | TLS handshake timeout
I have done everything properly, but, it shows, this error code, while adding google drive storage: (tried many times, same error)
2020/05/03 16:29:07 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: net/http: TLS handshake timeout
Bind SD Issues
When using rclone mount for Android with the .bindsd
feature enabled (see issue #5) some apps and file managers may cause rclone
to consume excessive amounts of CPU & RAM.
When examining debug logs I have noticed an abnormal amount of Lookup
in the entries, possibly due to media scans that do not respect the .nomedia
file. If your remote contains a complex directory structure and large amount of files this issue will become apparent rather quickly.
Currently there is no known fix besides disabling the feature or discontinuing use of the app(s) that aggravate the problem. Luckily rclone only seems to be effected by a small handful of apps utilizing storage permissions.
Known Problem Apps
When I find other apps that cause problems I will update this list.
-
ES File Explorer
Seems as though ES File Explorer's new files feature is causing this problem, unfortunately there is no way to disable it.
-
Substratum Theme Engine
Refactoring of custom parameters and others
This module is absolutely brilliant. I think it can be improved a few ways:
- Refactor custom params
I have 10+ custom rclone mount settings. Some are covered with the custom params file, others aren't (listed below).
Having a custom parameters file is a little confusing since we need to map rclone variables to new "com.piyushgarg.rclone" variables and put them in a file. The custom parameters also don't seem to support all the available rclone parameters. Instead, I recommend having a file that's simply interpreted and appended directly as entered. Doing away with creating another set of variables that need customizing with a huge list of other global rclone parameters simplifies setup.
e.g. create your own custom parameters file with options you want rclone to use while mounting
custom.param
[name of remote]
--buffer-size 32M \
--vfs-cache-mode minimal \
--vfs-cache-max-size 4G \
--vfs-read-chunk-size 64M \
--dir-cache-time 72h \
--dir-perms 775 \
--file-perms 775 \
--allow-other \
--allow-non-empty \
--fast-list \
--use-mmap \
--exclude "/Music/**" \
--log-level INFO \
--log-file=/storage/emulated/0/temp/rclone-mount.log \
--daemon
- Customize the mount point
I'd like to put the mount at /storage/emulated/0/ since that's my default working directory on Android. Maybe this can be combined with suggestion 1.
e.g.
custom.param
[name of remote] [custom mount point]
--param 1 \
--param 2 \
- Access remotes via http://127.0.0.1:38762
This doesn't work for me. When I type it in the browser I get "net::ERR_CONNECTION_REFUSED"
Empty folder inside mounted drive and "rclone config" connection refused
- I had 4 remote connection on my rclone.conf and without any custom params
root@android:/storage/emulated/0 # rclone remount
Default CACHEMODE writes
[gdrive_personal] available at: -> [/mnt/cloud/gdrive_personal]
[gsuite] available at: -> [/mnt/cloud/gsuite]
[office_365] available at: -> [/mnt/cloud/office_365]
[onedrive_personal] available at: -> [/mnt/cloud/onedrive_persona
l]
Notice: /mnt/cloud served via HTTP at: http://127.0.0.1:38762
Notice: /mnt/cloud served via FTP at: ftp://127.0.0.1:38763
...done
-
4 remote is mounted in /mnt/cloud/<remote_name>, but no contents at all inside each of them
-
Trying to add new remote with "rclone config" isn't working, it gives this error (below is auto yes and using auto no also doesn't work)
Remote config
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes
n) No
y/n> y
If your browser doesn't open automatically go to the following li
nk: http://127.0.0.1:53682/auth
Log in and authorize rclone for access
Waiting for code...
Got code
2019/07/11 23:27:54 Failed to configure token: failed to get toke
n: Post https://accounts.google.com/o/oauth2/token: dial tcp: loo
kup accounts.google.com on [::1]:53: read udp [::1]:48836->[::1]:
53: read: connection refused
cant/mnt/cloud
I'm on Lineage 16 (OnePlus3T) and Magisk 20.1. The Module seem to work fine. Installation had no issues and rclone remount also has no problems. Maybe I'm doing something wrong, but all my remotes (onedrive) are only mounted readonly under /mnt/cloud. I don't use sdbind. When I try to create a Test-File (touch in terminal after su or using solid explorer) the is an I/O Error
Rclone not getting detected after fresh install
I'm on Nvidia Shield 8.0.1 Android 9.
I factory reset the Shield, installed Magisk, rooted, and then installed the modules SSH for Magisk
and rclone-mount
.
However, whenever I SSH in and try to run rclone
to setup the config it gives me the error
sh: rclone: not found
Any ideas what is going on here? I can run rclone directly from /data/adb/modules/com.piyushgarg.rclone/rclone
but I'd obviously not what to do that, plus when I setup the config through there the /storage/cloud folder never shows.
error downloading file
I am on the latest apk and magisk 19.4
the module is busybox.
Update v1.6 July 31 2019, 23:19:34 is broken
Does not mount anything. v1.5 working fine but sdbind is broken. Previous v1.6 was working.
Degoo
Is it possible to add support for Degoo cloud storage
Disable remotes http and ftp
Is it possible to disable the http and ftp remotes? I don't need them 😢
rclone installation stuck to mount
Android 6.0.1
Magisk 19.3
Forever stuck on please wait when installing through Magisk or TWRP.
There were no conf files on the /sdcard/.rclone directory as it was my first time using rclone.
This happened after a forceful reboot and trying to setup a mount.
2019/07/24 20:01:09 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 20:01:09 mount helper error: page record for 0xb6f0e00c was not found (block_size=16)
2019/07/24 20:01:09 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
2019/07/24 20:50:50 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 20:50:50 mount helper error: page record for 0xb6ee700c was not found (block_size=16)
2019/07/24 20:50:50 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
2019/07/24 23:01:05 mount helper error: CANNOT LINK EXECUTABLE: cannot locate symbol "__aeabi_memcpy" referenced by "fusermount"...
2019/07/24 23:01:05 mount helper error: page record for 0xb6f7500c was not found (block_size=16)
2019/07/24 23:01:05 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
About Custom Params
About Custom Params
Custom params is an addition I made to allow specification for a handful of rclone parameters on a per remote basis, without users having to modify main scripts or needing to write their own. Parameters are specified as PARAM=value
inside a file. Each PRAM=
is an arbitrary representation of a specific rclone argument/option with it's value
following =
.
All .*.param
files should be placed in /sdcard/.rclone/
where *
represents the name of a [remote]
inside your rclone.conf
- Here is an example
rclone.conf
with[remotes]
:
Take note of [Ubuntu-VM]
, [Backup]
& [Movies]
in screenshot as the values inside [ ]
will be used throughout Use Cases. The example above includes one real remote & two aliases to sub dirs accessible via the main remote [Ubuntu-VM]
. Because of the way SFTP remotes work dirs outside your home are inaccessible & that's where aliases come in.
- Example
.*.param
files in/sdcard/.rclone/
:
- List of cust params and the rclone ops they represent:
- Example
.*.param
file content format:
Note: The above is just an example of specifiable params and their default values. There is no need to specify values you do not wish to change. Also take note of the empty line 7
after DISABLE=0
, which is required for proper parsing of the file.
Use Cases
- Workaround for VLC streaming issues:
VLC has an issue where it will attempt to fully cache media when playing from it's internal browser. The only recourse is to disable caching on the remote entirely or create a separate alias remote "[Movies]"
and disable caching there.
- Disable remote when only
type = alias
needed:
Because of the way SFTP remotes work you need to create aliases for directories outside of your starting directory. You may not want to mount the remote [Ubuntu-VM]
that aliases exist for even though it is required inside rclone.conf
NET_CHK() issue
In China, google.com
can't access normally. Must use VPN. Can you change the network detection address to bing.com
?
Uploading files to mounted remote results in error
While most file operations are working without a hitch, there was no success when attempting to upload files to the mounted cloud remote.
This is the rclone
log output:
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.New Rcat failed: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Flush error: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.New Rcat failed: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Write error: io: read/write on closed pipe
2019/07/29 05:37:11 ERROR : path_to_file: WriteFileHandle.Flush error: Failed to create temporary local FS to spool file: stat /data/data/com.termux/files/usr/tmp: no such file or directory
Using OneDrive Business and MiXplorer.
I'll try a different cloud service and a different file explorer next.
EDIT: Turns out that files under 100KiB are transfered just fine. Anything above that ends up as a corrupted 100KiB file on the cloud.
Is it a rclone
configuration issue?
Deadlock with /sbin/rclone
Android version: 10
Phone model: Oneplus 7
Magisk version: 20.4
Module version: 1.10
Problem
Deadlock when executing rclone
in root shell, console not responding.
Step to reproduce
- Install
Rclone Remount
module. - Reboot.
- Enter root shell.
- Execute
rclone
.
Cause
/sbin/rclone
is a symbol link to${MODDIR}/rclone-wrapper.sh
- In
rclone-wrapper.sh
,MODDIR=${0%/*}
is used to get the current module path. - However, when we execute
rclone
or/sbin/rclone
,${0%/*}
expand to/sbin
but not/data/adb/nodule/com.piyushgarg.rclone
, as it doesn't resolve symlink. - In
rclone-wrapper.sh
, when it execute${HOME}/rclone
,/sbin/rclone
is executed instead of/data/adb/nodule/com.piyushgarg.rclone/rclone
. - Boom deadlock
Solution
- Use
MODDIR="$(dirname "$(readlink -f "$0")")"
to get current module path. (Tested) - Add a 2nd level wrapper script.
About config dir
How about using $XDG_CONFIG_HOME
? Normally the config file is in home directory as a file called .config/rclone/rclone.conf (or .rclone.conf if created with an older version). If $XDG_CONFIG_HOME
is set it will be at $XDG_CONFIG_HOME/rclone/rclone.conf
.Use this to easily change the configuration file path
Description of module in Magisk should have a link to GitHub
I think the description of the module in Magisk should have a link to the GitHub Project that people can find it easily and report upcoming issues.
Can't work on redmi note 5 ? Empty folder !
my phone :redmi note 5
Android 8.1.0
MIUI 91.0.6
Magisk manager 7.3.2
Magisk 19.3
com.piyushgarg.rclone v1.7b
I had 1 remote connection on rclone.conf and with custom params
.global.param:
CACHEMODE=minimal
ADD_PARAMS=--fast-list --allow-non-empty
HTTP=0
FTP=0
install OK but empty folder ?
I can see the folder "mnt\cloud\nsysu", but there is nothing ?
May I miss any step ??
Cannot run on Android 8
trying to run 'rclone' results in nothing, after wait for some time, juicessh crash
Rclone version is outdated
Please update the rclone version within this module, or even better, (also) tell me how to do it then I'll do it myself :) I have termux and installed building tools.
I'd like to use stuff they fixed in recent betas.
How to synchronize remote operations to local?
I mounted OneDrive. If I create, delete, modify, etc. on my phone locally, these operations will be synchronized to the OneDrive cloud;
But, if I create, delete, or modify on the OneDrive webpage (onedrive.com), these operations will not be synchronized to the local. How can I synchronize changes in the cloud to the local?
(The local changes only when I remount)
this is my .global.param
`NETCHK=1
NETCHK_ADDR=qq.com
CACHEMODE=minimal
BINDSD=1
ADD_PARAMS=--fast-list --allow-non-empty
HTTP=0
FTP=0
`
rclone works right after installing but fails after rebooting
It is not working after a reboot on Pixel Experience Plus Android 10.
It works right after installing it in magisk, and configured endpoints are mounted under /mnt/cloud, but after rebooting, rclone does not work anymore, it does not even show the help from a command line.
At the moment I workaround it by installing the magisk module again without rebooting.
What logs could be useful?
Mounted but folder empty
hi all, i use this command rclone mount -vv "mydrive:" /mnt/cloud/myfolder
I see that the emulator has been mounted, but I don't see any file or folder inside the chosen folder.
How can I solve it?
Error
/sbin/rclone-mount
/sbin/rclone-mount[10]: .: /sbin/module.prop: No such file or directory
$
Why does rclone keep downloading?
I mounted my NAS (6T) using FTP. After mounting, the device kept downloading, causing the device to freeze and restart.
Is my configuration inappropriate?
this is my .global.param
`NETCHK=1
NETCHK_ADDR=qq.com
CACHEMODE=minimal
BINDSD=1
ADD_PARAMS=--fast-list --allow-non-empty
HTTP=0
FTP=0
Can't create files only directories
I'm on Lineage 16 (OnePlus3T) and Magisk 20.1. The Module seem to work fine. Installation had no issues and rclone remount also has no problems. Maybe I'm doing something wrong, but all my remotes (onedrive) seem properly mounted under /mnt/cloud. I don't use sdbind. When I try to create a test-file (touch in terminal after su or using solid explorer) there is an error. But a directory can be created without any problems...
No option to specify path in SFTP
It is quite hard to specify some custom path in sftp mounting, because rclone implements
rclone mount sharename:/path/to/folder/to/be/mounted /local/path/for/mounting/to so we can't basically choose anything apart from home folder of ssh user, which is kinda limiting.
F-droid issue
Crypt remote not working
Hi,
I have a Gdrive remote (let's call it drive: ) mounting correctly on my android.
However the crypt remote (drive_crypt: ) referencing this drive: is not mounting.
When I type on a terminalrclone ls drive_crypt:/
I can see all my folders.
Is crypt mounting really supported ?
Mixed up config file names
I can't quote for specific places, but actually it is quite often ..param and ..params is spotted, meaning to be a single config file, and not sure which one is correct. Plus description is not very understandable in means of installing (not straightforward), and rclone remount command also does nothing (not existent).
1 2 3 steps for mounting storage will help using this better, plus in-magisk configurator also could help in choosing whether to mount in internal/cloud/sharename or not.
rclone unlimited gdrive not enough space
hi my device is himedia q10 pro everything setup gdrive unlimited not team drive, it created a folder in storage/cloud but when copy 1gb+ files it says not enough space.
please help thank you
Can not download
Can not download the zip file through magisk manager. Shows error downloading file.
Cannot run config on Android 10 (Q)
Trying to run rclone config
results in:
error: "/sbin/.core/img/com.piyushgarg.rclone/rclone": executable's TLS segment is underaligned: alignment is 8, needs to be at least 64 for ARM64 Bionic Aborted
This is on a Pixel 2XL with Android Q beta 6.
Googling the issue I think this is an issue with Go(lang), so updating that will probably resolve the issue.
Rclone remote wont mount unless CACHEMODE=off
My rclone wont mount unless CACHEMODE is set to off.
I tried all minimal/writes/full options but all result in just creating the empty mount folder, with nothing int it /mnt/cloud/xxxx
If CACHEMOD=OFF it mount just fine,
Tried with 1.7 /1.7a / 1.8a
in china google.com can not ping
so the service.sh will not start ,it is not a good idea to set google as default
Noob Question :- ❓ What's the advantage or purpose of this module❓
I can't understand the purpose of this module. Is it for mounting our files placed at cloud to our Devices without downloading it?
Am I right? If not, can someone explain it's advantage for me please?
SD Bind Issues
Hi, I enabled SD Bind, but after it mounts all I get is an empty Cloud folder. The main mount point works fine, but SD does not show any files.
How to synchronize the modification date of a file?
I mounted FTP, but when I modify directly on the FTP server, the modification date will not be synchronized to the local, the modification date of the file on the phone is the phone's own!
This problem prevented my phone from viewing files by "sort by modification date" at all! Because the modification date is wrong ...
*How do I set. . Param to synchronize the modification date to the local?
模块重启挂载不上
你好,模块重启后不会自动挂载,并且我尝试手动挂载也挂载不上,只有空文件夹
[GoogleDrive] available at: -> [/mnt/cloud/GoogleDrive]
/sbin/.core/img/com.piyushgarg.rclone/service.sh[414]: su: not found
[Onedrivefuli] available at: -> [/mnt/cloud/Onedrivefuli]
/sbin/.core/img/com.piyushgarg.rclone/service.sh[414]: su: not found
Hang with "please wait..." by fresh install
I had a hang during install at the point "please wait..." (waited several minutes) during fresh install.
Module was later listed under Modules, but I guess I have to uninstall and reinstall it again... ???
Can I provide any logs?
My device is a Samsung S7 with LOS 15.1 and latest dev build Magisk...
Stuck in killing and unmounting remotes
While I reinstalled the module in the installation I am now locked like this and it does not go on how I can solve it?
BINDSD not unset
About Internal SD Support
As of version 1.5
experimental support for mounting to the internal SD will be included. By default I have disabled it due to concerns for users data integrity after losing data during my development process. However, since working out how I think mounting/un-mounting should be done I haven't seemed to have the same issues.
If you wish to test this feature out backup your data first. Ensure no folder named Cloud
exist in /sdcard/
then place BINDSD=1
in /sdcard/.rclone/.*.param
& run rclone remount
or reboot.
Once you have performed these steps all your remotes should be available under /sdcard/cloud/
. Do not remove files named .bound
or .nomedia
as they are intended to indicate a proper bind to /sdcard/
& stop media scans from consuming large amounts of data RAM and CPU.
Magisk 19.4+ cause instabilities.
I just recently updated magisk to 19.4, and having rclone installed while on 19.4 beta or above canary builds cause my device to freeze, and then reboot. As soon as I uninstalled rclone, device started functioning as normal. I am on Moto z3 Play Android 9.0. I'll be going back to 19.3 because I love rclone, but thought I'd let you know about the issues before 19.4 stable is released.
Bind to SD card only gives r/o access
I tried binding my mount points to SD card. One, it still mounted the point in /mnt/cloud and two, the one in /sdcard/cloud was only read access. Is this an issue or do I need to pass additional parameters to the param file. I had hoped that it would pick the default ones from the settings automatically, while using the additional ones I passed to Mount in SD card.
Am I missing something here?
Magisk 20.4+ Canary Builds Crash
Whenever I run rclone through Termux using su
, rclone just keeps launching different instances to the point that it crashes my Nvidia SHIELD TV.
I think it's because the Magisk Modules installer changed, documented here: https://github.com/Magisk-Modules-Repo/submission
and here:
https://topjohnwu.github.io/Magisk/guides.html
Similar to #31
Local scan of Google photos causes rclone to keep downloading, what should I do?
I mounted the NAS, but my device keeps downloading. I finally found the reason. Scanning of Google Photos caused rclone to be forced to download the cache (when I killed Google Photos, the download stopped), how can I solve this problem?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.