[remoteAndroid_Drive]
type = drive
service_account_credentials = {... contents of the service account file ...}
scope = drive
root_folder_id = ID
#### A log from the command with the `-vv` flag
2020/05/30 11:04:23 DEBUG : rclone: Version "v1.51.0" starting with parameters ["Tools/rclone_v1.51.0_linux_x64/rclone" "-vv" "copy" "Logs/Networks/wifi_informations_DEV.txt" "remoteAndroid_Drive:/DEV/wifi.txt"]
2020/05/30 11:04:23 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/30 11:04:24 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/30 11:04:25 ERROR : wifi_informations_DEV.txt: Failed to copy: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:25 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:25 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/30 11:04:26 ERROR : wifi_informations_DEV.txt: Failed to copy: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:26 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:26 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/30 11:04:27 ERROR : wifi_informations_DEV.txt: Failed to copy: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:27 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: googleapi: Error 403: Forbidden, forbidden
2020/05/30 11:04:27 Failed to copy: failed to make directory: googleapi: Error 403: Forbidden, forbidden
Note that if you are copying a file to a file you want copyto instead of copy otherwise rclone will create a directory called wifi.txt with your file in it!
I think that is probably the problem - rclone is failing to create the directory by the look of the log.
2020/05/31 19:41:02 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "copy" "wifi_informations_DEV.txt" "remoteAndroid_Drive:"]
2020/05/31 19:41:02 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/31 19:41:02 DEBUG : fs cache: renaming cache item "wifi_informations_DEV.txt" to be canonical "/home/james/Desktop/LookJames/DEV/v1.00/Logs/Networks"
2020/05/31 19:41:02 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/31 19:41:03 ERROR : wifi_informations_DEV.txt: Failed to copy: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:03 ERROR : Attempt 1/3 failed with 1 errors and: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:03 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/31 19:41:04 ERROR : wifi_informations_DEV.txt: Failed to copy: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:04 ERROR : Attempt 2/3 failed with 1 errors and: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:04 DEBUG : wifi_informations_DEV.txt: Need to transfer - File not found at Destination
2020/05/31 19:41:05 ERROR : wifi_informations_DEV.txt: Failed to copy: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:05 ERROR : Attempt 3/3 failed with 1 errors and: googleapi: Error 403: Forbidden, forbidden
2020/05/31 19:41:05 INFO :
Transferred: 768 / 768 Bytes, 100%, 311 Bytes/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 2.4s
2020/05/31 19:41:05 DEBUG : 6 go routines active
2020/05/31 19:41:05 Failed to copy: googleapi: Error 403: Forbidden, forbidden
second command:
2020/05/31 19:41:10 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "copy" "hosts" "remoteAndroid_Drive:"]
2020/05/31 19:41:10 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/31 19:41:10 DEBUG : fs cache: renaming cache item "hosts" to be canonical "/home/james/Desktop/LookJames/DEV/v1.00/Logs/Networks/hosts"
2020/05/31 19:41:11 ERROR : : error reading source directory: directory not found
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:41:11 INFO : There was nothing to transfer
2020/05/31 19:41:11 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2020/05/31 19:41:11 ERROR : : error reading source directory: directory not found
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:41:11 INFO : There was nothing to transfer
2020/05/31 19:41:11 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2020/05/31 19:41:11 ERROR : : error reading source directory: directory not found
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:41:11 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:41:11 INFO : There was nothing to transfer
2020/05/31 19:41:11 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2020/05/31 19:41:11 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2020/05/31 19:41:11 DEBUG : 6 go routines active
2020/05/31 19:41:11 Failed to copy: directory not found
2020/05/31 19:43:26 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "copyto" "wifi_informations_DEV.txt" "remoteAndroid_Drive:"]
2020/05/31 19:43:26 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/31 19:43:26 DEBUG : fs cache: renaming cache item "wifi_informations_DEV.txt" to be canonical "/home/james/Desktop/LookJames/DEV/v1.00/Logs/Networks"
2020/05/31 19:43:26 "remoteAndroid_Drive:" is a directory
2020/05/31 19:45:30 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "copyto" "hosts" "remoteAndroid_Drive:"]
2020/05/31 19:45:30 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/31 19:45:30 DEBUG : fs cache: renaming cache item "hosts" to be canonical "/home/james/Desktop/LookJames/DEV/v1.00/Logs/Networks/hosts"
2020/05/31 19:45:31 ERROR : : error reading source directory: directory not found
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:45:31 INFO : There was nothing to transfer
2020/05/31 19:45:31 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2020/05/31 19:45:31 ERROR : : error reading source directory: directory not found
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:45:31 INFO : There was nothing to transfer
2020/05/31 19:45:31 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2020/05/31 19:45:31 ERROR : : error reading source directory: directory not found
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for checks to finish
2020/05/31 19:45:31 DEBUG : Google drive root '': Waiting for transfers to finish
2020/05/31 19:45:31 INFO : There was nothing to transfer
2020/05/31 19:45:31 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2020/05/31 19:45:31 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2020/05/31 19:45:31 DEBUG : 6 go routines active
2020/05/31 19:45:31 Failed to copyto: directory not found
2020/05/31 19:46:20 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "copyto" "hosts" "remoteAndroid_Drive:testing"]
2020/05/31 19:46:20 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
2020/05/31 19:46:20 DEBUG : fs cache: renaming cache item "hosts" to be canonical "/home/james/Desktop/LookJames/DEV/v1.00/Logs/Networks/hosts"
2020/05/31 19:46:21 ERROR : : error reading source directory: directory not found
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for checks to finish
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for transfers to finish
2020/05/31 19:46:21 INFO : There was nothing to transfer
2020/05/31 19:46:21 ERROR : Attempt 1/3 failed with 1 errors and: directory not found
2020/05/31 19:46:21 ERROR : : error reading source directory: directory not found
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for checks to finish
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for transfers to finish
2020/05/31 19:46:21 INFO : There was nothing to transfer
2020/05/31 19:46:21 ERROR : Attempt 2/3 failed with 1 errors and: directory not found
2020/05/31 19:46:21 ERROR : : error reading source directory: directory not found
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for checks to finish
2020/05/31 19:46:21 DEBUG : Google drive root 'testing': Waiting for transfers to finish
2020/05/31 19:46:21 INFO : There was nothing to transfer
2020/05/31 19:46:21 ERROR : Attempt 3/3 failed with 1 errors and: directory not found
2020/05/31 19:46:21 INFO :
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 0.0s
2020/05/31 19:46:21 DEBUG : 6 go routines active
2020/05/31 19:46:21 Failed to copyto: directory not found
2020/05/31 19:47:26 DEBUG : rclone: Version "v1.52.0" starting with parameters ["../../Tools/rclone_v1.52.0_linux_x64/rclone" "-vv" "lsf" "remoteAndroid_Drive:"]
2020/05/31 19:47:26 DEBUG : Using config file from "/home/james/.config/rclone/rclone.conf"
DEV/
PROD/
remote_modele.json
2020/05/31 19:47:27 DEBUG : 6 go routines active