GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.6k stars 205 forks source link

Connection to oauth2.googleapis.com timed out #357

Open pradeepchordia opened 2 years ago

pradeepchordia commented 2 years ago

I am encountering following error when trying to install on Linux. Any suggestion on what might be causing this?

[root@localhost xxx]# bash <(curl -s -S -L https://git.io/gyb-install) This Linux distribution uses glibc 2.17 Checking GitHub URL https://api.github.com/repos/GAM-team/got-your-back/releases for latest GYB release (unauthenticated)...

Getting file and download URL...

Downloading file gyb-1.55-linux-x86_64-legacy.tar.xz from https://github.com/GAM-team/got-your-back/releases/download/v1.55/gyb-1.55-linux-x86_64-legacy.tar.xz to /tmp/tmp.4zO8bAvSYA (unauthenticated)...

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 672 100 672 0 0 1268 0 --:--:-- --:--:-- --:--:-- 1270 100 27.1M 100 27.1M 0 0 4808k 0 0:00:05 0:00:05 --:--:-- 5970k Extracting archive to /root/bin

Finished extracting GYB archive.

Adding gyb alias to profile file /root/.bashrc.

Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) no

Please enter your email address: <..REMOVED..>

Go to the following link in your browser:

https://gyb-shortn.jaylee.us/<...REMOVED..>

Enter verification code: <...REMOVED...>

Traceback (most recent call last): File "urllib3/connection.py", line 174, in _new_conn File "urllib3/util/connection.py", line 95, in create_connection File "urllib3/util/connection.py", line 85, in create_connection TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "urllib3/connectionpool.py", line 703, in urlopen File "urllib3/connectionpool.py", line 386, in _make_request File "urllib3/connectionpool.py", line 1040, in _validate_conn File "urllib3/connection.py", line 358, in connect File "urllib3/connection.py", line 179, in _new_conn urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f39d3572140>, 'Connection to oauth2.googleapis.com timed out. (connect timeout=None)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "requests/adapters.py", line 440, in send File "urllib3/connectionpool.py", line 785, in urlopen File "urllib3/util/retry.py", line 592, in increment urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f39d3572140>, 'Connection to oauth2.googleapis.com timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "gyb.py", line 2532, in File "gyb.py", line 1817, in main File "gyb.py", line 1109, in doCreateProject File "gyb.py", line 898, in getCRMService File "gyb.py", line 883, in _run_oauth_flow File "google_auth_oauthlib/flow.py", line 411, in run_console File "google_auth_oauthlib/flow.py", line 286, in fetch_token File "requests_oauthlib/oauth2_session.py", line 336, in fetch_token File "requests_oauthlib/oauth2_session.py", line 515, in request File "requests/sessions.py", line 529, in request File "requests/sessions.py", line 645, in send File "requests/adapters.py", line 507, in send requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f39d3572140>, 'Connection to oauth2.googleapis.com timed out. (connect timeout=None)')) [17840] Failed to execute script 'gyb' due to unhandled exception! Project creation failed. Trying again.