Hanging on mount

Title is no longer accurately reflecting the issue. I've done my best to keep this up to date, but please check the comments for progress!!!

What is the problem you are having with rclone?

Nothing happens after mount command is entered. I checked the file, nothing is new there.

Run the command 'rclone version' and share the full output of the command.

~ $ rclone --version
rclone v1.68.2-termux
- os/version: unknown
- os/kernel: 4.9.118-24343300 (aarch64)
- os/type: android
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.23.2
- go/linking: dynamic
- go/tags: noselfupdate
~ $

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads

Yes. Pkg install rclone.

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

~ $ sudo rclone mount GDrive /storage/emulated/0/Rclone 

A comment did found out that this originally said Drive instead of GDrive, I've reverified with the correct command (seen below). The issue was not resolved.

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

~ $ rclone config redacted
[GDrive]
type = drive
token = XXX
team_drive =
scope = drive
### Double check the config for sensitive info before posting publicly
~ $ 

A log from the command that you were trying to run with the -vv flag

~ $ sudo rclone mount -vv GDrive /storage/emulated/0/Rclone2024/12/06 17:37:03 DEBUG : rclone: Version "v1.68.2-termux" starting with parameters ["rclone" "mount" "-vv" "GDrive" "/storage/emulated/0/Rclone"]
2024/12/06 17:37:03 DEBUG : Creating backend with remote "GDrive"
2024/12/06 17:37:03 NOTICE: Config file "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf" not found - using defaults
2024/12/06 17:37:03 DEBUG : fs cache: renaming cache item "GDrive" to be canonical "/data/data/com.termux/files/home/GDrive"
2024/12/06 17:37:03 INFO  : Local file system at /data/data/com.termux/files/home/GDrive: poll-interval is not supported by this remote
2024/12/06 17:37:03 DEBUG : Local file system at /data/data/com.termux/files/home/GDrive: Mounting on "/storage/emulated/0/Rclone"
2024/12/06 17:37:03 DEBUG : : Root:
2024/12/06 17:37:03 DEBUG : : >Root: node=/, err=<nil>

Additional stuff:

The file does indeed exist, I'm not going crazy

:/storage/emulated/0 # ls
Alarms     Download      Pictures    Telegram
Android    Movies        Rclone      adbAutoSave
AppManager Music         Ringtones   last_kmsg\ logs
DCIM       Notifications Samsung     log
Documents  Oculus        SwiftBackup

I was having trouble with the added colon, so I tried the command above instead.

~ $ sudo rclone mount GDrive: /storage/emulated/0/Rclone
2024/12/06 17:34:09 NOTICE: Config file "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf" not found - using defaults
2024/12/06 17:34:09 CRITICAL: Failed to create file system for "GDrive:": didn't find section in config file
~ $

welcome to the forum,

based on what you posted, that should be
rclone mount GDrive:

not sure what that means??
rclone mount, by default, does not return to the command line, keep running.

run the command with debug output

  • output to command line using -vv
  • output to file --log-level=DEBUG --log-file=~/rclone.log

Hi, and thanks for the warm welcome.

I was having trouble with the added colon, so I tried the command in the post instead.

~ $ sudo rclone mount GDrive: /storage/emulated/0/Rclone
2024/12/06 17:34:09 NOTICE: Config file "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf" not found - using defaults
2024/12/06 17:34:09 CRITICAL: Failed to create file system for "GDrive:": didn't find section in config file
~ $

Here is the output with the -vv option, I've also updated the post to reflect this change.

~ $ sudo rclone mount -vv GDrive /storage/emulated/0/Rclone2024/12/06 17:37:03 DEBUG : rclone: Version "v1.68.2-termux" starting with parameters ["rclone" "mount" "-vv" "GDrive" "/storage/emulated/0/Rclone"]
2024/12/06 17:37:03 DEBUG : Creating backend with remote "GDrive"
2024/12/06 17:37:03 NOTICE: Config file "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf" not found - using defaults
2024/12/06 17:37:03 DEBUG : fs cache: renaming cache item "GDrive" to be canonical "/data/data/com.termux/files/home/GDrive"
2024/12/06 17:37:03 INFO  : Local file system at /data/data/com.termux/files/home/GDrive: poll-interval is not supported by this remote
2024/12/06 17:37:03 DEBUG : Local file system at /data/data/com.termux/files/home/GDrive: Mounting on "/storage/emulated/0/Rclone"
2024/12/06 17:37:03 DEBUG : : Root:
2024/12/06 17:37:03 DEBUG : : >Root: node=/, err=<nil>

https://rclone.org/docs/#config-config-file

i assume that you created the remote as non-root user, correct?
to find the config file, rclone config file

  • tell rclone where to find it using --config=/path/to/rclone.log
    or
  • copy the config file to /data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf

that needs to be GDrive:, need to use :

else rclone things GDrive is a local subfolder, relative to the current working directory
renaming cache item "GDrive" to be canonical "/data/data/com.termux/files/home/GDrive"

I've setup the config again, as root this time (using sudo)

~ $ sudo rclone mount -vv GDrive: /storage/emulated/0/Rclone
2024/12/06 19:38:19 DEBUG : rclone: Version "v1.68.2-termux" starting with parameters ["rclone" "mount" "-vv" "GDrive:" "/storage/emulated/0/Rclone"]
2024/12/06 19:38:19 DEBUG : Creating backend with remote "GDrive:"
2024/12/06 19:38:19 DEBUG : Using config file from "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf"
2024/12/06 19:38:20 DEBUG : Google drive root '': 'root_folder_id = 0AC4B6QEvIpIOUk9PVA' - save this in the config to speed up startup
2024/12/06 19:38:20 DEBUG : Google drive root '': Mounting on "/storage/emulated/0/Rclone"
2024/12/06 19:38:20 DEBUG : : Root:
2024/12/06 19:38:20 DEBUG : : >Root: node=/, err=<nil>

But nothing appears in the folder still?

Also, I am using my own client ID and secret this time, and google api is showing traffic so it should be working. I think somehow I messed up so rclone can't access any of the files?

I followed this guide exactly

But I left the scopes blank (just pressing enter) when setting up the config in the terminal. Should it be something else?

but you mount to:

check this directory content


Ok. I am not familiar with Android but it looks that your mount is working and only you have no rights to see its content.

Try to add --allow-other to your mount command.

If this is the command,
sudo rclone mount -vv --allow-other GDrive: /storage/emulated/0/Rclone

It's still not working sadly.

Try not to use root for mounting. It is very bad practice anyway.

If still not working we need some Android person to have a look.

Correct me if I'm wrong, but on Android, you would need root to mount Google Drive directly to the filesystem.

No idea:) never used Android. My suggestions were based on what works on various Linux systems.

Let's see what some more knowledgable people have to say.

In the meantime maybe instead of rclone mount you could use rclone serve? And access your cloud content over http/webdav/sftp (read only)?

1 Like

Yup. In the meantime, I can use rclone copyto , which gives me 90% of what I wanted.

correct.

mount to a subfolder inside your homedir.

Could you explain what you mean by this? I was trying to mount to the filepath in my comment

/storage/emulated/0/Rclone

Also, I've found out something that makes no intuitive sense.

Doing,

su
rclone config

Output:

clone config -vv                                         <
2024/12/06 22:37:12 DEBUG : Configuration directory could not be created and will not be used: mkdir /.config: read-only file system
2024/12/06 22:37:13 DEBUG : rclone: Version "v1.68.2-termux" starting with parameters ["rclone" "config" "-vv"]
2024/12/06 22:37:13 NOTICE: Config file "/.rclone.conf" not found - using defaults
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> ^C
130|:/data/data/com.termux/files/home # 

It doesn't identify any remotes.

But,

sudo rclone config

Outputs:

2024/12/06 22:40:59 DEBUG : rclone: Version "v1.68.2-termux" starting with parameters ["rclone" "-vv" "config"]
2024/12/06 22:40:59 DEBUG : Using config file from "/data/data/com.termux/files/home/.suroot/.config/rclone/rclone.conf"
Current remotes:

Name                 Type
====                 ====
GDrive               drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

Does identify the GDrive remote.

Wth?

mount to a subdir inside your homedir
rclone mount GDrive: ~/mountpoint

maybe some quirk of root on android.
really should not matter, just use --config

I've redid the config again in Su this time (not sudo), with the --config option pointing to /data/data/com.termux/files/home/.config/rclone/rclone.conf

Also mounted with

rclone --config  /data/data/com.termux/files/home/.config/rclone/rclone.conf mount -vv GDrive: /storage/emulated/0/Rclone

Nothing appears in the file. Mount succeeded though.