[Unit]
Description=RClone Service
Wants=network-online.target
After=network-online.target
[Service]
Type=notify
Environment=RCLONE_CONFIG=/home/marcodantonio/.config/rclone/rclone.conf
KillMode=none
RestartSec=5
ExecStart=/usr/bin/rclone mount gcrypt: /home/marcodantonio/GD \
# This is for allowing users other than the user running rclone access to the mount
--allow-other \
# Google Drive is a polling remote so this value can be set very high and any changes are detected via polling.
--dir-cache-time 1000h \
# The log level output
--log-level INFO \
# I reduce the poll interval down to 15 seconds as this makes changes appear fast the API quotas per day are huge
--poll-interval 15s \
# This is setting the file permission on the mount to user and group have the same access and other can read
--umask 002 \
# This sets up the remote control daemon so you can issue rc commands locally
--rc \
# This is the default port it runs on
--rc-addr :5572 \
# no-auth is used as no one else uses my server and it is not a shared seedbox
--rc-no-auth \
# The local disk used for caching
--cache-dir=/home/marcodantonio/cache \
# This is used for caching files to local disk for streaming
--vfs-cache-mode full \
# This limits the cache size to the value below
--vfs-cache-max-size 30G \
# This limits the age in the cache if the size is reached and it removes the oldest files first
--vfs-cache-max-age 128h \
# This sets a per file bandwidth control and I limit this to a little bigger than my largest bitrate I'd want to play
--bwlimit-file 16M
ExecStop=/bin/fusermount -uz /home/marcodantonio/GD
ExecStartPost=/usr/bin/rclone rc vfs/refresh recursive=true --rc-addr 127.0.0.1:5572 _async=true
Restart=on-failure
User=marcodantonio
Group=sudo
[Install]
WantedBy=multi-user.target
i have corrected the file and rebooted. But nothing changed... my GD folder is in home/marcodantonio/GD, is correct? Or the file is in another position and i can't find it?
sudo /usr/bin/rclone mount gcrypt: /home/marcodantonio/GD --allow-other --dir-cache-time 1000h --log-level INFO --poll-interval 15s --umask 002 --rc --rc-no-auth --cache-dir=/home/marcodantonio/cache --vfs-cache-mode full --vfs-cache-max-size 30G --vfs-cache-max-age 128h --bwlimit-file 16M -vv --log-file rclone.log
the log is:
2020/10/28 12:46:29 Failed to start remote control: start server failed: listen tcp 127.0.0.1:5572: bind: address already in use
2020/10/28 12:48:23 Can't set -v and --log-level
Wait the first time i ran the program without -vv because i typed --vv
so i need first to stop the mount
i ran the command above:
sudo /usr/bin/rclone mount gcrypt: /home/marcodantonio/GD --allow-other --dir-cache-time 1000h --log-level INFO --poll-interval 15s --umask 002 --rc --rc-no-auth --cache-dir=/home/marcodantonio/cache --vfs-cache-mode full --vfs-cache-max-size 30G --vfs-cache-max-age 128h --bwlimit-file 16M -vv --log-file rclone.log
and if i open the rclone.log there is:
2020/10/28 12:46:29 Failed to start remote control: start server failed: listen tcp 127.0.0.1:5572: bind: address already in use
2020/10/28 12:48:23 Can't set -v and --log-level
2020/10/28 12:53:52 Can't set -v and --log-level
2020/10/28 13:13:56 Can't set -v and --log-level
On screen i don't see anything
if i type rclone lsd GD:/ i see my file but i can't find it home/marcodantonio/GD
what user are you running rclone as, that user needs to have file permissions to see that file.
you can add this --config=/root/.config/rclone/rclone.conf to your command
first, make sure you can do a rclone ls GD:
then test with rclone ls gcrypt:
then try rclone mount