rclone-mount-magisk icon indicating copy to clipboard operation
rclone-mount-magisk copied to clipboard

Cannot create rclone config in device

Open Alistair1231 opened this issue 3 years ago • 4 comments

It seems to have issues creating or recognizing the config.

y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d>
2021/12/01 17:03:23 ERROR : Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf550278168: read-only file system
Current remotes:

Name                 Type
====                 ====
dav                  webdav

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> q

130|redfin:/ # rclone config
Using 'rclone' binary: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone
2021/12/01 17:06:49 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>

Since it didn't want to create it itself, I created a config file on my PC now and copied it to /sdcard/.rclone/rclone.conf like it says in README.md but it doesn't recognize it either:

redfin:/storage/emulated/0/.rclone # ls /sdcard/.rclone/
rclone.conf  rclone.log
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/r
rclone.conf  rclone.log
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/rclone.log
2021/12/01 17:11:42 NOTICE: webdav root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
redfin:/storage/emulated/0/.rclone # cat /sdcard/.rclone/rclone.conf
[dav]
type = webdav
url = https://website.com/dav/
vendor = other
user = AAAAAA
pass = AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
redfin:/storage/emulated/0/.rclone # rclone config
Using 'rclone' binary: /dev/wsa-magisk/.magisk/modules/rclone.mount/rclone
2021/12/01 17:12:40 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>

Alistair1231 avatar Dec 01 '21 17:12 Alistair1231

I have the same issue too, and I am using oneplus 6, running android 11.

Halry avatar Jan 07 '22 04:01 Halry

I managed to write .rcloud.conf to root folder, and program doesn't report missing config file anymore, However, it won't mount at start. And no luck with mounting using command 'rclone mount webdav: /mnt/cloud/wd'. No files shows up.

Halry avatar Jan 07 '22 05:01 Halry

It is necessary to set an environmental variable to stop rclone from trying to use the system root '/'. export RCLONE_CONFIG=/sdcard/.rclone/rclone.conf
I'm still in the process of setting up. Hopefully that is the directory that'll be used. I was able to get through config without errors.

adamf663 avatar Mar 01 '23 23:03 adamf663

It is necessary to set an environmental variable to stop rclone from trying to use the system root '/'. export RCLONE_CONFIG=/sdcard/.rclone/rclone.conf I'm still in the process of setting up. Hopefully that is the directory that'll be used. I was able to get through config without errors.

I don't get how this works. More info would be nice.

Baldyshugga avatar Apr 08 '23 14:04 Baldyshugga