-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
authentication not possible in -headless mode #25
Comments
Did you mount the same folder you used for |
Are you in a position where you can try using the https://github.com/perkeep/gphotos-cdp tool directly and see if that works? I have no idea whether it works on Windows though... |
I am on manjaro linux and I am facing the same issue |
Running with cron causes this for some reason:
My workaround is the run the command that does work but in a |
Seems my authentication had run out and I needed to reauth. Ran the procedure again and everything works fine again. |
@philbring @JakeWharton Still having the exact same issue. I am on Manjaro Initializing container User uid: 1001 [cont-init.d] 10-adduser.sh: exited 0. Not running in cron mode [cont-init.d] 20-cron.sh: exited 0. |
Facing a similar issue. |
So I got it working on my local system using perkeep/gphotos-cdp#1 (comment). And then running gphotos-cdp directly. Trying to use the config within a docker image fails. I'm guessing that's because of the 2 factor auth |
@Satyarths hi could you add details on how it worked. I have not been able to make it work |
I used the https://github.com/perkeep/gphotos-cdp/ directly.Based on my findings, the user-config directory cannot be shared between systems (including docker and the host). |
@Satyarths Tried the perkeep link. I am still having no luck. Do you have any step by step instructions. I am on Manjaro linux with chromium 84 |
I got the same error (Linux Mint 20) when I launched chromium with Steps:
|
I'm having similar problems, and no matter what I try, I can't get chromium to respect my I also found https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1848126 which confirms this issue. I'm guessing due to the forced upgrade of chromium into snaps, the Side note: I followed the links above to the perkeep solution, but when I run the gphotos-cdp command chromium refuses to let me log in since I'm "using automation software". I don't see a reference to the Any tips are appreciated - I'm at a loss on how to best proceed. |
I ran into this initially, and found that it was a permissions issue with the user data dir. In the comment above that shows console output you can see that the script is running with uid/gid 1001:1001. My issue was that the Ubuntu image in which I authenticated created the files with root ownership, so I had to Permissions errors get a banner in chromium when you open it, saying it can't use the supplied user data dir, but dont seem to get logged to stdout in headless mode. |
Yesterday it worked on my desktop (syncing a bunch of photos, but did not have time to sync them all), I shut down the machine and when I started it today it's not doing anything anymore. I'm being hit with the
I fixed the ownership as per comment above (both download & config folders, recursive), deleted and re-created my I started the container in "foreground":
How could it have worked yesterday?! The host machine wasn't upgraded. |
One thing that worked for me was to authenticate for this profile with the following Google Chrome options:
As well as using |
@Kernald |
Same problem here. I think I've tried a little bit of everything but haven't come up with anything.
The docker run always runs on a Linux virtual machine with DietPi (Debian) on board, x64. Does anyone have any other suggestions? While I would like to launch the original go application, I don't have a Google Chrome to run in GUI in the current environment 🥲 Thanks! |
I am also running into this issue and the above solutions do not work. |
Until #62 is merged, the fixed version can be used by using a docker-compose config like this:
|
I also had to do initial authentication differently to get this working. My fork is set up to run chromium and vnc in the same base image as the main service: https://github.com/spraot/docker-gphotos-sync Just clone and run doauth.sh Edit: I'm not sure how much of that work was actually necessary, it looks like these two things ended up making the difference:
|
System Windows10 1909
DockerDesktop 2.2.0.5
Sign-in via dorowu/ubuntu-desktop-lxde-vnc without problems
PS C:\Users\philbring\Documents\GooglePhotosBackup> docker-compose up
Creating network "googlephotosbackup_default" with the default driver
Creating googlephotosbackup_gphotos-sync_1 ... done Attaching to googlephotosbackup_gphotos-sync_1
gphotos-sync_1 | INFO: No CRON setting found. Running sync once.
gphotos-sync_1 | INFO: Add CRON="0 0 * * *" to perform sync every midnight
gphotos-sync_1 | INFO: Starting sync.sh PID 7 Mon Apr 13 06:44:10 UTC 2020
gphotos-sync_1 | INFO: Starting sync!
gphotos-sync_1 | 2020/04/13 06:44:10 Session Dir: /tmp/gphotos-cdp
gphotos-sync_1 | 2020/04/13 06:44:10 pre-navigate
gphotos-sync_1 | 2020/04/13 06:44:11 authentication not possible in -headless mode
The text was updated successfully, but these errors were encountered: