Rclone error: reading source directory: directory not found

What is the problem you are having with rclone?

I'm trying to copy from local backup location at ubuntu 14.04 system to Google Drive remote folder, but I get the error message as follows: "reading source directory: directory not found"

What is your rclone version (output from rclone version)

rclone v1.53.1

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

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

Ubuntu 14.04LTS

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)

rclone copy -P -vv copy '/opt/archive/logs' "hole-gdrive:/Backups/Odoo8/Produccion/logs/"

The rclone config contents with secrets removed.

Paste config here
rclone config show
[hole-gdrive]
type = drive
scope = drive

A log from the command with the -vv flag

2020/10/27 07:28:48 DEBUG : rclone: Version "v1.53.1" starting with parameters ["rclone" "copy" "-P" "-vv" "copy" "/opt/archive/logs\u00a0\u00a0hole-gdrive:/Backups/Odoo8/Produccion/logs/"]
2020/10/27 07:28:48 DEBUG : Creating backend with remote "copy"
2020/10/27 07:28:48 DEBUG : Using config file from "/home/lcomadmin/.config/rclone/rclone.conf"
2020/10/27 07:28:48 DEBUG : fs cache: renaming cache item "copy" to be canonical "/opt/copy"
2020/10/27 07:28:48 DEBUG : Creating backend with remote "/opt/archive/logs\u00a0\u00a0hole-gdrive:/Backups/Odoo8/Produccion/logs/"
2020-10-27 07:28:48 ERROR : : error reading source directory: directory not found
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for checks to finish
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for transfers to finish
2020-10-27 07:28:48 INFO : There was nothing to transfer
2020-10-27 07:28:48 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2020-10-27 07:28:48 ERROR : : error reading source directory: directory not found
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for checks to finish
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for transfers to finish
2020-10-27 07:28:48 INFO : There was nothing to transfer
2020-10-27 07:28:48 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2020-10-27 07:28:48 ERROR : : error reading source directory: directory not found
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for checks to finish
2020-10-27 07:28:48 DEBUG : Local file system at /opt/archive/logs hole-gdrive:/Backups/Odoo8/Produccion/logs/: Waiting for transfers to finish
2020-10-27 07:28:48 INFO : There was nothing to transfer
2020-10-27 07:28:48 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2020/10/27 07:28:48 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s

2020/10/27 07:28:48 DEBUG : 3 go routines active
2020/10/27 07:28:48 Failed to copy: directory not found

Does a rclone ls on this show a directory?

Yes, it does. I really cannot find a syntax error in the command i try to execute. :thinking:

Is the differing single-quote & double-quote in the command just a typo while pasting here? If not, can you replace the single-quote(s) with double-quote(s) instead and try?

Here, the \u00a0\u00a0 characters represent line-feed (\n) in unicode so I am guessing there was a copy-paste issue somewhere. Can you try typing it out manually and see?

Can you share the output?

Yes. It gives the same message of error

I might be reading this totally wrong, but I believe your command should be

rclone copy -P -vv  "/opt/archive/logs" "hole-gdrive:/Backups/Odoo8/Produccion/logs/"