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)
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?
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.
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
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