Reputation: 557
I installed vagrant-proxyconf and added to Vagrantfile the following:
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://192.168.33.10:3128/"
config.proxy.https = "http://192.168.33.10:3128/"
end
Later I uninstalled vagrant-proxyconf and removed the above lines from Vagrantfile.
Now every time I try to use apt-get or npm i , I get this error message:
Failed to connect to 192.168.33.10 port 3128: Connection refused
So the proxy settings are still somewhere within the vagrant config, yet not in the Vagrantfile. Where else can I look?
Upvotes: 1
Views: 457
Reputation: 44635
You have removed both the plugin and its config for your vm after your vm had been configured (on vagrant up
). Now when you start your existing vm again, the configuration done by the gone plugin is still in place.
The easiest way to get everything back is simply to vagrant destroy
your existing machine and vagrant up
a fresh new one.
If for whatever reason you wish to keep your existing machine, you can:
vagrant halt
if it is onvagrant install vagrant-proxyconf
without any config in placevagrant up
so that the proxy is deconfigured everywhere needed,vagrant halt
the machine againThe latest solution is to check what the plugin is doing exactly in your particular case (OS, provider, etc...) by analysing its source code and remove every config done in your vm manually (environment variables, config for apt, etc...)
Upvotes: 1