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.
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? host:port host:port" is not a valid url. Not setting as proxy. foo.bar: 3128 foo.bar: 3128" is not working. Not setting as proxy.
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://
"http://
$ sudo pro config set http_proxy=http://
"http://
Using a working real proxy I was able to set this just fine for me, example: squid.internal: 3128 /squid. internal: 3128
$ sudo pro config set http_proxy=http://
Setting snap proxy
Setting Livepatch proxy
$ sudo pro config set https_proxy=https:/
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 /github. com/canonical/ ubuntu- advantage- client/ commit/ 508db0f80664cb9 dca78d7ea63e573 6c004dc67f /github. com/canonical/ ubuntu- advantage- client/ blob/main/ docs/howtoguide s/configure_ proxies. md
[2]: https:/
[3]: https:/