Failed to create file system for "djpuke:": didn't find section in config file

What is the problem you are having with rclone?

I cannot copy or bisync from local drive to google drive, although I can touch files so the connection is working.
Maybe Important: Im running rclone Snap on Ubuntu Core on a Raspi5. Thats why I have to use sudo rclone to copy, otherwise the permissions are denied for the source file. I assume there is the problem or something wrong with the config file, but the other commands work well. The guide to setup rclone is so good, that even my noob ass has got it working - kind of.

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

hondivia@raspi5-paperless:~$ rclone version
rclone v1.67.0
- os/version: ubuntu-core 22 (64 bit)
- os/kernel: 6.8.0-1007-raspi (aarch64)
- os/type: linux
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.22.4
- go/linking: static
- go/tags: snap

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

Google Drive

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

sudo rclone copy /home/hondivia/testfile123 djpuke:

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

hondivia@raspi5-paperless:~/snap/rclone/505/.config/rclone$ rclone config redacted
[djpuke]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
### Double check the config for sensitive info before posting publicly

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

hondivia@raspi5-paperless:~/snap/rclone/505/.config/rclone$ sudo rclone -vv copy /home/hondivia/testfile123 djpuke:
2024/07/10 18:06:53 DEBUG : rclone: Version "v1.67.0" starting with parameters ["/snap/rclone/505/bin/rclone" "-vv" "copy" "/home/hondivia/testfile123" "djpuke:"]
2024/07/10 18:06:53 DEBUG : Creating backend with remote "/home/hondivia/testfile123"
2024/07/10 18:06:53 NOTICE: Config file "/root/snap/rclone/505/.config/rclone/rclone.conf" not found - using defaults
2024/07/10 18:06:53 DEBUG : Creating backend with remote "djpuke:"
2024/07/10 18:06:53 Failed to create file system for "djpuke:": didn't find section in config file

More Information and other commands, that work great

hondivia@raspi5-paperless:~$ rclone about djpuke:
Total:   100 GiB
Used:    20.269 MiB
Free:    99.967 GiB
Trashed: 135.299 KiB
Other:   13.927 MiB

hondivia@raspi5-paperless:~/snap/rclone/505/.config/rclone$ rclone config file
Configuration file is stored at:
/home/hondivia/snap/rclone/505/.config/rclone/rclone.conf
hondivia@raspi5-paperless:~$ rclone touch djpuke:testordner/lookatme2
hondivia@raspi5-paperless:~$ rclone tree djpuke:
/
├── testfile
└── testordner
    ├── lookatme
    └── lookatme2

1 directories, 3 files

Uninstall snap version and install rclone directly from rclone site.

Snap installation has so many limitations that for utility program like rclone is close to useless IMO.

I would, but I run Ubuntu Core, I can only use Snap Versions.
But if that is a limitation of Snap, I would consider deleting everything and starting over.

Try to specify rclone config location explicitly - might be enough for rclone copy

Add:

--config /home/hondivia/snap/rclone/505/.config/rclone/rclone.conf

When you use sudo then rclone is looking for it somewhere else.

You are right - it doesn't work either but the path is correct I think.
Root cannot access the conf file

hondivia@raspi5-paperless:~$ sudo rclone -vv --config /home/hondivia/snap/rclone/505/.config/rclone/rclone.conf copy /home/hondivia/testfile123 djpuke:
2024/07/10 18:35:59 DEBUG : rclone: Version "v1.67.0" starting with parameters ["/snap/rclone/505/bin/rclone" "-vv" "--config" "/home/hondivia/snap/rclone/505/.config/rclone/rclone.conf" "copy" "/home/hondivia/testfile123" "djpuke:"]
2024/07/10 18:35:59 DEBUG : Creating backend with remote "/home/hondivia/testfile123"
2024/07/10 18:35:59 Failed to load config file "/home/hondivia/snap/rclone/505/.config/rclone/rclone.conf": open /home/hondivia/snap/rclone/505/.config/rclone/rclone.conf: permission denied

Why do you have to use sudo when you copy files from your home?

I guess that by using such restrictive environment it is exactly what you do not want to do.

cannot access the fiels otherwise

hondivia@raspi5-paperless:~$ rclone -vv copy /home/hondivia/testfile123 djpuke:
2024/07/10 18:46:14 DEBUG : rclone: Version "v1.67.0" starting with parameters ["/snap/rclone/505/bin/rclone" "-vv" "copy" "/home/hondivia/testfile123" "djpuke:"]
2024/07/10 18:46:14 DEBUG : Creating backend with remote "/home/hondivia/testfile123"
2024/07/10 18:46:14 DEBUG : Using config file from "/home/hondivia/snap/rclone/505/.config/rclone/rclone.conf"
2024/07/10 18:46:14 DEBUG : fs cache: adding new entry for parent of "/home/hondivia/testfile123", "/home/hondivia"
2024/07/10 18:46:14 DEBUG : Creating backend with remote "djpuke:"
2024/07/10 18:46:14 DEBUG : Google drive root '': 'root_folder_id = 0ADMz8Vd_C10hUk9PVA' - save this in the config to speed up startup
2024/07/10 18:46:14 DEBUG : testfile123: Need to transfer - File not found at Destination
2024/07/10 18:46:14 ERROR : testfile123: Failed to copy: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:14 ERROR : Attempt 1/3 failed with 1 errors and: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:15 DEBUG : testfile123: Need to transfer - File not found at Destination
2024/07/10 18:46:15 ERROR : testfile123: Failed to copy: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:15 ERROR : Attempt 2/3 failed with 1 errors and: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:15 DEBUG : testfile123: Need to transfer - File not found at Destination
2024/07/10 18:46:15 ERROR : testfile123: Failed to copy: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:15 ERROR : Attempt 3/3 failed with 1 errors and: failed to open source object: open /home/hondivia/testfile123: permission denied
2024/07/10 18:46:15 INFO  :
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.1s

2024/07/10 18:46:15 DEBUG : 7 go routines active
2024/07/10 18:46:15 Failed to copy: failed to open source object: open /home/hondivia/testfile123: permission denied

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