i keep the the rclone executable and the rclone.conf in the same folder.
hello and welcome to the forum,
please start a new post.
and
delete that post from this thread.
thanks
but my rclone_executable and rclone.conf also in the /usr/bin
i am not a linux expert, but it seems clear that the problem is a linux file permission issue.
that rclone cannot access that config file.
never saw a config fle in /usr/bin
did you read the link i shared?
https://rclone.org/docs/#config-config-file
so move the config file.
I move "rclone","rclone.conf","rclone_excutable" from /usr/bin to /home/rclone (I created), but when I reboot , it say
pi@raspberrypi:~ $ systemctl status rclone
● rclone.service - rclone
Loaded: loaded (/usr/lib/systemd/system/rclone.service; enabled; vendor prese
Active: failed (Result: exit-code) since Sat 2020-10-24 22:22:46 CST; 17s ago
Process: 382 ExecStart=/home/rclone/rclone mount joy_drive: /home/google_drive
Main PID: 382 (code=exited, status=1/FAILURE)
10月 24 22:22:42 raspberrypi systemd[1]: Started rclone.
10月 24 22:22:46 raspberrypi rclone[382]: Failed to create file system for "joy_
10月 24 22:22:46 raspberrypi systemd[1]: rclone.service: Main process exited, co
10月 24 22:22:46 raspberrypi systemd[1]: rclone.service: Failed with result 'exi
lines 1-10/10 (END)...skipping...
● rclone.service - rclone
Loaded: loaded (/usr/lib/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2020-10-24 22:22:46 CST; 17s ago
Process: 382 ExecStart=/home/rclone/rclone mount joy_drive: /home/google_drive --allow-other --vfs-cache-mode writes (code=exited, status=1/FAILURE)
Main PID: 382 (code=exited, status=1/FAILURE)
10月 24 22:22:42 raspberrypi systemd[1]: Started rclone.
10月 24 22:22:46 raspberrypi rclone[382]: Failed to create file system for "joy_drive:": couldn't find root directory ID: Get "https://www.googleapis.com/dri
10月 24 22:22:46 raspberrypi systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE
10月 24 22:22:46 raspberrypi systemd[1]: rclone.service: Failed with result 'exit-code'.
-
as i mentioned, test with
rclone ls
, notrclone mount
, notsystemd
, and do not reboot.
so do arclone ls
-
i would leave the rclone execuable in /usr/bin
-
do a
rclone config file
ok , I copy rclone to /usr/bin
when I do "rclone config file" , it say
rclone config file
Configuration file is stored at:
/root/.config/rclone/rclone.conf
And I don't know what you mean about" test with rclone ls " , just do "rclone ls " in the terminal ?
- move the rclone.conf file to
/root/.config/rclone/
-
rclone ls
and the name of the remote. sorclone ls joy_drive:
I do "rclone ls joy_drive:", and it did't give me reaction
root@raspberrypi:/home/rclone# rclone ls joy_drive:
root@raspberrypi:/home/rclone#
do you have any files in joy_drive:
?
sorry, try rclone ls joy_drive: -vv
yes, I have a folder in joy_drive:
I do "rclone ls joy_drive: -vv", and it say
root@raspberrypi:/home/rclone# rclone ls joy_drive: -vv
2020/10/24 22:52:35 DEBUG : rclone: Version "v1.54.0-beta.4816.a86cedbc2" starti ng with parameters ["rclone" "ls" "joy_drive:" "-vv"]
2020/10/24 22:52:35 DEBUG : Using config file from "/usr/bin/rclone.conf"
2020/10/24 22:52:35 DEBUG : Creating backend with remote "joy_drive:"
2020/10/24 22:52:41 DEBUG : Google drive root '': root_folder_id = "*********" - save this in the config to speed up startup
2020/10/24 22:52:42 DEBUG : 4 go routines active
that looks good.
i think the problem with systemd, is you using the wrong path for rclone.
ExecStart=/home/rclone/rclone
, but rclone is on /usr/bin
from the command line, try
rclone mount joy_drive: /home/google_drive --allow-other
Should I delete /usr/bin/rclone.conf ?
yes, delete it.
read my last post, try rclone mount
it say
root@raspberrypi:/home/pi/Desktop# rclone mount joy_drive: /home/google_drive -- allow-other
2020/10/24 23:00:58 Fatal error: Directory is not empty: /home/google_drive If y ou want to mount it anyway use: --allow-non-empty option
good, the mount command is working, now we need to tweak it.
as the per the error, the mount folder should be empty.
I try again and it say
pi@raspberrypi:~ $ rclone mount joy_drive: /home/google_drive --allow-other
2020/10/24 23:05:45 mount helper error: fusermount: user has no write access to mountpoint /home/google_drive
2020/10/24 23:05:45 Fatal error: failed to mount FUSE fs: fusermount: exit statu s 1
again, that seems like a liunx permission issue, not rclone issue.
try chmod 777 /home/google_drive
and then run mount command
I do that , but it doesn't give me reation
root@raspberrypi:/home/pi# chmod 777 /home/google_drive
root@raspberrypi:/home/pi#
run the mount command?