"go test -v -timeout 1h0m0s -remote TestGooglePhotos: -verbose" - Starting (try 1/5) === RUN TestNewAlbums --- PASS: TestNewAlbums (0.00s) === RUN TestAlbumsAdd --- PASS: TestAlbumsAdd (0.00s) === RUN TestAlbumsDel --- PASS: TestAlbumsDel (0.00s) === RUN TestAlbumsGet --- PASS: TestAlbumsGet (0.00s) === RUN TestAlbumsGetDirs --- PASS: TestAlbumsGetDirs (0.00s) === RUN TestIntegration 2025/06/17 01:47:09 DEBUG : Creating backend with remote "TestGooglePhotos:" 2025/06/17 01:47:09 DEBUG : Using config file from "/home/rclone/.rclone.conf" 2025/06/17 01:47:09 DEBUG : Creating backend with remote "testfiles" === RUN TestIntegration/CreateAlbum 2025/06/17 01:47:09 DEBUG : TestGooglePhotos: Loaded invalid token from config file - ignoring 2025/06/17 01:47:09 DEBUG : Saving config "token" in section "TestGooglePhotos" of the config file 2025/06/17 01:47:09 DEBUG : TestGooglePhotos: Saved new token in config file googlephotos_test.go:51: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/googlephotos/googlephotos_test.go:51 Error: Received unexpected error: couldn't list albums: Request had insufficient authentication scopes. (403 PERMISSION_DENIED) Test: TestIntegration/CreateAlbum === RUN TestIntegration/UploadMkdir === RUN TestIntegration/UploadMkdir/List === RUN TestIntegration/UploadMkdir/Rmdir === RUN TestIntegration/UploadMkdir/ListEmpty === RUN TestIntegration/Upload 2025/06/17 01:47:11 DEBUG : Google Photos path "": Adding "upload/dir/subdir/rclone-test-image2.jpg" to batch 2025/06/17 01:47:12 DEBUG : Google Photos path "": Batch idle for 1s so committing 2025/06/17 01:47:12 DEBUG : Google Photos path "": Committing sync batch length 1 starting with: upload/dir/subdir/rclone-test-image2.jpg 2025/06/17 01:47:12 ERROR : Google Photos path "": sync batch commit: failed to commit batch length 1: batch had 1 errors: last error: failed to create media item: Request had insufficient authentication scopes. (403 PERMISSION_DENIED) googlephotos_test.go:225: Error Trace: /home/rclone/go/src/github.com/rclone/rclone/backend/googlephotos/googlephotos_test.go:225 Error: Received unexpected error: failed to commit batch: batch upload failed: failed to create media item: Request had insufficient authentication scopes. (403 PERMISSION_DENIED) Test: TestIntegration/Upload === RUN TestIntegration/Name === RUN TestIntegration/Root === RUN TestIntegration/String === RUN TestIntegration/Features === RUN TestIntegration/Precision === RUN TestIntegration/Hashes --- FAIL: TestIntegration (3.61s) --- FAIL: TestIntegration/CreateAlbum (0.98s) --- PASS: TestIntegration/UploadMkdir (0.00s) --- PASS: TestIntegration/UploadMkdir/List (0.00s) --- PASS: TestIntegration/UploadMkdir/Rmdir (0.00s) --- PASS: TestIntegration/UploadMkdir/ListEmpty (0.00s) --- FAIL: TestIntegration/Upload (2.63s) --- PASS: TestIntegration/Name (0.00s) --- PASS: TestIntegration/Root (0.00s) --- PASS: TestIntegration/String (0.00s) --- PASS: TestIntegration/Features (0.00s) --- PASS: TestIntegration/Precision (0.00s) --- PASS: TestIntegration/Hashes (0.00s) === RUN TestAddID --- PASS: TestAddID (0.00s) === RUN TestFileAddID --- PASS: TestFileAddID (0.00s) === RUN TestFindID --- PASS: TestFindID (0.00s) === RUN TestPatternMatch === RUN TestPatternMatch/#0,root="",itemPath="",isFile=false === RUN TestPatternMatch/#1,root="",itemPath="",isFile=true === RUN TestPatternMatch/#2,root="upload",itemPath="",isFile=false === RUN TestPatternMatch/#3,root="upload/dir",itemPath="",isFile=false === RUN TestPatternMatch/#4,root="upload/file.jpg",itemPath="",isFile=true === RUN TestPatternMatch/#5,root="media",itemPath="",isFile=false === RUN TestPatternMatch/#6,root="",itemPath="media",isFile=false === RUN TestPatternMatch/#7,root="media/all",itemPath="",isFile=false === RUN TestPatternMatch/#8,root="media",itemPath="all",isFile=false === RUN TestPatternMatch/#9,root="media/all",itemPath="file.jpg",isFile=true === RUN TestPatternMatch/#10,root="",itemPath="feature",isFile=false === RUN TestPatternMatch/#11,root="feature/favorites",itemPath="",isFile=false === RUN TestPatternMatch/#12,root="feature",itemPath="favorites",isFile=false === RUN TestPatternMatch/#13,root="feature/favorites",itemPath="file.jpg",isFile=true --- PASS: TestPatternMatch (0.00s) --- PASS: TestPatternMatch/#0,root="",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#1,root="",itemPath="",isFile=true (0.00s) --- PASS: TestPatternMatch/#2,root="upload",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#3,root="upload/dir",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#4,root="upload/file.jpg",itemPath="",isFile=true (0.00s) --- PASS: TestPatternMatch/#5,root="media",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#6,root="",itemPath="media",isFile=false (0.00s) --- PASS: TestPatternMatch/#7,root="media/all",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#8,root="media",itemPath="all",isFile=false (0.00s) --- PASS: TestPatternMatch/#9,root="media/all",itemPath="file.jpg",isFile=true (0.00s) --- PASS: TestPatternMatch/#10,root="",itemPath="feature",isFile=false (0.00s) --- PASS: TestPatternMatch/#11,root="feature/favorites",itemPath="",isFile=false (0.00s) --- PASS: TestPatternMatch/#12,root="feature",itemPath="favorites",isFile=false (0.00s) --- PASS: TestPatternMatch/#13,root="feature/favorites",itemPath="file.jpg",isFile=true (0.00s) === RUN TestPatternMatchToEntries === RUN TestPatternMatchToEntries/#0,root="",itemPath="" === RUN TestPatternMatchToEntries/#1,root="upload",itemPath="" === RUN TestPatternMatchToEntries/#2,root="upload",itemPath="dir" === RUN TestPatternMatchToEntries/#3,root="media",itemPath="" === RUN TestPatternMatchToEntries/#4,root="media/all",itemPath="" === RUN TestPatternMatchToEntries/#5,root="media",itemPath="all" === RUN TestPatternMatchToEntries/#6,root="media/by-year",itemPath="" === RUN TestPatternMatchToEntries/#7,root="media/by-year/2000",itemPath="" === RUN TestPatternMatchToEntries/#8,root="media/by-month",itemPath="" === RUN TestPatternMatchToEntries/#9,root="media/by-month/2001",itemPath="" === RUN TestPatternMatchToEntries/#10,root="media/by-month/2001/2001-01",itemPath="" === RUN TestPatternMatchToEntries/#11,root="media/by-day",itemPath="" === RUN TestPatternMatchToEntries/#12,root="media/by-day/2001",itemPath="" === RUN TestPatternMatchToEntries/#13,root="media/by-day/2001/2001-01-02",itemPath="" === RUN TestPatternMatchToEntries/#14,root="album",itemPath="" 2025/06/17 01:47:12 DEBUG : &{t:0xc000368000 albums:0xc00012d470 names:[file.jpg] uploaded:map[:[0xc0001ce8c0] upload:[upload/file1.jpg 0xc0001ce930] upload/dir:[upload/dir/file2.jpg]]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax === RUN TestPatternMatchToEntries/#15,root="album/sub",itemPath="" 2025/06/17 01:47:12 DEBUG : &{t:0xc000368000 albums:0xc00012d470 names:[file.jpg] uploaded:map[:[0xc0001ce8c0] upload:[upload/file1.jpg 0xc0001ce930] upload/dir:[upload/dir/file2.jpg]]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax === RUN TestPatternMatchToEntries/#16,root="album/sub/one",itemPath="" === RUN TestPatternMatchToEntries/#17,root="shared-album",itemPath="" 2025/06/17 01:47:12 DEBUG : &{t:0xc000368000 albums:0xc00012d470 names:[file.jpg] uploaded:map[:[0xc0001ce8c0] upload:[upload/file1.jpg 0xc0001ce930] upload/dir:[upload/dir/file2.jpg]]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax === RUN TestPatternMatchToEntries/#18,root="shared-album/sub",itemPath="" 2025/06/17 01:47:12 DEBUG : &{t:0xc000368000 albums:0xc00012d470 names:[file.jpg] uploaded:map[:[0xc0001ce8c0] upload:[upload/file1.jpg 0xc0001ce930] upload/dir:[upload/dir/file2.jpg]]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax === RUN TestPatternMatchToEntries/#19,root="shared-album/sub/one",itemPath="" --- PASS: TestPatternMatchToEntries (0.00s) --- PASS: TestPatternMatchToEntries/#0,root="",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#1,root="upload",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#2,root="upload",itemPath="dir" (0.00s) --- PASS: TestPatternMatchToEntries/#3,root="media",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#4,root="media/all",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#5,root="media",itemPath="all" (0.00s) --- PASS: TestPatternMatchToEntries/#6,root="media/by-year",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#7,root="media/by-year/2000",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#8,root="media/by-month",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#9,root="media/by-month/2001",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#10,root="media/by-month/2001/2001-01",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#11,root="media/by-day",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#12,root="media/by-day/2001",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#13,root="media/by-day/2001/2001-01-02",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#14,root="album",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#15,root="album/sub",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#16,root="album/sub/one",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#17,root="shared-album",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#18,root="shared-album/sub",itemPath="" (0.00s) --- PASS: TestPatternMatchToEntries/#19,root="shared-album/sub/one",itemPath="" (0.00s) === RUN TestPatternYears --- PASS: TestPatternYears (0.00s) === RUN TestPatternMonths --- PASS: TestPatternMonths (0.00s) === RUN TestPatternDays --- PASS: TestPatternDays (0.00s) === RUN TestPatternYearMonthDayFilter --- PASS: TestPatternYearMonthDayFilter (0.00s) === RUN TestPatternAlbumsToEntries 2025/06/17 01:47:12 DEBUG : &{t:0xc000014700 albums:0xc0001e9ad0 names:[] uploaded:map[]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax 2025/06/17 01:47:12 DEBUG : &{t:0xc000014700 albums:0xc0001e9ad0 names:[file.jpg] uploaded:map[]}: Error reading media count: strconv.ParseInt: parsing "": invalid syntax --- PASS: TestPatternAlbumsToEntries (0.00s) FAIL exit status 1 FAIL github.com/rclone/rclone/backend/googlephotos 3.633s "go test -v -timeout 1h0m0s -remote TestGooglePhotos: -verbose" - Finished ERROR in 4.89518748s (try 1/5): exit status 1: Failed [TestIntegration/CreateAlbum TestIntegration/Upload]