What is the problem you are having with rclone?
I am using rclone as a server for restic with command "rclone serve restic ..."
I have set up two nearly identical Ubuntu 24 hosts: rs1 and rs2
First I have installed rs1 and then cloned it to rs2.
On rs1 rclone runs perfectly, on rs2 it fails with the error message (in rclone.log):
2025/05/21 15:32:53 Failed to create file system for "rs2:/home/restic/data/": didn't find section in config file
Run the command 'rclone version' and share the full output of the command.
restic@rs2:~: rclone version
rclone v1.60.1-DEV
- os/version: ubuntu 24.04 (64 bit)
- os/kernel: 6.8.0-60-generic (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.2
- go/linking: dynamic
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
local NFS:
restic@rs2:~: df -HT /home/restic/data
Filesystem Type Size Used Avail Use% Mounted on
tik-nfs-test:/tik_nfs_test_restic nfs 11T 121G 11T 2% /nfs/restic
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
/usr/bin/rclone serve restic --addr rs2.tik.uni-stuttgart.de:8000 --log-file /home/restic/rclone.log --log-level NOTICE --min-tls-version tls1.3 --htpasswd /home/restic/data/.htpasswd --private-repos --cert /home/restic/data/public_key --key /home/restic/data/private_key rs2:/home/restic/data/
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
'rclone config redacted' is not availbe with Ubuntu 24, I am cnot able to upgrade it.
A log from the command that you were trying to run with the -vv
flag
2025/05/21 15:51:45 DEBUG : rclone: Version "v1.60.1-DEV" starting with parameters ["/usr/bin/rclone" "-vv" "serve" "restic" "--addr" "rs2.tik.uni-stuttgart.de:8000" "--log-file" "/home/restic/rclone.log" "--min-tls-version" "tls1.3" "--htpasswd" "/home/restic/data/.htpasswd" "--private-repos" "--cert" "/home/restic/data/public_key" "--key" "/home/restic/data/private_key" "rs2:/home/restic/data/"]
2025/05/21 15:51:45 DEBUG : Creating backend with remote "rs2:/home/restic/data/"
2025/05/21 15:51:45 DEBUG : Using config file from "/home/restic/.config/rclone/rclone.conf"
2025/05/21 15:51:45 Failed to create file system for "rs2:/home/restic/data/": didn't find section in config file
After copying the last output I have found a problem:
restic@rs2:~: cat .config/rclone/rclone.conf
[rs1]
type = local
copy_links = true
case_sensitive = true
no_preallocate = true
The tag [rs1] is wrong, it should be [rs2] !
After changing [rs1] to [rs2] I am able to start rclone in restic server mode
Now my question is: which command has created $HOME/.config/rclone/rclone.conf ?
Probably I have done it by myself but forgot to write it into my documentation.