Comment 6 for bug 1999909

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi David,
Due to the shutdown phase this got no responses yet, sorry.
There will be more people looking after it later.

But until then as a start of the discussion the settings of proxies is done slightly different to what you've reported. As [1] shows, or better the recently improved proxy docs [2] that can be seen here already [3] - you need key=value to set config values.

In addition you said "times out and fails", but could you show what exactly happens?
You usually get meaningful error messages which might help in this case.
Either to clarify the problem or to identify a case that needs a better error message.
Example
$ sudo pro config set http_proxy=http://host:port
"http://host:port" is not a valid url. Not setting as proxy.
$ sudo pro config set http_proxy=http://foo.bar:3128
"http://foo.bar:3128" is not working. Not setting as proxy.

Using a working real proxy I was able to set this just fine for me, example:
$ sudo pro config set http_proxy=http://squid.internal:3128
Setting snap proxy
Setting Livepatch proxy
$ sudo pro config set https_proxy=https://squid.internal:3128
Setting snap proxy
Setting Livepatch proxy

So could you please retest this command as documented and shown here and then report back the full output and behavior.

P.S. Thanks Hua Zhang, I have indeed seen that problem in other cases (not related to pro) and it was a valid workaround there. Not sure yet if it is here, I want to understand the original problem better to conclude.

Setting to incomplete until details are clarified.

[1]: https://canonical-ubuntu-advantage-client.readthedocs-hosted.com/en/latest/howtoguides/configure_proxies.html
[2]: https://github.com/canonical/ubuntu-advantage-client/commit/508db0f80664cb9dca78d7ea63e5736c004dc67f
[3]: https://github.com/canonical/ubuntu-advantage-client/blob/main/docs/howtoguides/configure_proxies.md