Open Gmerold opened 7 months ago
Hi @Gmerold!
Thanks for this bug report! I'm curious what your /etc/environment
looked like when you have the upper-case http{s} proxies set and what it looks like when this does work. Thanks!
Hi @townsend2010!
Sure, here's the original version (not working):
ubuntu@telco-github-runner-1:~$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
HTTP_PROXY=http://squid.internal:3128
HTTPS_PROXY=http://squid.internal:3128
NO_PROXY="localhost,127.0.0.1,.jujucharms.com,.ubuntu.com,upf-operator"
http_proxy=http://squid.internal:3128
https_proxy=http://squid.internal:3128
no_proxy="localhost,127.0.0.1,.jujucharms.com,.ubuntu.com,upf-operator"
Then I just removed all 3 uppercase proxy variables.
Hey @Gmerold!
Thanks for posting that. I think I might have found the issue and it shouldn't be too hard to fix.
Describe the bug Hello Team,
I'm trying to create a Multipass VM in the env running behind the proxy. I'm setting the proxy through
/etc/environment
(I'm setting both lowercase and uppercase variables for proxy). I don't want Multipass to use the proxy though, because the proxy doesn't allow connections tocdimage.ubuntu.com
. In order to bypass proxy, I've added.ubuntu.com
to theno_proxy
andNO_PROXY
variables. With this setup, when I try to launch a Multipass instance, I'm gettinglaunch failed: Remote "" is unknown or unreachable.
error. In the daemon status I can see that it's trying to use the proxy anyway:Proxy envs passed to the process are:
I tried overwriting the variables using drop-in config, but it didn't help. I tried removing proxy config for the snap using
snap set system
andsnap unset system
; also without any luck.Eventually, I was able to make it run by removing the uppercase env variables from my
/etc/environment
(HTTP_PROXY
,HTTPS_PROXY
andNO_PROXY
). This doesn't seem right tho.Would be great if someone could look into it. Please let me know in case any additional info is needed.
BR, Bartek
To Reproduce How, and what happened?
multipass launch 22.04
Expected behavior What did you expect to happen?
Logs Relevant logs available in the description
Additional info
multipass version
= 1.13.1multipass get local.driver
= lxd