I am attempting to get Rclone to mount my Google Drive automatically using Task Scheduler.
I setup a task to run on boot from root user of synology. If I manually run the task using task scheduler it has no trouble.
If I restart server so that task should fire on its on it does not mount properly.
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
os/version: unknown
os/kernel: 4.4.180+ (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.17.2
go/linking: static
go/tags: none
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)
--- from the terminal command line, as root, can you run the rclone mount command?
--- change your script to include a modprobe fuse, save that to a text file
I am sorry, I am not sure what I would add to my script to include a modprobe fuse. I am also not sure what my synology root password is..
This is what is in mountrclone.sh
#!/bin/bash
/usr/bin/rclone mount google: /volume1/data/gdrive --config /volume1/homes/Nicholas/.config/rclone/rclone.conf --log-level=DEBUG --log-file=/volume1/data/scripts/rclone.log --buffer-size=512M --allow-other --allow-non-empty &
Also if this helps. This is the log from the Task Scheduler:
2022/02/18 16:26:11 DEBUG : Home directory lookup failed and cannot be used as configuration location: exec: "getent": executable file not found in $PATH
I can see my drive mounted successfully as well. I can confirm it mounts perfectly fine using the root user on the command line. Just not when I set it up as a boot process using the root user?
When I set the startup command under my username this is the log:
2022/02/18 17:09:24 DEBUG : Google drive root '': Checking for changes on remote
2022/02/18 17:09:35 DEBUG : /volume1/data/gdrive: Unmounted externally. Just exit now.
2022/02/18 17:09:35 DEBUG : rclone: Version "v1.57.0" finishing with parameters ["/usr/bin/rclone" "mount" "google:" "/volume1/data/gdrive" "--config" "/volume1/homes/Nicholas/.config/rclone/rclone.conf" "--log-level=DEBUG" "--log-file=/volume1/data/scripts/rclone.log" "--buffer-size=512M" "--allow-other" "--allow-non-empty"]
2022/02/18 17:11:19 DEBUG : rclone: Version "v1.57.0" starting with parameters ["/usr/bin/rclone" "mount" "google:" "/volume1/data/gdrive" "--config" "/volume1/homes/Nicholas/.config/rclone/rclone.conf" "--log-level=DEBUG" "--log-file=/volume1/data/scripts/rclone.log" "--buffer-size=512M" "--allow-other" "--allow-non-empty"]
2022/02/18 17:11:19 DEBUG : Creating backend with remote "google:"
2022/02/18 17:11:19 Failed to load config file "/volume1/homes/Nicholas/.config/rclone/rclone.conf": open /volume1/homes/Nicholas/.config/rclone/rclone.conf: permission denied
This is the log from the startup
2022/02/18 17:11:19 DEBUG : Home directory lookup failed and cannot be used as configuration location: exec: "getent": executable file not found in $PATH