Connection Time Out error while snapcraft login through Terminal


#1

I am trying to upload a snap to canonical. I am a registered user. I am able to login through browser using my credentials but when I use command “snapcraft login” and enter the same registered credentials I am getting below timeout error,

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac1cf19668>: Failed to establish a new connection: [Errno 110] Connection timed out',))': /dev/api/acl/

#2

I believe we spoke earlier via intercom. Thanks for creating this thread. Could you please add the output from following debug commands:

snap version

snapcraft version

Thanks


#3

This suggests the proxy server you have configured is unreachable. Can you check that your proxy is reachable and working properly, and/or maybe try unsetting the proxy? I’m unsure how this is done in Snapcraft, I think it honors the http_proxy and https_proxy variables.

  • Daniel

#4

I’m having a similar problem. I can’t snapcraft login --with auth.file from a Jenkins server, which requires an http_proxy to access the snap store. It doesn’t seem to be using the http_proxy and https_proxy environment variables I’ve set.

How can I use snapcraft through a corporate http proxy?


#5

Never mind, our proxy doesn’t allow snap store atm… will have to get that whitelisted…