-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Google Authentication issues #57
Comments
If someone has a running version with gkeepapi==0.15.1 please let me know :-) |
Hi, I recommend trying to use the docker image. Propably u got some conflict with openssl on python anywhere. |
Thanks. If you don't mind me asking, how do I use the docker image? I'm
completely new to all of this!
…On Sun, Feb 18, 2024, 3:05 a.m. flecmart ***@***.***> wrote:
Hi,
I recommend trying to use the docker image. Propably u got some conflict
with openssl on python anywhere.
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGHI3OXUULXX2I3R2CRUMCDYUGY4VAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQHE4TOMJVGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
You need to install docker on your machine, I think with python anywhere
this might not work but you can use an aws ec2 instance for example or even
a raspberry pi at home.
Am So., 18. Feb. 2024 um 14:06 Uhr schrieb mchoochoo <
***@***.***>:
… Thanks. If you don't mind me asking, how do I use the docker image? I'm
completely new to all of this!
On Sun, Feb 18, 2024, 3:05 a.m. flecmart ***@***.***> wrote:
> Hi,
>
> I recommend trying to use the docker image. Propably u got some conflict
> with openssl on python anywhere.
>
> —
> Reply to this email directly, view it on GitHub
> <
#57 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/BGHI3OXUULXX2I3R2CRUMCDYUGY4VAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQHE4TOMJVGM>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNSHS2F4OKFQD7MXRXRCZLYUH4GNAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZDCMJZGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is there any way to do with as a (free) web service? I don't have a
machine at home that is on all the time.
…On Sun, Feb 18, 2024, 8:31 a.m. flecmart ***@***.***> wrote:
You need to install docker on your machine, I think with python anywhere
this might not work but you can use an aws ec2 instance for example or
even
a raspberry pi at home.
Am So., 18. Feb. 2024 um 14:06 Uhr schrieb mchoochoo <
***@***.***>:
> Thanks. If you don't mind me asking, how do I use the docker image? I'm
> completely new to all of this!
>
> On Sun, Feb 18, 2024, 3:05 a.m. flecmart ***@***.***> wrote:
>
> > Hi,
> >
> > I recommend trying to use the docker image. Propably u got some
conflict
> > with openssl on python anywhere.
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#57 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/BGHI3OXUULXX2I3R2CRUMCDYUGY4VAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQHE4TOMJVGM>
>
> > .
> > You are receiving this because you commented.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#57 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACNSHS2F4OKFQD7MXRXRCZLYUH4GNAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZDCMJZGM>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BGHI3OUY57ALABC5SJ4V5FLYUH7BLAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZDOMJQGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am sure there is a free or cheap service but I don't have any specific
recommendations as I host my stuff myself
mchoochoo ***@***.***> schrieb am So., 18. Feb. 2024, 15:19:
… Is there any way to do with as a (free) web service? I don't have a
machine at home that is on all the time.
On Sun, Feb 18, 2024, 8:31 a.m. flecmart ***@***.***> wrote:
> You need to install docker on your machine, I think with python anywhere
> this might not work but you can use an aws ec2 instance for example or
> even
> a raspberry pi at home.
>
> Am So., 18. Feb. 2024 um 14:06 Uhr schrieb mchoochoo <
> ***@***.***>:
>
> > Thanks. If you don't mind me asking, how do I use the docker image?
I'm
> > completely new to all of this!
> >
> > On Sun, Feb 18, 2024, 3:05 a.m. flecmart ***@***.***> wrote:
> >
> > > Hi,
> > >
> > > I recommend trying to use the docker image. Propably u got some
> conflict
> > > with openssl on python anywhere.
> > >
> > > —
> > > Reply to this email directly, view it on GitHub
> > > <
> >
>
#57 (comment)>,
>
> >
> > > or unsubscribe
> > > <
> >
>
https://github.com/notifications/unsubscribe-auth/BGHI3OXUULXX2I3R2CRUMCDYUGY4VAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQHE4TOMJVGM>
>
> >
> > > .
> > > You are receiving this because you commented.Message ID:
> > > ***@***.***>
> > >
> >
> > —
> > Reply to this email directly, view it on GitHub
> > <
>
#57 (comment)>,
>
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ACNSHS2F4OKFQD7MXRXRCZLYUH4GNAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZDCMJZGM>
>
> > .
> > You are receiving this because you authored the thread.Message ID:
> > ***@***.***>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <
#57 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/BGHI3OUY57ALABC5SJ4V5FLYUH7BLAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZDOMJQGU>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNSHS5FZQAPIHABZ4RZG5DYUIEY7AVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGMZTSOJQGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Getting a failure at the "requesting new token", I have gone through and updated everything on my pi and reinstalled the docker. I run it through portainer. I am not super savy, so any advice for troubleshooting would be appreciated!
|
Hey,
`Temporary failure in name resolution` sounds like a DNS problem for me.
Did not see this before though. Do you know what you have configured for
DNS on your pi? Looking into that is where I would start.
Neislerw ***@***.***> schrieb am Mo., 11. März 2024, 19:55:
… Getting a failure at the "requesting new token", I have gone through and
updated everything on my pi and reinstalled the docker. I run it through
portainer. I am not super savy, so any advice for troubleshooting would be
appreciated!
`2024-03-11 18:48:25 configManager-INFO: validating configuration with schema 'config.schema.yaml'
2024-03-11 18:48:25 configManager-INFO: schema validation passed 👍
2024-03-11 18:48:25 configManager-INFO: configuration validation passed 👍
2024-03-11 18:48:25 configManager-INFO: updated config: config.yaml
2024-03-11 18:48:25 app-INFO: authenticating gkeepapi
2024-03-11 18:48:25 app-INFO: requesting new token
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 962, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn
conn.connect()
File "/venv/lib/python3.11/site-packages/urllib3/connection.py", line 363, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f84b32710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 799, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b32710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/app.py", line 234, in <module>
google_login(keep, configManager.config['google_username'], configManager.config['google_password'], device_id='3ee9002270d00157')
File "/app/app.py", line 48, in google_login
keep.login(user, password, sync=False, device_id=device_id)
File "/venv/lib/python3.11/site-packages/gkeepapi/__init__.py", line 697, in login
ret = auth.login(email, password, device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/gkeepapi/__init__.py", line 54, in login
res = gpsoauth.perform_master_login(self._email, password, self._device_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/gpsoauth/__init__.py", line 143, in perform_master_login
return _perform_auth_request(data, proxy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/gpsoauth/__init__.py", line 86, in _perform_auth_request
res = session.post(AUTH_URL, data=data, verify=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='android.clients.google.com', port=443): Max retries exceeded with url: /auth (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f84b32710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))`
—
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACNSHSYFPP4GTW4RS6QNCRTYXYD2HAVCNFSM6AAAAABAWP7B7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBZGIYDSMJZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Whoops, yeah it seems like my pi-Hole docker was the issue. It was working fine for months, not sure what changed, but switching back to default DNS fixed the issue. I'll have to look in to it closer to see if I can have them both working at the same time. Thanks for the pointer! Great project by the way! |
Meanwhile there were updates to gpsoauth and gkeepapi as a lot of users had those problems. See #77 and #66 Some info on the alternative approach here: https://github.com/simon-weber/gpsoauth?tab=readme-ov-file#alternative-flow Last time when I read through I thought it was not as intuitive and easy as the current working flow, but I think at some point I need to upgrade those dependencies and test it myself. But at the moment I have no time... if anyone has the resources and skills to implement and test those changes I am happy to review and merge it - more I cannot do at the moment because I don' |
Update: I implemented the new authentication flow in #91. Did not have time to really test it yet and do not want to break thins that are working still, but in case someone wants to try just clone the code from the branch in the referenced pull request. It should work I did start up the sync and everything seemed to work. If you want to try, just
And everything should work |
What currently works is:
on
python:3.11-bullseye
image withOpenSSL 1.1.1w 11 Sep 2023
As soon as I upgrade gpsoauth or gkeepapi (which uses gpsoauth), I end up with something like this:
{"Error": "NeedsBrowser", "Url": "https://accounts.google.com/signin/continue?sarp=1&scc=1&continue=https://accounts.google.com/o/android/auth?hl%3Den_us%26xoauth_display_name%3DAndroid%2BLogin%2BService%26source%3DAndroid%2BLogin&plt=VERY_LONG_TOKEN_REDACTED", "ErrorDetail": "To access your account, you must sign in on the web. Touch Next to start browser sign-in."}
- also see simon-weber/gpsoauth#60As soon as I upgrade the os to OpenSSl 3, I end up with
BadAuthentication
- also see simon-weber/gpsoauth#48The text was updated successfully, but these errors were encountered: