What is the problem you are having with rclone?
i am trying to mount rclone on startup
What is your rclone version (output from rclone version
)
rclone v1.50.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
ubuntu 18.04.3
Which cloud storage system are you using? (eg Google Drive)
privet ftp share whit crypto
my source's
Here is the output, unless im reading this wrong?
root@ubuntu:~# systemctl enable systemd-networkd-wait-online.service
root@ubuntu:~#
my config
[Unit]
Description=rclone backup FUSE mount
Documentation=http://rclone.org/docs/
AssertPathIsDirectory=/media/secure
After=networkd-wait-online.service
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
--config=/root/.config/rclone/rclone.conf \
--allow-other \
--cache-tmp-upload-path=/tmp/rclone/upload \
--cache-chunk-path=/tmp/rclone/chunks \
--cache-workers=8 \
--cache-writes \
--cache-dir=/tmp/rclone/vfs \
--cache-db-path=/tmp/rclone/db \
--no-modtime \
--drive-use-trash \
--stats=0 \
--checkers=16 \
--bwlimit=40M \
--dir-cache-time=60m \
--cache-info-age=60m secure: /media/secure
ExecStop=/usr/bin/fusermount -uz /media/secure
Restart=always
RestartSec=10
[Install]
Wants=networkd-wait-online.service
error
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
In case of template units, the unit is meant to be enabled with some
if i mount i via the command (rclone --vfs-cache-mode writes mount secure: /media/secure) it works
ncw
(Nick Craig-Wood)
November 13, 2019, 1:05pm
2
I have
[Install]
WantedBy=multi-user.target
Otherwise my systemd config is very similar.
I think adding the WantedBy
line will probably fix it (not a systemd expert!)
The best thing is to use a line in there
--log-level INFO \
--log-file /tmp/rclone.log
And check what the error is mounting in the log file it creates as you have a typo somewhere, but it's not readily apparent.
wessel1512:
--checkers=16 \
That does nothing on a mount and and can be removed.
wessel1512:
Type=simple
You'd want Type=notify rather than simple.
noting change for me change
no log file in /tmp/
also nothing in the syslog
Did you:
systemctl daemon-reload
And start it up again?
What’s
systemctl status of the service show?
same error after daemon-reload
systemctl status
â—Ź rclone-mount.service - rclone backup FUSE mount
Loaded: loaded (/etc/systemd/system/rclone-mount.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: http://rclone.org/docs/
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:24: Unknown lvalue '--cache-info-age' in section 'Service'
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:30: Unknown lvalue 'Wants' in section 'Install'
Looks like you have some typos in the file at lines 22 , 24 and 30.
Can you post the latest file in the code block with the backtics `
like this
what do i need to chage i just copied form
on line 22 Type=
on line 24 --config=/root/.config/rclone/rclone.conf
on line 30 --cache-dir=/tmp/rclone/vfs \
full config
# Rclone mount on boot ( service file template - add aditional rclone parameters )
# Copy file to: /etc/systemd/system
# Set remote name (current acdcrypt), path to mount and User,Group (current plex)
# Register new service by typing:
# sudo systemctl daemon-reload
# sudo systemctl enable rclone-mount.service
# systemctl start rclone-mount.service
# systemctl enable NetworkManager-wait-online.service
# Usage:
# To unmount drive use
# systemctl stop rclone-mount.service
# To mount use:
# systemctl start rclone-mount.service
[Unit]
Description=rclone backup FUSE mount
Documentation=http://rclone.org/docs/
#AssertPathIsDirectory=/media/secure
After=multi-user.target
[Service]
Type=
ExecStart=/usr/bin/rclone mount \
--config=/root/.config/rclone/rclone.conf \
--allow-other \
--cache-tmp-upload-path=/tmp/rclone/upload \
--cache-chunk-path=/tmp/rclone/chunks \
--cache-workers=8 \
--cache-writes \
--cache-dir=/tmp/rclone/vfs \
--cache-db-path=/tmp/rclone/db \
--no-modtime \
--drive-use-trash \
--stats=0 \
--dir-cache-time=60m \
--log-level INFO \
--log-file /tmp/rclone.log
--cache-info-age=60m secure: /media/secure
ExecStop=/usr/bin/fusermount -uz /media/secure
Restart=always
RestartSec=10
[Install]
Wants=multi-user.target
You put to it into a code block by using 3 backtics at the line before and after.
Three of these `
like this
And paste your service file into that.
can any one help me further white this problem
maybe a example config
That line is missing a \
If you edit a post, no one gets notified so you won't get a reply as I don't read back each post to see if something was changed.
can somebody give an example configuration
my example has to many errors in it
have now a error on line 29
wessel1512:
--cache-writes \
Can you post the current file you have.
# Rclone mount on boot ( service file template - add aditional rclone parameters )
# Copy file to: /etc/systemd/system
# Set remote name (current acdcrypt), path to mount and User,Group (current plex)
# Register new service by typing:
# sudo systemctl daemon-reload
# sudo systemctl enable rclone-mount.service
# systemctl start rclone-mount.service
# systemctl enable NetworkManager-wait-online.service
# Usage:
# To unmount drive use
# systemctl stop rclone-mount.service
# To mount use:
# systemctl start rclone-mount.service
[Unit]
Description=rclone backup FUSE mount
Documentation=http://rclone.org/docs/
#AssertPathIsDirectory=/media/secure
After=multi-user.target
[Service]
Type=
ExecStart=/usr/bin/rclone mount \
--config=/root/.config/rclone/rclone.conf \
--allow-other \
--cache-tmp-upload-path=/tmp/rclone/upload \
--cache-chunk-path=/tmp/rclone/chunks \
--cache-workers=8 \
--cache-writes \
--cache-dir=/tmp/rclone/vfs \
--cache-db-path=/tmp/rclone/db \
--no-modtime \
--drive-use-trash \
--stats=0 \
--dir-cache-time=60m \
--log-level INFO \
--log-file /tmp/rclone.log \
--cache-info-age=60m secure: /media/secure
ExecStop=/usr/bin/fusermount -uz /media/secure
Restart=always
RestartSec=10
[Install]
Wants=multi-user.target
What's the error when you start it?
Does it write to /tmp/rclone.log ?
no it dus not do that
same more error
â—Ź rclone-mount.service - rclone backup FUSE mount
Loaded: loaded (/etc/systemd/system/rclone-mount.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: http://rclone.org/docs/
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:24: Unknown lvalue '--cache-info-age' in section 'Service'
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:30: Unknown lvalue 'Wants' in section 'Install'
wessel1512:
Wants=multi-user.target
Should be:
[Install]
WantedBy=multi-user.target
wessel1512:
Type=
Should be:
Type=notify
Fix those, run systemctl daemon-reload
and post the results.
no
â—Ź rclone-mount.service - rclone backup FUSE mount
Loaded: loaded (/etc/systemd/system/rclone-mount.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: http://rclone.org/docs/
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:24: Unknown lvalue '--cache-info-age' in section 'Service'
Nov 13 14:37:00 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:30: Unknown lvalue 'Wants' in section 'Install'
Nov 13 14:58:50 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 13 14:58:50 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:24: Unknown lvalue '--cache-info-age' in section 'Service'
Nov 13 14:58:50 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:30: Unknown lvalue 'Wants' in section 'Install'
Nov 19 09:21:20 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 19 09:21:20 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:29: Unknown lvalue 'Wants' in section 'Install'
Nov 19 09:21:48 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:22: Failed to parse service type, ignoring:
Nov 19 09:21:48 xenorchestra systemd[1]: /etc/systemd/system/rclone-mount.service:29: Unknown lvalue 'Wants' in section 'Install'