Git Product home page Git Product logo

Comments (20)

suprimex avatar suprimex commented on May 19, 2024 2

Raspberry Pi3, Raspbian GNU/Linux 9.11 (stretch),
just want to confirm that I had the same issue as the topic starter ( error about certificate signed by unknown authority) and "apk add ca-certificates" with "update-ca-certificates" in container shell helped in this case. Thank you.

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024 1

Well, the original issue is not yet fixed in master, you guys only used a workaround to temporarily solve the problem on your end. I'll close this once I fix the authentication issue in master and release a new version with it :)

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

Please run this:

docker exec -it gphoto update-ca-certificates

And once it's finished try again with:

docker exec -it gphoto run 

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

I've got an error on the first command :

root@nas:~# docker exec -it gphoto update-ca-certificates OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"update-ca-certificates\": executable file not found in $PATH": unknown

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

That's weird...

Please login to your container shell:

docker exec -it gphoto /bin/sh

And call update-ca-certificates directly inside the shell. If that doesn't work, while still in the shell do this:

apk add ca-certificates

And then call update-ca-certificates again and then try again:

docker exec -it gphoto run 

Also, which device are you installing docker-gphotos-uploader?

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

There is a warning, but it seems something has been done.

/ 
# apk add ca-certificates                                               
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/armv7/APKINDEX.tar.g
z                                                                         
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/armv7/APKINDEX.
tar.gz                                                                    
(1/1) Installing ca-certificates (20190108-r0)                            
Executing busybox-1.30.1-r2.trigger                                       
Executing ca-certificates-20190108-r0.trigger
OK: 4 MiB in 15 packages
/ # update-ca-certificates                                                
WARNING: ca-certificates.crt does not contain exactly one certificate or C
RL: skipping                                                              
/ # exit

But there is permission error then

[info]   Found item to upload: /photos/Voici Gohan/2015-03-17.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104822.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104829.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104831.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104840.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104841.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104844.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104849.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_104909.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_105556.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_105613.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_110417.jpg
[info]   Found item to upload: /photos/Voici Gohan/IMG_20150315_110445.jpg
[info]   Found item to upload: /photos/Voici Gohan/VID_20150315_110420.mp4
[info]   15 files pending to be uploaded in folder '/photos'.
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/2015-03-17.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/2015-03-17.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104822.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104822.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104829.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104829.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/.picasa.ini, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/.picasa.ini
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104849.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104849.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104831.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104831.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104840.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104840.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104841.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104841.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_105613.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_105613.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/VID_20150315_110420.mp4, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/VID_20150315_110420.mp4
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104909.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104909.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_105556.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_105556.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_110417.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_110417.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_110445.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_110445.jpg
[error]  error while trying to create this media item, err=unexpected error response: file=/photos/Voici Gohan/IMG_20150315_104844.jpg, err=googleapi: Error 400: No permission to add media items to this album., badRequest
[fail] X Error processing /photos/Voici Gohan/IMG_20150315_104844.jpg
[info]   15 processed files: 0 successfully, 15 with errors

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

But how did you got those errors? Were you able to authenticate?

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

I just tried your command lines ( apk add certificate etc... ) then docker exec -it gphoto run and do the same thing than explained above (Opening Browser .... etc ) and got on my browser the same message on authentication.

I've just try to re-run and got this : https://pastebin.com/4K6qTasg

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

So, you were able to authenticate, correct? I really need you to answer me this with a yes or no, I need to understand what's happening and what fixed your authentication problem.

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

I think it's a yes. Through the browser I was able to authenticate.

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

If the authentication problem is fixed, that's great, I might need to fix something on my Docker image, can you please just let me know which device are you using for this? A Raspberry Pi or something?

As for your uploading issue, that looks like an upstream issue and I recommend you open a new issue in the gphotos-uploader-cli repository, they should be able to help you better. But based on the error, there seems to be some problem with the album you're uploading to. Try to rename the folder name and try to upload again and see if that works.

from docker-gphotos-uploader.

scadylan avatar scadylan commented on May 19, 2024

Hi rfgamaral, I met the same problem. My device is Synology DS918+ with docker. I used you method and it success to run. Thanks! But it finally got some error just like this:
[info] 179169 files pending to be uploaded in folder '/photos'.
[error] error while trying to create this media item, err=Failed: There was an error while trying to create this media item.
[fail] X Error processing /photos/@eaDir/SYNOPHOTO_MUSIC_CONFIG
[error] error while trying to create this media item, err=unexpected error response: file=/photos/@eaDir/IMG_20200222_172150.JPG@SynoEAStream, err=googleapi: Error 400: Request must contain a valid upload token., badRequest

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

Hi rfgamaral, I met the same problem. My device is Synology DS918+ with docker. I used you method and it success to run.

Just clarify something for me... You had the same authentication problem and you fixed with my suggestion above? Yes?

from docker-gphotos-uploader.

scadylan avatar scadylan commented on May 19, 2024

Yes , it is fixed with you suggestion and it runs well. Thanks!

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

Yes , it is fixed with you suggestion and it runs well. Thanks!

Thank you, I'll need to provide a fix for that.

As for the other issue, I believe that's an upstream issue (maybe, not sure yet) and that's being tracked here: gphotosuploader/gphotos-uploader-cli#49

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

Maybe this issue can be closed as the error 400 problem is not really related to it ?

from docker-gphotos-uploader.

HydrelioxGitHub avatar HydrelioxGitHub commented on May 19, 2024

I've made one test with some pictures and deleted them on Google Photo. Now these photo are not detected again as uploadable. How do I reset to re-upload them ?

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

I've made one test with some pictures and deleted them on Google Photo. Now these photo are not detected again as uploadable. How do I reset to re-upload them ?

I have no idea. You need to ask that in the gphotos-uploader-cli repository.

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

Thank you for that @suprimex.

I'm going to publish a fixed version in a couple of minutes and close this once it's published.

from docker-gphotos-uploader.

rfgamaral avatar rfgamaral commented on May 19, 2024

I just published a fixed version to the preview tag (and bumped the tool to the latest version), could any of you guys please test it out before I publish this to latest?

from docker-gphotos-uploader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.