GAM-team / GAM

command line management for Google Workspace
https://github.com/GAM-team/GAM/wiki
Apache License 2.0
3.53k stars 473 forks source link

Error installing HTTPSConnection... Full Error in Post #1565

Closed rgilman76 closed 2 years ago

rgilman76 commented 2 years ago

Installing GAM on New server Never Had Gam Before on this machine Machine is not using a proxy.

Error is generated after pasting the "Unable to Connect" link from another computer back to the server.

Error message is below

ERROR: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001DAA6A7AF80>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Let me know what additional information you need.

taers232c commented 2 years ago

I'd start by installing the current version 6.25

Ross Scroggs @.***

On Sep 30, 2022, at 11:16 AM, rgilman76 @.***> wrote:

Installing GAM on New server Never Had Gam Before on this machine Machine is not using a proxy.

Error is generated after pasting the "Unable to Connect" link from another computer back to the server.

Error message is below

ERROR: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001DAA6A7AF80>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Let me know what additional information you need.

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1565, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL4WHT3WIZG3C5SICC3WA4U65ANCNFSM6AAAAAAQZ72B4Q. You are receiving this because you are subscribed to this thread.

jay0lee commented 2 years ago

And then running:

gam checkconn

But the answer is that some software or device on your network is interfering with GAM's connections.

Jay

On Fri, Sep 30, 2022, 2:34 PM Ross Scroggs @.***> wrote:

I'd start by installing the current version 6.25

Ross Scroggs @.***

On Sep 30, 2022, at 11:16 AM, rgilman76 @.***> wrote:

Installing GAM on New server Never Had Gam Before on this machine Machine is not using a proxy.

Error is generated after pasting the "Unable to Connect" link from another computer back to the server.

Error message is below

ERROR: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded with url: /token (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001DAA6A7AF80>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

Let me know what additional information you need.

— Reply to this email directly, view it on GitHub < https://github.com/GAM-team/GAM/issues/1565>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACCTYL4WHT3WIZG3C5SICC3WA4U65ANCNFSM6AAAAAAQZ72B4Q . You are receiving this because you are subscribed to this thread.

— Reply to this email directly, view it on GitHub https://github.com/GAM-team/GAM/issues/1565#issuecomment-1263893629, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDIZMGTPH5J7QVRZGOE543WA4XDNANCNFSM6AAAAAAQZ72B4Q . You are receiving this because you were assigned.Message ID: @.***>

rgilman76 commented 2 years ago

So I solved this myself.

The problem is that command prompts in windows aren't, by default, proxy aware,

The resolution was to set the system variables for HTTP_PROXY, HTTPS_PROXY, FTP_PROXY.

This allows the Command prompt in windwos to utalize the PRoxy server.

jay0lee commented 2 years ago

Proxy is covered in the Wiki. You shouldn't need FTP_PROXY

https://github.com/GAM-team/GAM/wiki#using-gam-with-a-http-proxy