Failed to create file system for ... didn't find section in config file

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

I'm not able to copy files from my Synology to my Gdrive probably because it's using the wrong config file. The "rclone config" shows the correct remote.

Run the command 'rclone version' and share the full output of the command.

rclone v1.67.0

  • os/version: unknown
  • os/kernel: 4.4.302+ (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

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

Google Drive (to shared drive)

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

sudo rclone copy  --progress --exclude-from "/volume1/homes/user/exclusion_list.txt" "REDACTED" "gdrive:REDACTED"  --bwlimit 8M --ignore-existing

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id = ```

A log from the command that you were trying to run with the -vv flag

2024/07/19 17:42:42 INFO : Starting bandwidth limiter at 8Mi Byte/s
2024/07/19 17:42:42 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "copy" "--progress" "--exclude-from" "/volume1/homes/user/exclusion_list.txt" "REDACTED" "gdrive:REDACTED" "--bwlimit" "8M" "--ignore-existing" "-vv"]
2024/07/19 17:42:42 DEBUG : Creating backend with remote "REDACTED"
2024/07/19 17:42:42 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/07/19 17:42:42 DEBUG : Creating backend with remote "gdrive:REDACTED"
2024/07/19 17:42:42 Failed to create file system for "gdrive:REDACTED": didn't find section in config file

welcome to the forum,

might have more than one config file, one for each user.

here are some commands to try
rclone config file -vv
rclone config redacted -vv
rclone config redacted -vv --config=/root/.config/rclone/rclone.conf

filippo@Archivio:~$ rclone config file -vv

2024/07/22 12:24:15 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "config" "file" "-vv"]

Configuration file is stored at:

/var/services/homes/filippo/.config/rclone/rclone.conf

2024/07/22 12:24:15 DEBUG : rclone: Version "v1.67.0" finishing with parameters ["rclone" "config" "file" "-vv"]

filippo@Archivio:~$ rclone config redacted -vv

2024/07/22 12:24:29 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "config" "redacted" "-vv"]

2024/07/22 12:24:29 DEBUG : Using config file from "/var/services/homes/filippo/.config/rclone/rclone.conf"

[gdrive_archivio_ac]

type = drive

client_id = XXX

client_secret = XXX

scope = drive

token = XXX

team_drive = XXX

root_folder_id =

Double check the config for sensitive info before posting publicly

2024/07/22 12:24:29 DEBUG : rclone: Version "v1.67.0" finishing with parameters ["rclone" "config" "redacted" "-vv"]

filippo@Archivio:~$ rclone config redacted -vv --config=/root/.config/rclone/rclone.conf

2024/07/22 12:24:59 DEBUG : rclone: Version "v1.67.0" starting with parameters ["rclone" "config" "redacted" "-vv" "--config=/root/.config/rclone/rclone.conf"]

2024/07/22 12:24:59 Failed to load config file "/root/.config/rclone/rclone.conf": open /root/.config/rclone/rclone.conf: permission denied

filippo@Archivio:~$

Is it now clear for you what you are doing wrong?

Nope. If i launch a copy command it says:

2024/07/22 12:27:54 ERROR : Local file system at /volume1/REDACTED: error reading source root directory: directory not found

  1. you have to run rclone as an user with read access rights to data you want to copy...

  2. when you run rclone as a different user than one you used to create config file you have to make sure that either you copy config file to relevant location or specify its location explicitly by using --config flag

For above command you have to add:

--config /var/services/homes/filippo/.config/rclone/rclone.conf

because you run it as root not as filippo - so config location is different.

that's strange. If i use rclone config i can see the correct config file and remote...

No it is not:)

try:

rclone config

vs.

sudo rclone config

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