What is the problem you are having with rclone?
I could not upload images from local to google photos.
I already run
rclone config
to refresh token, but that dont solve the issue.
Run the command 'rclone version' and share the full output of the command.
rclone v1.62.2
- os/version: Microsoft Windows 11 Pro 22H2 (64 bit)
- os/kernel: 10.0.22621.1555 Build 22621.1555.1555 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.20.2
- go/linking: static
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
Google Photos
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone copy "H:\Meine Ablage\photo\cloud_sync_photo\sven_iphone_photosync\2023-04-28\IMG_3304.JPG" google_photo:upload
The rclone config contents with secrets removed.
[google_photo]
type = google photos
token = {"access_token":"XXXXXXXXXXXX","token_type":"Bearer","refresh_token":"XXXX","expiry":"2023-04-30T09:42:37.584947+02:00"}
A log from the command with the -vv
flag
2023/04/30 09:14:29 DEBUG : rclone: Version "v1.62.2" starting with parameters ["C:\\ProgramData\\chocolatey\\lib\\rclone.portable\\tools\\rclone-v1.62.2-windows-amd64\\rclone.exe" "-vv" "--log-file" "copy.log" "copy" "H:\\Meine Ablage\\photo\\cloud_sync_photo\\sven_iphone_photosync\\2023-04-28\\IMG_3304.JPG" "google_photo:upload"]
2023/04/30 09:14:29 DEBUG : Creating backend with remote "H:\\Meine Ablage\\photo\\cloud_sync_photo\\sven_iphone_photosync\\2023-04-28\\IMG_3304.JPG"
2023/04/30 09:14:29 DEBUG : Using config file from "C:\\Users\\xxxx\\AppData\\Roaming\\rclone\\rclone.conf"
2023/04/30 09:14:29 DEBUG : fs cache: adding new entry for parent of "H:\\Meine Ablage\\photo\\cloud_sync_photo\\sven_iphone_photosync\\2023-04-28\\IMG_3304.JPG", "//?/H:/Meine Ablage/photo/cloud_sync_photo/sven_iphone_photosync/2023-04-28"
2023/04/30 09:14:29 DEBUG : Creating backend with remote "google_photo:upload"
2023/04/30 09:14:29 DEBUG : Google Photos path "upload": NewObject: remote="IMG_3304.JPG"
2023/04/30 09:14:29 DEBUG : Google Photos path "upload": List: dir=""
2023/04/30 09:14:29 DEBUG : Google Photos path "upload": >List: err=directory not found
2023/04/30 09:14:29 DEBUG : Google Photos path "upload": >NewObject:
2023/04/30 09:14:29 DEBUG : IMG_3304.JPG: Need to transfer - File not found at Destination
2023/04/30 09:14:29 DEBUG : Google Photos path "upload": Put: src=IMG_3304.JPG
2023/04/30 09:14:29 DEBUG : IMG_3304.JPG: Update: src=IMG_3304.JPG
2023/04/30 09:14:31 DEBUG : IMG_3304.JPG: >Update: err=couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": >Put:
2023/04/30 09:14:31 ERROR : IMG_3304.JPG: Failed to copy: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:31 ERROR : Attempt 1/3 failed with 1 errors and: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": NewObject: remote="IMG_3304.JPG"
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": List: dir=""
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": >List: err=directory not found
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": >NewObject:
2023/04/30 09:14:31 DEBUG : IMG_3304.JPG: Need to transfer - File not found at Destination
2023/04/30 09:14:31 DEBUG : Google Photos path "upload": Put: src=IMG_3304.JPG
2023/04/30 09:14:31 DEBUG : IMG_3304.JPG: Update: src=IMG_3304.JPG
2023/04/30 09:14:33 DEBUG : IMG_3304.JPG: >Update: err=couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": >Put:
2023/04/30 09:14:33 ERROR : IMG_3304.JPG: Failed to copy: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:33 ERROR : Attempt 2/3 failed with 1 errors and: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": NewObject: remote="IMG_3304.JPG"
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": List: dir=""
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": >List: err=directory not found
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": >NewObject:
2023/04/30 09:14:33 DEBUG : IMG_3304.JPG: Need to transfer - File not found at Destination
2023/04/30 09:14:33 DEBUG : Google Photos path "upload": Put: src=IMG_3304.JPG
2023/04/30 09:14:33 DEBUG : IMG_3304.JPG: Update: src=IMG_3304.JPG
2023/04/30 09:14:35 DEBUG : IMG_3304.JPG: >Update: err=couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:35 DEBUG : Google Photos path "upload": >Put:
2023/04/30 09:14:35 ERROR : IMG_3304.JPG: Failed to copy: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:35 ERROR : Attempt 3/3 failed with 1 errors and: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
2023/04/30 09:14:35 INFO :
Transferred: 17.789 MiB / 17.789 MiB, 100%, 3.277 MiB/s, ETA 0s
Errors: 1 (retrying may help)
Elapsed time: 5.7s
2023/04/30 09:14:35 DEBUG : 4 go routines active
2023/04/30 09:14:35 Failed to copy: couldn't upload file: {
"code": 16,
"message": "Authentication session is not defined."
} (401 401 Unauthorized)
What did i do wrong or is it a bug in the authorization with google photos?
Kind Regards
Sven