vagrant-proxyconf “`split': bad URI” error on installing plugin for Vagrant 1.6.5

770 views
Skip to first unread message

syc...@husky.ca

unread,
Dec 4, 2014, 12:51:28 AM12/4/14
to vagra...@googlegroups.com
   I installed vagrant 1.6.5 and created one Windows XP (with service pack 3) box by VirtualBox. My host was Windows 7 Enterprise edition(64 bit) with service pack 1.
  
   I set http_proxy format like this: http://domain\username:password@proxy:port. When I run "vagrant plugin install vagrant-proxyconf", I got the same error as the following link on the stackoverflow(http://stackoverflow.com/questions/26414803/vagrant-proxyconf-split-bad-uri-error-on-installing-plugin-for-vagrant).   Any idea about this issue?

Alvaro Miranda Aguilera

unread,
Dec 4, 2014, 3:42:35 PM12/4/14
to vagra...@googlegroups.com
can you paste your own error here?


On Thu, Dec 4, 2014 at 6:51 PM, <syc...@husky.ca> wrote:
   I installed vagrant 1.6.5 and created one Windows XP (with service pack 3) box by VirtualBox. My host was Windows 7 Enterprise edition(64 bit) with service pack 1.
  
   I set http_proxy format like this: http://domain\username:password@proxy:port. When I run "vagrant plugin install vagrant-proxyconf", I got the same error as the following link on the stackoverflow(http://stackoverflow.com/questions/26414803/vagrant-proxyconf-split-bad-uri-error-on-installing-plugin-for-vagrant).   Any idea about this issue?

--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

syc...@husky.ca

unread,
Dec 4, 2014, 8:05:57 PM12/4/14
to vagra...@googlegroups.com
I pasted my errors as followed:

D:\work>vagrant plugin install vagrant-proxyconf

Installing the 'vagrant-proxyconf' plugin. This can take a few minutes...
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad U
RI(is not URI?): http://domainname\username:password@proxy:port" (URI:
:InvalidURIError)
        from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:211:in `
parse'
        from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:747:in `
parse'
        from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/uri/common.rb:996:in `
URI'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/v
endor/net/http/persistent.rb:908:in `proxy_from_env'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/v
endor/net/http/persistent.rb:858:in `proxy='
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/v
endor/net/http/persistent.rb:528:in `initialize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/f
etcher.rb:113:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/f
etcher.rb:113:in `connection'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/f
etcher.rb:103:in `initialize'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:262:in `new'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:262:in `block in remote_specs'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:262:in `map'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:262:in `remote_specs'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:202:in `fetch_specs'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/s
ource/rubygems.rb:66:in `specs'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:216:in `block (2 levels) in index'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:213:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:213:in `block in index'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/i
ndex.rb:9:in `build'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:209:in `index'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:203:in `resolve'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:133:in `specs'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/d
efinition.rb:122:in `resolve_remotely!'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/i
nstaller.rb:76:in `run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/i
nstaller.rb:15:in `install'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/b
undler.rb:226:in `block in internal_install'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/b
undler.rb:284:in `block in with_isolated_gem'
        from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interact
ion.rb:40:in `use_ui'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/b
undler.rb:283:in `with_isolated_gem'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/b
undler.rb:225:in `internal_install'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/b
undler.rb:92:in `install'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/p
lugin/manager.rb:62:in `block in install_plugin'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/p
lugin/manager.rb:72:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/p
lugin/manager.rb:72:in `install_plugin'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/action/install_gem.rb:37:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/a
ction/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/a
ction/builder.rb:116:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/a
ction/runner.rb:66:in `block in run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/u
til/busy.rb:19:in `busy'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/a
ction/runner.rb:66:in `run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/command/base.rb:14:in `action'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/command/install.rb:32:in `block in execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/command/install.rb:31:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/command/install.rb:31:in `execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/comma
nds/plugin/command/root.rb:56:in `execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/c
li.rb:42:in `execute'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/e
nvironment.rb:292:in `cli'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.5/bin/vagrant:1
74:in `<main>'

Alvaro Miranda Aguilera

unread,
Dec 4, 2014, 9:20:20 PM12/4/14
to vagra...@googlegroups.com
how are you escaping the user?

should be   domain%5Cuser:password@server:port

syc...@husky.ca

unread,
Dec 4, 2014, 9:30:54 PM12/4/14
to vagra...@googlegroups.com
I set as your suggestion. But I got the following error.

Installing the 'vagrant-proxyconf' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
Could not fetch specs from https://rubygems.org/
Retrying source fetch due to error (2/3): Bundler::HTTPError Could not fetch spe
cs from https://rubygems.org/Retrying source fetch due to error (3/3): Bundler::
HTTPError Could not fetch specs from https://rubygems.org/

Alvaro Miranda Aguilera

unread,
Dec 4, 2014, 11:28:43 PM12/4/14
to vagra...@googlegroups.com
hello, 

how are you setting those? can you share? I can't guess.

can be http_proxy, and https_proxy lowercase/uppercase, with export, without export..  then something with no quotes, or single quotes, or double quotes..

can you share how are you doing it?

syc...@husky.ca

unread,
Dec 5, 2014, 2:05:20 AM12/5/14
to vagra...@googlegroups.com
I type the following command in cmd window.
set http_proxy=http://domainname%5Cusername:password@proxy:port

then type:
vagrant plugin install vagrant-proxyconf

Is this correct?

Alvaro Miranda Aguilera

unread,
Dec 5, 2014, 2:23:14 AM12/5/14
to vagra...@googlegroups.com
hello,

http_proxy is for http connection

try https_proxy also

and use quotes

https_proxy="...."

if that doesn't work, try capital letters

HTTP_PROXY
and
HTTPS_PROXY

syc...@husky.ca

unread,
Dec 5, 2014, 3:53:07 AM12/5/14
to vagra...@googlegroups.com
Hi,
   Thanks for your reply. The issue is resolved.

Kumar R

unread,
Jul 3, 2019, 9:38:01 AM7/3/19
to Vagrant
I am also facing same issue in my ubuntu machine.Could you please post the solution. ?
Reply all
Reply to author
Forward
0 new messages