Rclone cannot copy from mount point

What is the problem you are having with rclone?

I have attached a HDD to my Raspberry Pi and mounted it under /mnt/HDD/.
I want to copy files directly from HDD to GDrive. But receiving below errors:

    2020/08/03 19:46:03 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:03 INFO  : There was nothing to transfer
    2020/08/03 19:46:03 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:03 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:03 INFO  : There was nothing to transfer
    2020/08/03 19:46:03 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:04 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:04 INFO  : There was nothing to transfer
    2020/08/03 19:46:04 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:04 INFO  :
    Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
    Errors:                 1 (retrying may help)
    Elapsed time:         0.0s

What is your rclone version (output from rclone version)

rclone v1.52.2

  • os/arch: linux/arm
  • go version: go1.14.4

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

Rasbian Stretch

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 --verbose /mnt/HDD/completed/screen0001.png GDrive2:

The rclone config contents with secrets removed.

Current remotes:

Name                 Type
====                 ====
GDrive2            drive
GDrive2Crypt       crypt

A log from the command with the -vv flag

2020/08/03 19:46:03 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:03 INFO  : There was nothing to transfer
    2020/08/03 19:46:03 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:03 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:03 INFO  : There was nothing to transfer
    2020/08/03 19:46:03 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:04 ERROR : : error reading source directory: directory not found
    2020/08/03 19:46:04 INFO  : There was nothing to transfer
    2020/08/03 19:46:04 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
    2020/08/03 19:46:04 INFO  :
    Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
    Errors:                 1 (retrying may help)
    Elapsed time:         0.0s

I am noob regarding Linux systems and Rclone. Am I facing this issue due to some incorrect permissions?

hello and welcome to the forum,

error reading source directory: directory not found
so can you make sure /mnt/HDD/completed/ is the correct path?
can you access it from the command line?

when you post the debug log, can you post the entire log, not just snippets.

Yes I can access the path via command line:

pi@raspberrypi:~ $ ls /mnt/HDD/completed/
2018-11-13-raspbian-stretch-lite.zip
screen0001.png

Sorry about not including complete logs. Here it is:

pi@raspberrypi:~ $ rclone copy --log-level DEBUG /mnt/HDD/completed/screen0001.png GDrive2:
2020/08/03 21:21:00 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "copy" "--log-level" "DEBUG" "/mnt/HDD/completed/screen0001.png" "GDrive2:"]
2020/08/03 21:21:00 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020/08/03 21:21:00 DEBUG : GDrive2: Loaded invalid token from config file - ignoring
2020/08/03 21:21:01 DEBUG : Keeping previous permissions for config file: -rwxr-xr-x
2020/08/03 21:21:01 DEBUG : GDrive2: Saved new token in config file
2020/08/03 21:21:03 ERROR : : error reading source directory: directory not found
2020/08/03 21:21:03 DEBUG : Google drive root '': Waiting for checks to finish
2020/08/03 21:21:03 DEBUG : Google drive root '': Waiting for transfers to finish
2020/08/03 21:21:03 INFO  : There was nothing to transfer
2020/08/03 21:21:03 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2020/08/03 21:21:04 ERROR : : error reading source directory: directory not found
2020/08/03 21:21:04 DEBUG : Google drive root '': Waiting for checks to finish
2020/08/03 21:21:04 DEBUG : Google drive root '': Waiting for transfers to finish
2020/08/03 21:21:04 INFO  : There was nothing to transfer
2020/08/03 21:21:04 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2020/08/03 21:21:05 ERROR : : error reading source directory: directory not found
2020/08/03 21:21:05 DEBUG : Google drive root '': Waiting for checks to finish
2020/08/03 21:21:05 DEBUG : Google drive root '': Waiting for transfers to finish
2020/08/03 21:21:05 INFO  : There was nothing to transfer
2020/08/03 21:21:05 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2020/08/03 21:21:05 INFO  :
Transferred:             0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         0.0s

Log of Successful transfer:

pi@raspberrypi:~ $ rclone copy --log-level DEBUG /home/pi/Downloads/teamviewer-host_14.2.2558_armhf.deb GDrive2:
2020/08/03 21:22:45 DEBUG : rclone: Version "v1.52.2" starting with parameters ["rclone" "copy" "--log-level" "DEBUG" "/home/pi/Downloads/teamviewer-host_14.2.2558_armhf.deb" "GDrive2:"]
2020/08/03 21:22:45 DEBUG : Using config file from "/home/pi/.config/rclone/rclone.conf"
2020/08/03 21:22:45 DEBUG : fs cache: renaming cache item "/home/pi/Downloads/teamviewer-host_14.2.2558_armhf.deb" to be canonical "/home/pi/Downloads"
2020/08/03 21:22:46 DEBUG : teamviewer-host_14.2.2558_armhf.deb: Need to transfer - File not found at Destination
2020/08/03 21:22:47 DEBUG : teamviewer-host_14.2.2558_armhf.deb: Sending chunk 0 length 8388608
2020/08/03 21:22:50 DEBUG : teamviewer-host_14.2.2558_armhf.deb: Sending chunk 8388608 length 1819900
2020/08/03 21:22:53 DEBUG : teamviewer-host_14.2.2558_armhf.deb: MD5 = 8dc3704f14261b2c4afcedd332c08d8f OK
2020/08/03 21:22:53 INFO  : teamviewer-host_14.2.2558_armhf.deb: Copied (new)
2020/08/03 21:22:53 INFO  :
Transferred:        9.736M / 9.736 MBytes, 100%, 1.410 MBytes/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         6.9s

2020/08/03 21:22:53 DEBUG : 4 go routines active

is that an external usb hard drive?

i am not a linux expert but i have a pi4 and i access the pi4 external usb hard drive using /media/pi/HDD

we have lots of linux experts, and i am sure some will stop by.....

Yes thats a external USB hardisk, mostly used to store downloaded torrents and other stuff via Sonarr, etc.

like i wrote i am not a linux expert but it does seem like a permission issue.
i know that a good thing to do is ls -al /mnt to see the permissions.
for my pi, the permissions is drwxr-xr-x which is 755
https://www-uxsup.csx.cam.ac.uk/pub/doc/redhat/redhat6.2/gsg-62/s1-navigating-chmodnum.html
https://chmod-calculator.com/

Output of ls -al /mnt is:

pi@raspberrypi:~ $ ls -al /mnt
total 32
drwxr-xr-x  3 root root  4096 Apr  1  2019 .
drwxr-xr-x 21 root root  4096 Nov 13  2018 ..
drwxrwxrwx  1 root root 24576 May 28 09:43 HDD

Which I think it is 777.

Try running rclone ls /mnt/HDD/completed/ both as the pi & the root users.

@darthShadow
This is the output:

pi@raspberrypi:~ $ rclone ls /mnt/HDD/completed/
368428301 2018-11-13-raspbian-stretch-lite.zip
256000 screen0001.png

root user:

root@raspberrypi:/home/pi# rclone ls /mnt/HDD/completed/
2020/08/04 21:59:33 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
368428301 2018-11-13-raspbian-stretch-lite.zip
256000 screen0001.png

Is there a limit of character that can be in the file path? I tried with something else and it worked.

2 things to try then:

  • Try copying to a temporary directory and see if that works i.e. rclone copy <file> /tmp/
  • Try copying a different file from the same directory

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