I believe its supposed to be gdrive lowercase.
no point in systemd, until you get the command working on the command line.
get the rclone mount
working on the command lne first, not logic to trying systemd now, ok?
running this.
root@raspberrypi:/mnt/gdrive# rclone mount gdrive: /mnt/gdrive --allow-non-empty
nothing shows up in /mnt/gdrive folder
should not use that flag
try
rclone mount gdrive: /mnt/gdrive --allow-other -vv
root@raspberrypi:/mnt/gdrive# rclone mount gdrive: /mnt/gdrive --allow-other -vv
2022/11/22 19:30:37 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "mount" "gdrive:" "/mnt/gdrive" "--allow-other" "-vv"]
2022/11/22 19:30:37 DEBUG : Creating backend with remote "gdrive:"
2022/11/22 19:30:37 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/22 19:30:38 DEBUG : Google drive root '': 'root_folder_id = 0AB8_V9ccqTE2Uk9PVA' - save this in the config to speed up startup
2022/11/22 19:30:38 Fatal error: directory already mounted, use --allow-non-empty to mount anyway: /mnt/gdrive
so its saying its mounted. hmm
you must be already running another instance of rclone mount
try
killall rclone
and then
run the rclone mount command again.
Looks like its still stuck trying to mount.
root@raspberrypi:/mnt/gdrive# systemctl stop rclone
root@raspberrypi:/mnt/gdrive# killall rclone
rclone: no process found
root@raspberrypi:/mnt/gdrive# rclone mount gdrive: /mnt/gdrive -vv
2022/11/22 19:36:31 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "mount" "gdrive:" "/mnt/gdrive" "-vv"]
2022/11/22 19:36:31 DEBUG : Creating backend with remote "gdrive:"
2022/11/22 19:36:31 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/22 19:36:31 DEBUG : Google drive root '': 'root_folder_id = 0AB8_V9ccqTE2Uk9PVA' - save this in the config to speed up startup
2022/11/22 19:36:31 DEBUG : Google drive root '': Mounting on "/mnt/gdrive"
2022/11/22 19:36:31 DEBUG : : Root:
2022/11/22 19:36:31 DEBUG : : >Root: node=/, err=<nil>
that is not the correct command
rclone mount gdrive: /mnt/gdrive --allow-other -vv
hang on let me fix it
hey its showing stuff again!
so can I reboot my pi so it can run it with the systemctl service?
good, rclone mount
is working on the command line.
now you need to get the systemd working
and please try to enclose your output with three backticks so it is formatted correctly.,
so it looks like this
root@raspberrypi:/mnt/gdrive# systemctl stop rclone
root@raspberrypi:/mnt/gdrive# killall rclone
rclone: no process found
root@raspberrypi:/mnt/gdrive# rclone mount gdrive: /mnt/gdrive -vv
2022/11/22 19:36:31 DEBUG : rclone: Version "v1.60.1" starting with parameters ["rclone" "mount" "gdrive:" "/mnt/gdrive" "-vv"]
2022/11/22 19:36:31 DEBUG : Creating backend with remote "gdrive:"
2022/11/22 19:36:31 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2022/11/22 19:36:31 DEBUG : Google drive root '': 'root_folder_id = 0AB8_V9ccqTE2Uk9PVA' - save this in the config to speed up startup
2022/11/22 19:36:31 DEBUG : Google drive root '': Mounting on "/mnt/gdrive"
2022/11/22 19:36:31 DEBUG : : Root:
2022/11/22 19:36:31 DEBUG : : >Root: node=/, err=
So do I need to change anything in my systemd service that autostarts my rclone?
run the systemd and post the ouput
and post the systemd service file.
please try to enclose your output with three backticks so it is formatted correctly.,
root@raspberrypi:/home/homebridge# systemctl start rclone
Job for rclone.service failed because the control process exited with error code.
See "systemctl status rclone.service" and "journalctl -xe" for details.
root@raspberrypi:/home/homebridge# systemctl status rclone.service
● rclone.service - Google Drive (rclone)
Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2022-11-22 19:49:43 CST; 4s ago
Process: 21046 ExecStart=/usr/local/bin/rclone mount --config=/root/.config/rclone/rclone.conf --allow-other --vfs-cache-mode=full --cache-dir=/tmp/rclone/vfs --no-modtime >
Main PID: 21046 (code=exited, status=1/FAILURE)
CPU: 214ms
Nov 22 19:49:43 raspberrypi systemd[1]: rclone.service: Failed with result 'exit-code'.
Nov 22 19:49:43 raspberrypi systemd[1]: Failed to start Google Drive (rclone).
lines 1-9/9 (END)
# /etc/systemd/system/rclone.service
[Unit]
Description=Google Drive (rclone)
AssertPathIsDirectory=/mnt/gdrive
After=plexdrive.service
[Service]
Type=notify
ExecStart=/usr/local/bin/rclone mount \
--config=/root/.config/rclone/rclone.conf \
--allow-other \
--vfs-cache-mode=full \
--cache-dir=/tmp/rclone/vfs \
--no-modtime \
--drive-use-trash \
--stats=0 \
--bwlimit=40M \
--dir-cache-time=60m \
ExecStop=/bin/fusermount -u /mnt/gdrive
Restart=always
RestartSec=10
[Install]
WantedBy=default.target
you forgot
the remote gdrive:
and
the mountpoint /mnt/gdrive
as a test, try a simple one line command
ExecStart=/usr/local/bin/rclone mount gdrive: /mnt/gdrive --config=/root/.config/rclone/rclone.conf --allow-other
I just need to add under
--dir-cache-time=60m \
--gdrive: /mnt/gdrive \
--gdrive: /mnt/gdrive \
should be
gdrive: /mnt/gdrive
please do not send me private messages.
please use the problem forum, ok?
this very simple systemd works for me. might use it as a template for now.
[Unit]
Description=rclone.gdrive.service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
RestartSec=5
Restart=on-failure
ExecStart=/usr/bin/rclone mount gdrive: /rclone/mountpoints/gdrive --config=/root/.config/rclone/rclone.conf --allow-other
ExecStop=/bin/fusermount -uz /rclone/mountpoints/gdrive
[Install]
WantedBy=multi-user.target
and i tweaked it for your setup
[Unit]
Description=rclone.gdrive.service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
RestartSec=5
Restart=on-failure
ExecStart=/usr/local/bin/rclone mount gdrive: /mnt/gdrive --config=/root/.config/rclone/rclone.conf --allow-other
ExecStop=/bin/fusermount -uz /mnt/gdrive
[Install]
WantedBy=multi-user.target
Hello, I ask in advance to excuse my old, bad school English. I am a German absolute newcomer to rclone.
I have now adopted the above configuration of asdffdsa on my Synology DS220+. Is this the best option for Emby? Had already tried various things, but often then get freezer in the middle of the 4K movie. This configuration here is being tested right now. And as I'm just discovering, I'm getting these hangs here as well.
Could you help me out please?