com.piyushgarg.rclone icon indicating copy to clipboard operation
com.piyushgarg.rclone copied to clipboard

NOTICE: Config file "/.rclone.conf" not found - using defaul ts

Open teamonce opened this issue 5 years ago • 30 comments
trafficstars

I updated magisk to 20.4 and installed rclone from magic module download (latestversion)

When i configure my rclone mount with "rclone config" i make all the steps ok, but when i go to press yes to save, i give the error that was read-only rclone.config and it cant save that file.

Which is the default folder on the latest version of rclone?

rclone 1.8 and magisk 20.3 works well.

Thanks

teamonce avatar Jun 12 '20 17:06 teamonce

Not solves the problem, tried create /.rclone and when reboot the system deletes the folder

I think maybe the solution was create the folder /data/.rclone where i can edit the permissions, but i dont know how edit rclone to read that folder

teamonce avatar Jun 12 '20 17:06 teamonce

Same result with me.

When you go to make a new one via the config.

"

y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y 2020/06/20 02:10:46 Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf161867549: read-only file system"

Korpip avatar Jun 20 '20 02:06 Korpip

Same issue here

ramabondanp avatar Jun 20 '20 08:06 ramabondanp

I'm facing same issue.

ArjunZe avatar Jun 20 '20 17:06 ArjunZe

Yup. I've been facing the exact same issue

captainfuckface avatar Jun 29 '20 05:06 captainfuckface

The problem is that the "/" location is the very root of the system. Permissions are not granted even on rooted devices. The conf file needs a accessable location.

Baldyshugga avatar Jul 06 '20 17:07 Baldyshugga

It seems like rclone tries to use a config file at /.rclone.conf instead of /sdcard/.rclone/rclone.conf, and fails on creating a temp file in the same directory (cd-ing before running the setup does not change anything)

2020/07/07 16:43:00 Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf371507665: read-only file system

Asking rclone where it thinks the config should be makes this more obvious:

# rclone config file
Configuration file doesn't exist, but rclone will use this path:
/.rclone.conf

oliva avatar Jul 07 '20 16:07 oliva

i think i bypassed it: you just need to make the rclone.conf already available when you install the magisk module. I made it by removing the magisk module, and created both the directory in /sdcard/.rclone/ ad then pasted a dummy rclone.conf consisting of a simple FTP remote with those lines. [nas] type = ftp host = 192.168.1.1 user = admin pass = 1kRRhrbnf4UVAe16gbhLr40qGp5nrh9W6dI Them when i installed the module it imported correctly the config and setup correctly the rest

Herrnobiz avatar Jul 09 '20 23:07 Herrnobiz

i think i bypassed it: you just need to make the rclone.conf already available when you install the magisk module. I made it by removing the magisk module, and created both the directory in /sdcard/.rclone/ ad then pasted a dummy rclone.conf consisting of a simple FTP remote with those lines. [nas] type = ftp host = 192.168.1.1 user = admin pass = 1kRRhrbnf4UVAe16gbhLr40qGp5nrh9W6dI Them when i installed the module it imported correctly the config and setup correctly the rest

Just tried this. No go. I get this in the log: 2020/07/10 16:54:42 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found 2020/07/10 16:54:42 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted 2020/07/10 16:54:44 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found 2020/07/10 16:54:44 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted 2020/07/10 16:54:44 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found 2020/07/10 16:54:44 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted 2020/07/10 16:54:45 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found 2020/07/10 16:54:45 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted

Baldyshugga avatar Jul 10 '20 16:07 Baldyshugga

i think i bypassed it: you just need to make the rclone.conf already available when you install the magisk module. I made it by removing the magisk module, and created both the directory in /sdcard/.rclone/ ad then pasted a dummy rclone.conf consisting of a simple FTP remote with those lines. [nas] type = ftp host = 192.168.1.1 user = admin pass = 1kRRhrbnf4UVAe16gbhLr40qGp5nrh9W6dI Them when i installed the module it imported correctly the config and setup correctly the rest

I was luckier than the previous user, it worked for me. Thanks!

I didn't put a dummy in the folder, just copied the rclone.conf from my computer.

The module reinstall took very long, to the point I thought it had failed, but it worked.

bipox avatar Jul 24 '20 10:07 bipox

I tried the above. I removed rclone from magisk, rebooted. Created the .rclone folder on the sdcard via Mix. I then created the rclone.conf file, also via Mix and pasted the FTP remote into the file and saved. I installed rclone via magisk and rebooted. When I then tried rclone config file again in termux it still reported the default config file on root. Can't figure out what I missed. Thoughts?

Cenobite81 avatar Jul 27 '20 22:07 Cenobite81

I can share with you the mistake I made: mobile keyboards often insert a space after a period. I didn't see at first I created a ". rclone" folder

Right now I'm failing to mount in sdcard I put BINDSD=1 in a global.param file. Is there anything else?

Edit: I just checked, webdav drives are mounted but rclone config still doesn't detect .conf file. Maybe check if it's mounted in /mnt/cloud

bipox avatar Jul 27 '20 23:07 bipox

Copying the rclone.conf from the PC to android worked for me as well, thank-you.

16515665656 avatar Jul 28 '20 02:07 16515665656

Copying the rclone.conf from the PC to android worked for me as well, thank-you.

Where did you copy the config file to? Because mine looks for the config file the / location which it can't get permission to modify.

Baldyshugga avatar Aug 01 '20 05:08 Baldyshugga

@Baldyshugga

My exact location path was /storage/emulated/0/.rclone I had to enable "Show hidden files" to see the folder if it is not there then you'll need to create a new .rclone folder. Once located I put the config file from the PC into it and then installed rclone on the device.

16515665656 avatar Aug 01 '20 23:08 16515665656

@Baldyshugga

My exact location path was /storage/emulated/0/.rclone I had to enable "Show hidden files" to see the folder if it is not there then you'll need to create a new .rclone folder. Once located I put the config file from the PC into it and then installed rclone on the device.

And you can verify that the folder for remote locations are not empty? Mine all show empty like their not getting parsed. Running rclone config in terminal fails at the end saving the config file. Says it doesn't have permission. Oh by the way. When I install the module in magisk, it is listed as ver1.8 during install.

Baldyshugga avatar Aug 02 '20 03:08 Baldyshugga

@Baldyshugga

Yes, the full steps I took were

  1. Uninstall rclone on android device, reboot
  2. Run rclone on the PC to generate a .config file
  3. Copy over the config file from the PC to the .rclone directory on android
  4. Install rclone on android

16515665656 avatar Aug 02 '20 06:08 16515665656

@Baldyshugga

My exact location path was /storage/emulated/0/.rclone I had to enable "Show hidden files" to see the folder if it is not there then you'll need to create a new .rclone folder. Once located I put the config file from the PC into it and then installed rclone on the device.

I've done that several times and no luck. Can I ask your device setup?

Baldyshugga avatar Aug 03 '20 00:08 Baldyshugga

It's sad the developer isn't worried about fixing this major flaw. It affects most users.

Baldyshugga avatar Aug 14 '20 17:08 Baldyshugga

same problem here, rclone wont read the config file from /sdcard.

trying to create a remote from rclone config ends giving this error Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf: read-only file system

Sarayalth avatar Aug 21 '20 18:08 Sarayalth

Those of you facing the issue of Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf: read-only file system Run these two commands on the su shell before rclone config RCLONE_CONFIG=/sdcard/.rclone/rclone.conf export RCLONE_CONFIG

undermark5 avatar Aug 23 '20 17:08 undermark5

Those of you facing the issue of Failed to save config after 10 tries: Failed to create temp file for new config: open /.rclone.conf: read-only file system Run these two commands on the su shell before rclone config RCLONE_CONFIG=/sdcard/.rclone/rclone.conf export RCLONE_CONFIG

I tried your suggestion and it let me save the config file. But when I go to the folder in storage/cloud/ it's empty.

Baldyshugga avatar Aug 23 '20 23:08 Baldyshugga

Is this still being worked on?

Baldyshugga avatar Sep 11 '20 14:09 Baldyshugga

Is this still being worked on?

Considering I'm not a contributor, I have no idea.

As for how to fix your problem, if you are wanting to use rclone, you really should already be familiar with reading and understanding shell scripts as well as checking logs (in this case check magisk's logs). If this is something that you really want working, it looks like you will have to figure out on your own. It isn't that hard to fix.

undermark5 avatar Sep 11 '20 15:09 undermark5

Is this still being worked on?

Considering I'm not a contributor, I have no idea.

As for how to fix your problem, if you are wanting to use rclone, you really should already be familiar with reading and understanding shell scripts as well as checking logs (in this case check magisk's logs). If this is something that you really want working, it looks like you will have to figure out on your own. It isn't that hard to fix.

Why do you assume that people should already be familiar with understanding of the error outputs and even more so how to read logs? This package was compiled as an add-on to a tool that makes rooting devices easy.

Korpip avatar Sep 11 '20 15:09 Korpip

Is this still being worked on?

Considering I'm not a contributor, I have no idea. As for how to fix your problem, if you are wanting to use rclone, you really should already be familiar with reading and understanding shell scripts as well as checking logs (in this case check magisk's logs). If this is something that you really want working, it looks like you will have to figure out on your own. It isn't that hard to fix.

Why do you assume that people should already be familiar with understanding of the error outputs and even more so how to read logs? This package was compiled as an add-on to a tool that makes rooting devices easy.

It's called elitist ideology. Some people can't help it. Everyone should have the same education and upbringing.

Baldyshugga avatar Sep 17 '20 00:09 Baldyshugga

@Baldyshugga

Yes, the full steps I took were

1. Uninstall rclone on android device, reboot

2. Run rclone on the PC to generate a .config file

3. Copy over the config file from the PC to the `.rclone` directory on android

4. Install rclone on android

Yes this solved the problem with the config file totally, but still the fusermount problem:

2020/12/06 14:19:50 NOTICE: webdav root '': --vfs-cache-mode writes or full is recommended for this remote as it can't stream 2020/12/06 14:19:50 mount helper error: CANNOT LINK EXECUTABLE "fusermount": library "libandroid-support.so" not found 2020/12/06 14:19:50 Fatal error: failed to mount FUSE fs: fusermount: signal: aborted

sotitrox avatar Dec 06 '20 14:12 sotitrox

I got it working following this video https://www.youtube.com/watch?v=nAkLJqFnxC8. He uses rclonew, which i haven't seen anywhere else. None of the solutions of this thread worked for me.

donmerendolo avatar Dec 07 '20 03:12 donmerendolo

@Baldyshugga

Yes, the full steps I took were

  1. Uninstall rclone on android device, reboot
  2. Run rclone on the PC to generate a .config file
  3. Copy over the config file from the PC to the .rclone directory on android
  4. Install rclone on android

I can confirm this works!

Edit: Fix double quote

Divkix avatar Jan 13 '21 02:01 Divkix