gphotosuploader / gphotos-uploader-cli

Command line tool to mass upload media folders to your google photos account(s) (Mac OS / Linux)
https://gphotosuploader.github.io/gphotos-uploader-cli/
MIT License
678 stars 78 forks source link

Errors uploading and nothing uploaded at all #293

Closed teimuraz1962 closed 3 years ago

teimuraz1962 commented 3 years ago

System: Kubuntu 20.04, upgraded from 18.04 $ uname -a Linux temo-Lenovo-T420 5.8.0-45-generic #51~20.04.1-Ubuntu SMP Tue Feb 23 13:46:31 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

HW: Lenovo ThinkPad T420, 8GB RAM, 1.5 TB HDD

Fully updated.

I've used version 1.0.8 and 1.2 before (with Kubuntu 18.04), it worked well, even with some glitches. I've succesfully uploaded more than 50 000 photos.

There is definitely enough space in Google account (more than 10 GB currently).

Then I didn't used it for a while.

Now I downloaded binary version 3.0.1 and tried to use it. It couldn't work with previously created project in Google Cloud, so I had to register new project.

Now on every run I got errors like:

[fail] X Error processing /vol2/Pictures_1/216canon/img_1653.jpg [debug] Resuming upload session for [img_1660.jpg] starting at offset 0 [error] Post "https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate?alt=json": POST https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate?alt=json giving up after 5 attempt(s) [debug] Worker #1 processing: /vol2/Pictures_1/216canon/img_1654.jpg [debug] New resumable upload for file [img_1654.jpg]. [debug] Current offset for [img_1654.jpg] is 0. Uploading files... 1% |█ | (405/36640) [fail] X Error processing /vol2/Pictures_1/216canon/img_1660.jpg [debug] Resuming upload session for [img_1654.jpg] starting at offset 0 [error] Post "https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate?alt=json": POST https://photoslibrary.googleapis.com/v1/mediaItems:batchCreate?alt=json giving up after 5 attempt(s) [debug] Worker #1 processing: /vol2/Pictures_1/216canon/img_1655.jpg [debug] New resumable upload for file [img_1655.jpg].
Uploading files... 1% |█

I'm running it with --debug ke. It never goes more then 1%. I've checked credentials for files, everything is OK. I'm the only user of this comp.

I tried to run it with CreateAlbums:folderName and CreateAlbums:folderPath, but I've got only errors. Also it created a lot of empty albums in Google.

You can see program output in files with appropriate names below. folderPath.txt.gz Off.txt.gz folderName.txt.gz

pacoorozco commented 3 years ago

It seems a problem when uploading the files to Google Photos. Can you run the command with debug flag and only using an small amount of files?

teimuraz1962 commented 3 years ago

Yes, sure. Please see attached file.

Even though I didn't change anything, today it worked a bit differently. I've separated one folder with 36 pictures, and I was asked for authorization again. It shows that everything is OK, but I couldn't find uploaded photos in "Recents".

On Sun, Apr 4, 2021 at 10:31 PM Paco Orozco @.***> wrote:

It seems a problem when uploading the files to Google Photos. Can you run the command with debug flag and only using an small amount of files?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gphotosuploader/gphotos-uploader-cli/issues/293#issuecomment-813079298, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKSUYSBYGZYA6YGCRWRX2LTHCWABANCNFSM4ZRULQBQ .

-- Best regards, Teimuraz Abashidze

Linux user #140208 https://mewe.com/i/teimurazabashidze - MeWe http://www.facebook.com/teimuraz.abashidze - FaceBook https://instagram.com/teimurazabashidze/ - Instagram http://taichi.ge - TaiChi Chuan in Tbilisi http://raindi.ge/taichi - TaiChi Chuan in Tbilisi http://teimuraz1962.livejournal.com - LiveJournal

pacoorozco commented 3 years ago

Hi @teimuraz1962

Yes, sure. Please see attached file.

I haven't see any attached file to your previous comment.

It seems that it's working. The Recents tab could be based on some timestamp, different that the uploaded time. Bear in mind that gphotos-uploader-cli tries to maintain date based on EXIF data.

Have you looked for the images inside your Google Photos gallery?

teimuraz1962 commented 3 years ago

Sorry for late answer There's fele named just "1" in previous letter, and I'm also attaching gzipped log here. I Hope it helps. Actually it uploaded some pictures, but a small number of them (I run it several times).

On Mon, Apr 5, 2021 at 8:30 PM Paco Orozco @.***> wrote:

Hi @teimuraz1962 https://github.com/teimuraz1962

Yes, sure. Please see attached file.

I haven't see any attached file to your previous comment.

It seems that it's working. The Recents tab could be based on some timestamp, different that the uploaded time. Bear in mind that gphotos-uploader-cli tries to maintain date based on EXIF data.

Have you looked for the images inside your Google Photos gallery?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gphotosuploader/gphotos-uploader-cli/issues/293#issuecomment-813487684, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKSUYWQEKE26HV7EQTZD4TTHHQS3ANCNFSM4ZRULQBQ .

-- Best regards, Teimuraz Abashidze

Linux user #140208 https://mewe.com/i/teimurazabashidze - MeWe http://www.facebook.com/teimuraz.abashidze - FaceBook https://instagram.com/teimurazabashidze/ - Instagram http://taichi.ge - TaiChi Chuan in Tbilisi http://raindi.ge/taichi - TaiChi Chuan in Tbilisi http://teimuraz1962.livejournal.com - LiveJournal

pacoorozco commented 3 years ago

@teimuraz1962

I can't see the attache file you are referring to. Can you upload it as gist and linked it on this issue?

teimuraz1962 commented 3 years ago

Quite strange... Ok, no problem

https://drive.google.com/file/d/1FmHUAmLmhBwZgVJ89Dw7Oj2ClGwcQF48/view?usp=sharing

Hope you can see THIS ;)

[image: image.png] [image: image.png]

On Sat, Apr 10, 2021 at 6:29 PM Paco Orozco @.***> wrote:

@teimuraz1962 https://github.com/teimuraz1962

I can't see the attache file you are referring to. Can you upload it as gist and linked it on this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gphotosuploader/gphotos-uploader-cli/issues/293#issuecomment-817145378, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATKSUYVBMFVLBYUIJH7MD4DTIBOFXANCNFSM4ZRULQBQ .

-- Best regards, Teimuraz Abashidze

Linux user #140208 https://mewe.com/i/teimurazabashidze - MeWe http://www.facebook.com/teimuraz.abashidze - FaceBook https://instagram.com/teimurazabashidze/ - Instagram http://taichi.ge - TaiChi Chuan in Tbilisi http://raindi.ge/taichi - TaiChi Chuan in Tbilisi http://teimuraz1962.livejournal.com - LiveJournal

pacoorozco commented 3 years ago

I have been able to read the log (thanks). I would say that the problem is that you're consuming the API request quota very fast, due to th huge amount of files. I would recommend you to reduce the number of files you try to upload in one time.

You can do that by just including some subfolders using IncludePatterns.