Smart-proxy 1.6.0 on Windows (native_ms DHCP)

I've decided to update my native_ms DHCP smart-proxy from 1.5.2 to 1.6.0
and unable to start the smart proxy
The release 1.5.2 works just fine on Windows 2008, but not the 1.6.0 from
https://github.com/theforeman/puppet-foreman_proxy

I've followed the Foreman manual and it worked fine for releases 1.5.1 and
1.5.2 - http://www.theforeman.org/manuals/1.6/index.html#4.3.5DHCP
Shall I maybe use Ruby 1.9.x with smart-proxy 1.6.0? Please advise.

I receive the below error message when attempt to start smart-proxy 1.6.0:

C:/ForemanProxy160/lib/bundler_helper.rb:24:in `require': no such file to
load – bundler (LoadError)

  •    from C:/ForemanProxy160/lib/bundler_helper.rb:24:in 
    

`require_groups'*

  •    from C:/ForemanProxy160/lib/smart_proxy.rb:23*
    
  •    from C:/ForemanProxy160/bin/smart-proxy:5:in `require'*
    
  •    from C:/ForemanProxy160/bin/smart-proxy:5*
    

My Ruby environment on Windows 2008 Server.

C:>ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [i386-mingw32]

C:>gem list --local

*** LOCAL GEMS ***

bundler (1.7.3)
columnize (0.3.2)
ffi (1.9.3 x86-mingw32)
highline (1.6.1)
json (1.4.6 x86-mswin32)
linecache (0.43 mswin32)
mime-types (1.16)
mocha (0.9.11)
net-ping (1.3.7)
rack (1.2.0)
rake (10.3.2, 0.8.7)
rest-client (1.6.1)
sinatra (1.1.0)
tilt (1.4.1, 1.1)
win32-api (1.4.6 x86-mswin32-60)
win32-open3 (0.3.2 x86-mswin32-60)
win32-service (0.8.5)
windows-api (0.4.2, 0.4.0)
windows-pr (1.2.3, 1.1.2)

Thank you!

Hi,

··· On Wed, Sep 24, 2014 at 02:04:30PM -0700, Evgeny Vasilchenko wrote: > I receive the below error message when attempt to start smart-proxy 1.6.0: > > *C:/ForemanProxy160/lib/bundler_helper.rb:24:in `require': no such file to > load -- bundler (LoadError)* > * from C:/ForemanProxy160/lib/bundler_helper.rb:24:in > `require_groups'* > * from C:/ForemanProxy160/lib/smart_proxy.rb:23* > * from C:/ForemanProxy160/bin/smart-proxy:5:in `require'* > * from C:/ForemanProxy160/bin/smart-proxy:5*

There was a report on the IRC channel about that yesterday and the user
stated, copying Gemfile to Gemfile.in got him further.

Regards

Michael Moll

Thank you Michael - I will try.
Evgeny

··· On Thursday, September 25, 2014 2:09:31 AM UTC-7, Michael Moll wrote: > > Hi, > > On Wed, Sep 24, 2014 at 02:04:30PM -0700, Evgeny Vasilchenko wrote: > > I receive the below error message when attempt to start smart-proxy > 1.6.0: > > > > *C:/ForemanProxy160/lib/bundler_helper.rb:24:in `require': no such file > to > > load -- bundler (LoadError)* > > * from C:/ForemanProxy160/lib/bundler_helper.rb:24:in > > `require_groups'* > > * from C:/ForemanProxy160/lib/smart_proxy.rb:23* > > * from C:/ForemanProxy160/bin/smart-proxy:5:in `require'* > > * from C:/ForemanProxy160/bin/smart-proxy:5* > > There was a report on the IRC channel about that yesterday and the user > stated, copying Gemfile to Gemfile.in got him further. > > Regards > -- > Michael Moll >

Yes, it worked for me after two changes:

  1. copy Gemfile to GemFile.in

  2. gem install bundler_ext

I run smart-proxy 1.6.0 on Windows 2008R2 now…

Thank you!
Evgeny

··· On Friday, September 26, 2014 9:43:24 AM UTC-7, Evgeny Vasilchenko wrote: > > Thank you Michael - I will try. > Evgeny > > On Thursday, September 25, 2014 2:09:31 AM UTC-7, Michael Moll wrote: >> >> Hi, >> >> On Wed, Sep 24, 2014 at 02:04:30PM -0700, Evgeny Vasilchenko wrote: >> > I receive the below error message when attempt to start smart-proxy >> 1.6.0: >> > >> > *C:/ForemanProxy160/lib/bundler_helper.rb:24:in `require': no such file >> to >> > load -- bundler (LoadError)* >> > * from C:/ForemanProxy160/lib/bundler_helper.rb:24:in >> > `require_groups'* >> > * from C:/ForemanProxy160/lib/smart_proxy.rb:23* >> > * from C:/ForemanProxy160/bin/smart-proxy:5:in `require'* >> > * from C:/ForemanProxy160/bin/smart-proxy:5* >> >> There was a report on the IRC channel about that yesterday and the user >> stated, copying Gemfile to Gemfile.in got him further. >> >> Regards >> -- >> Michael Moll >> >