AvinashReddy3108 / rclone-mount-magisk

A fork of @piyushgarg's 'rclone-mount', with fixes, updated binaries, x86 support, and more..
103 stars 16 forks source link

Cannot create rclone config in device #6

Open Alistair1231 opened 2 years ago

Alistair1231 commented 2 years ago

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>
Halry commented 2 years ago

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

Halry commented 2 years ago

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.

adamf663 commented 1 year ago

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.

Baldyshugga commented 1 year ago

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.