Google Photos does not support/return file hash?

What is the problem you are having with rclone?

Rclone for Google Photos does not seem to support/return a hash? I'm not sure if this is an rclone issue or a Google Photos issue?

$ rclone lsf --files-only --format "ph" -R "gp:album/from computer"
<3>ERROR : pic.jpg: Failed to read hash: hash type not supported
pic.jpg;

Run the command 'rclone version' and share the full output of the command.

$ rclone version
rclone v1.63.1
- os/version: debian 12.1 (64 bit)
- os/kernel: 6.1.0-12-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.20.6
- go/linking: static
- go/tags: none

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 lsf --files-only --format "ph" -R "gp:album/from computer"

The rclone config contents with secrets removed.

[gp]
type = google photos
token = 
client_id = 
client_secret = 

A log from the command that you were trying to run with the -vv flag

$ rclone lsf --files-only --format "ph" -vv -R "$DESTINATION"
<7>DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "lsf" "--files-only" "--format" "ph" "-vv" "-R" "gp:album/from computer"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "gp:album/from computer"
<7>DEBUG : Using config file from "/rclone.conf"
<7>DEBUG : Google Photos path "album/from computer": List: dir=""
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder1"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": Error reading media count: strconv.ParseInt: parsing "": invalid syntax
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2/0000-00-00 - folder3"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2/0000-00-00 - folder4"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder5"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2/0000-00-00 - 0000-00-00 - folder6"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder5/0000-00-00 - folder7"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2/0000-00-00 - folder8"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder10"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder2/0000-00-00 -0000-00-00 - folder9"
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder11"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder5/0000-00-00 - folder11"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder5/0000-00-00 - folder12"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : folder1/file1.mp4: Size: 
<7>DEBUG : folder1/file1.mp4: >Size: 
<7>DEBUG : folder1/file2: Size: 
<7>DEBUG : folder1/file2: >Size: 
<7>DEBUG : folder1/file1.mp4: Size: 
<7>DEBUG : folder1/file1.mp4: >Size: 
<3>ERROR : folder1/file1.mp4: Failed to read hash: hash type not supported
folder1/file1.mp4;
<7>DEBUG : folder1/file2: Size: 
<7>DEBUG : folder1/file2: >Size: 
<3>ERROR : folder1/file2: Failed to read hash: hash type not supported
folder1/file2;
<7>DEBUG : Google Photos path "album/from computer": List: dir="folder5/0000-00-00 - folder20"
<7>DEBUG : Google Photos path "album/from computer": >List: err=<nil>
<7>DEBUG : folder10/0000-00-00_00-00-00 - file20.jpeg: Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file20.jpeg: >Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file21.jpg: Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file21.jpg: >Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file22.jpg: Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file22.jpg: >Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file20.jpeg: Size: 
<7>DEBUG : folder10/0000-00-00_00-00-00 - file20.jpeg: >Size: 
<3>ERROR : folder10/0000-00-00_00-00-00 - file20.jpeg: Failed to read hash: hash type not supported
folder10/0000-00-00_00-00-00 - file20.jpeg;

^^^

Yes no hash support.

I assumed that but wasn't sure if maybe rclone is just not reading the right thing or someting. I'm not really sure how rclone interacts with Google.

Oh well. Thanks!

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