Crontab - didn't find section in config file

What is the problem you are having with rclone?

I made a script with the following command:

  • /usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

If I run this script directly it will work normally. But now the time I put it on the crontab:

  • / 1 * * * * /root/gbk.sh> / dev / null 2 ​​>> /tmp/gbk.txt

Then he presents this error:

  • 2020/10/23 11:10:01 DEBUG: Creating backend with remote "/ root / test /"
  • 2020/10/23 11:10:01 NOTICE: Config file "/.config/rclone/rclone.conf" not found - using defaults
  • 2020/10/23 11:10:01 DEBUG: Creating backend with remote "google-drive: LinuxDocs"
  • 2020/10/23 11:10:01 Failed to create file system for "google-drive: LinuxDocs": didn't find section in config file

What is your rclone version (output from rclone version)

rclone v1.53.1

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

os/arch: linux/amd64
Centos 6.10

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)

  • /usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

The rclone config contents with secrets removed.

  • 2020/10/23 11:10:01 DEBUG: Creating backend with remote "/ root / test /"
  • 2020/10/23 11:10:01 NOTICE: Config file "/.config/rclone/rclone.conf" not found - using defaults
  • 2020/10/23 11:10:01 DEBUG: Creating backend with remote "google-drive: LinuxDocs"
  • 2020/10/23 11:10:01 Failed to create file system for "google-drive: LinuxDocs": didn't find

A log from the command with the -vv flag

Paste  log here

I would try adding the path to the config file in your command in the script:

/usr/bin/rclone copy --update --verbose --transfers 30 --checkers 8 --contimeout 60s --timeout 300s --retries 3 --low-level-retries 10 --stats 1s "/root/test/ "" google-drive:LinuxDocs" -vv

add this but change to the correct path for your config file

--config="/path/to/rclone.conf"

Use this rclone config file to find the config file location and add that to your script like --config=<path from command>

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