Failed to create file system for ":": config name contains invalid charact

What is the problem you are having with rclone?

Hello,

since today my rclone service does not start anymore. As error message comes this:

2021/03/01 20:01:58 ERROR : error reading available plugins: Error creatin
Mar 01 20:01:58 rclone[960]: Failed to create file system for ":": config name contains invalid charact
Mar 01 20:01:58 systemd[1]: rclone.service: Main process exited, code=exited, status=1/FAILURE

I hope someone can help me with the problem?

What is your rclone version (output from rclone version)

rclone v1.54.0

  • os/arch: linux/amd64
  • go version: go1.15.7

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Linux

Which cloud storage system are you using? (eg Google Drive)

Two Google Drives crypt and cryptbatman

The command you were trying to run (eg rclone copy /tmp remote:tmp)

[Unit]
Description=rclone - rsync for cloud storage
Documentation=https://rclone.org/docs/
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service

[Service]
Type=notify
Restart=on-failure

; Create mount point target
PermissionsStartOnly=true
ExecStartPre=/bin/rm -rf /tmp/rclone
ExecStartPre=/bin/mkdir -p /mnt/%I
ExecStartPre=/bin/chown rclone:rclone /mnt/%I

; User and group the process will run as.
User=rclone
Group=rclone

; rclone start command.
ExecStart=/usr/bin/rclone mount \
  --config=/opt/rclone/rclone.conf \
  --allow-other \
  --allow-non-empty \
  --cache-db-purge \
  --buffer-size 32M \
  --use-mmap \
  --dir-cache-time 72h \
  --drive-chunk-size 16M \
  --timeout 1h \
  --vfs-cache-mode minimal \
  --vfs-read-chunk-size 128M \
  --vfs-read-chunk-size-limit 1G \
  --fast-list \
  --drive-skip-gdocs \
  --syslog \
  --cache-info-age 6h \
  --cache-chunk-size 10M \
  --cache-chunk-total-size 10G \
  --cache-db-path=/tmp/rclone/%I/db \
  --cache-tmp-upload-path=/tmp/rclone/%I/upload \
  --cache-chunk-path=/tmp/rclone/%I/chunks \
  --cache-dir=/tmp/rclone/%I/vfs \
  -v \
  %I: /mnt/%I

ExecReload=/bin/kill -USR1 $MAINPID
ExecStop=/bin/fusermount -uz /mnt/%I
KillMode=mixed
KillSignal=SIGTERM
TimeoutStopSec=5s

[Install]
WantedBy=multi-user.target

The rclone config contents with secrets removed.

[drive]
type = drive
client_id = .apps.googleusercontent.com
client_secret = 
scope = drive
token = 

[crypt]
type = crypt
remote = drive:rclone
filename_encryption = standard
directory_name_encryption = true
password =
password2 = 

[drivebatman]
type = drive
client_id = .apps.googleusercontent.com
client_secret = 
scope = drive
token = 

[cryptbatman]
type = crypt
remote = drivebatman:rclone2
filename_encryption = standard
directory_name_encryption = true
password = 
password2 = 

hello and welcome to the forum,

where did you get that rclone command from, seems out of date and a strange set of flags.
here at the forum, this is the recommend service file, from @Animosity022
https://github.com/animosity22/homescripts/blob/master/systemd/rclone.service

based on your config, some of the flags used do nothing on your mount command, as they are for the depreciated cache remote.
for example
--cache-tmp-upload-path
--cache-chunk-path
--cache-db-purge

-fast-list does nothing on a mount

--allow-non-empty, almost always not a good idea unless you are 1000% sure it is needed

Seems that %I in your service configuration evaluates to nothing, and the mount command effectively ends up something like this: rclone mount : /mnt/. Perhaps you miss the instance name part in your systemd configuration, although this is an area where I don't have much experience myself..

How else can i mount two rclone google drives in one script?

You are probably on the right track. I was just thinking, since the %I is empty, you have not correctly started two service instances with their own names.. Something like this: https://www.stevenrombauts.be/2019/01/run-multiple-instances-of-the-same-systemd-unit/
(sorry, I'm really on thin ice here, probably not being able to give you any help at all).

I have tried many things but nothing has worked permanently. It has now run a few months but then I had to restart the server and now nothing works. It's really frustrating because I don't know much about it. In Windows everything runs a little differently

Just remove the variables and use two service files instead.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.