Hi,
I'm trying to install Smart-proxy on a Windows 2008 R2 (64-bit) since
we have a MS DHCP-server.
I'm following this instructions
MS DHCP - Smart Proxy - Foreman and I get a
problem at step 11
11) Test the installation by running ruby bin\smart-proxy.rb
C:\foreman-smart-proxy>\Ruby187\bin\ruby.exe bin/smart-proxy
C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in
report_activate_error': RubyGem version error: win32-open3(0.3.2 not >= 0) (Gem::LoadError) from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in
activate_dep'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in activate' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:213:in
try_activate'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:56:in
require' from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping/external.rb:8 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping.rb:10 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in
require' from ./bin/../lib/proxy/dhcp/subnet.rb:5 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from ./bin/../lib/proxy/dhcp/record.rb:1 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from ./bin/../lib/proxy/dhcp.rb:2 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require' from ./bin/../lib/proxy.rb:15 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require'
from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from bin/smart-proxy:7
I also reinstalled win32-open3 just to make sure it was installed.
Does anyone know how to solve this?
···
--
Kai Stian Olstad
> Hi,
>
> I'm trying to install Smart-proxy on a Windows 2008 R2 (64-bit) since
> we have a MS DHCP-server.
>
> I'm following this instructions
> MS DHCP - Smart Proxy - Foreman and I get a
> problem at step 11
> 11) Test the installation by running ruby bin\smart-proxy.rb
>
> C:\foreman-smart-proxy>\Ruby187\bin\ruby.exe bin/smart-proxy
> C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in
> report_activate_error': RubyGem version error: win32-open3(0.3.2 not >>= 0) (Gem::LoadError) > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in
activate_dep'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in activate' > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:213:in
try_activate'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:56:in
> require' > from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping/external.rb:8 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> require' > from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping.rb:10 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in
> require' > from ./bin/../lib/proxy/dhcp/subnet.rb:5 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> require' > from ./bin/../lib/proxy/dhcp/record.rb:1 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> require' > from ./bin/../lib/proxy/dhcp.rb:2 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> require' > from ./bin/../lib/proxy.rb:15 > from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >
gem_original_require'
> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
> `require'
> from bin/smart-proxy:7
>
> I also reinstalled win32-open3 just to make sure it was installed.
>
> Does anyone know how to solve this?
this is the list of gems i got on a win2008 64bit host
gem list
*** LOCAL GEMS ***
highline (1.6.1)
json (1.4.6 x86-mingw32)
net-ping (1.3.7)
rack (1.2.0)
sinatra (1.1.0)
tilt (1.1)
win32-api (1.4.6 x86-mingw32)
win32-open3 (0.3.2 x86-mingw32)
win32-service (0.7.1 x86-mswin32-60)
win32console (1.3.0 x86-mingw32)
windows-api (0.4.0)
windows-pr (1.1.3)
not sure if all of them are required.
Ohad
···
On Mon, Sep 19, 2011 at 1:46 PM, Kai Stian Olstad wrote:
–
Kai Stian Olstad
–
You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>> Hi,
>>
>> I'm trying to install Smart-proxy on a Windows 2008 R2 (64-bit) since
>> we have a MS DHCP-server.
>>
>> I'm following this instructions
>> MS DHCP - Smart Proxy - Foreman and I get a
>> problem at step 11
>> 11) Test the installation by running ruby bin\smart-proxy.rb
>>
>> C:\foreman-smart-proxy>\Ruby187\bin\ruby.exe bin/smart-proxy
>> C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:926:in
>> report_activate_error': RubyGem version error: win32-open3(0.3.2 not >>>= 0) (Gem::LoadError) >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:244:in
activate_dep'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:236:in activate' >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems.rb:213:in
try_activate'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:56:in
>> require' >> from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping/external.rb:8 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> require' >> from C:/Ruby187/lib/ruby/gems/1.8/gems/net-ping-1.3.7/lib/net/ping.rb:10 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:57:in
>> require' >> from ./bin/../lib/proxy/dhcp/subnet.rb:5 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> require' >> from ./bin/../lib/proxy/dhcp/record.rb:1 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> require' >> from ./bin/../lib/proxy/dhcp.rb:2 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> require' >> from ./bin/../lib/proxy.rb:15 >> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in >>
gem_original_require'
>> from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
>> `require'
>> from bin/smart-proxy:7
>>
>> I also reinstalled win32-open3 just to make sure it was installed.
>>
>> Does anyone know how to solve this?
>
> this is the list of gems i got on a win2008 64bit host
>
> gem list
>
> *** LOCAL GEMS ***
>
> highline (1.6.1)
> json (1.4.6 x86-mingw32)
> net-ping (1.3.7)
> rack (1.2.0)
> sinatra (1.1.0)
> tilt (1.1)
> win32-api (1.4.6 x86-mingw32)
> win32-open3 (0.3.2 x86-mingw32)
> win32-service (0.7.1 x86-mswin32-60)
> win32console (1.3.0 x86-mingw32)
> windows-api (0.4.0)
> windows-pr (1.1.3)
>
> not sure if all of them are required.
>
> Ohad
I guess that the right solution would be to support bundler, sadly,
most linux distributions are not packaging bundler yet, but for
windows it would be a lot of help to install bundler and let bundler
take care for the required gems.
Ohad
···
On Mon, Sep 19, 2011 at 3:50 PM, Ohad Levy wrote:
> On Mon, Sep 19, 2011 at 1:46 PM, Kai Stian Olstad > wrote:
>
>>
>> --
>> Kai Stian Olstad
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Foreman users" group.
>> To post to this group, send email to foreman-users@googlegroups.com.
>> To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>>
>>
>
Thanks, when I replaced json, win32-api and win32-open3 with the
mingw32 version and Smart-proxy started.
I've added this to the wiki.
My problem now is that I can't find any documentation about what URL I
should use under "New Proxy".
I have tried https://servername:4567/ and get this message:
"2 error prohibited this smart proxy from being saved
There were problem with the following fields:
- Url did nor respond to a request for its feature list. The reason
given was: undefined method `get' for nil:NilClass.
- Please check the proxy is configured and running on host before saving."
My Smart-proxy is configured according to the wiki
(http://www.theforeman.org/projects/smart-proxy/wiki/MS_DHCP)
Does anyone now what URL to use? Or do I have other problems?
···
On Mon, Sep 19, 2011 at 2:50 PM, Ohad Levy wrote:
> this is the list of gems i got on a win2008 64bit host
>
> gem list
>
> *** LOCAL GEMS ***
>
> highline (1.6.1)
> json (1.4.6 x86-mingw32)
> net-ping (1.3.7)
> rack (1.2.0)
> sinatra (1.1.0)
> tilt (1.1)
> win32-api (1.4.6 x86-mingw32)
> win32-open3 (0.3.2 x86-mingw32)
> win32-service (0.7.1 x86-mswin32-60)
> win32console (1.3.0 x86-mingw32)
> windows-api (0.4.0)
> windows-pr (1.1.3)
–
Kai Stian Olstad
>> this is the list of gems i got on a win2008 64bit host
>>
>> gem list
>>
>> *** LOCAL GEMS ***
>>
>> highline (1.6.1)
>> json (1.4.6 x86-mingw32)
>> net-ping (1.3.7)
>> rack (1.2.0)
>> sinatra (1.1.0)
>> tilt (1.1)
>> win32-api (1.4.6 x86-mingw32)
>> win32-open3 (0.3.2 x86-mingw32)
>> win32-service (0.7.1 x86-mswin32-60)
>> win32console (1.3.0 x86-mingw32)
>> windows-api (0.4.0)
>> windows-pr (1.1.3)
>
> Thanks, when I replaced json, win32-api and win32-open3 with the
> mingw32 version and Smart-proxy started.
> I've added this to the wiki.
>
> My problem now is that I can't find any documentation about what URL I
> should use under "New Proxy".
> I have tried https://servername:4567/ and get this message:
>
> "2 error prohibited this smart proxy from being saved
> There were problem with the following fields:
> * Url did nor respond to a request for its feature list. The reason
> given was: undefined method `get' for nil:NilClass.
> * Please check the proxy is configured and running on host before saving."
>
> My Smart-proxy is configured according to the wiki
> (http://www.theforeman.org/projects/smart-proxy/wiki/MS_DHCP)
>
> Does anyone now what URL to use? Or do I have other problems?
which version of the proxy are you using? and foreman?
does http://proxy/features and /dhcp show up anything?
Ohad
···
On Thu, Sep 22, 2011 at 4:25 PM, Kai Stian Olstad wrote:
> On Mon, Sep 19, 2011 at 2:50 PM, Ohad Levy wrote:
>
> --
> Kai Stian Olstad
>
> --
> You received this message because you are subscribed to the Google Groups "Foreman users" group.
> To post to this group, send email to foreman-users@googlegroups.com.
> To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
>
>
http(s)://servername:8443/features
or
http(s)://servername:8443/dhcp
The extra/install service script seems to depend on a certain version of ruby so please be sure to install what is listed at the top of the ms dhcp doc.
I use 2008 R2 64bit.
Corey Osman
corey@logicminds.biz
Green I.T and Datacenter Automation Specialist
···
On Sep 22, 2011, at 6:25 AM, Kai Stian Olstad wrote:
On Mon, Sep 19, 2011 at 2:50 PM, Ohad Levy ohadlevy@gmail.com wrote:
this is the list of gems i got on a win2008 64bit host
gem list
*** LOCAL GEMS ***
highline (1.6.1)
json (1.4.6 x86-mingw32)
net-ping (1.3.7)
rack (1.2.0)
sinatra (1.1.0)
tilt (1.1)
win32-api (1.4.6 x86-mingw32)
win32-open3 (0.3.2 x86-mingw32)
win32-service (0.7.1 x86-mswin32-60)
win32console (1.3.0 x86-mingw32)
windows-api (0.4.0)
windows-pr (1.1.3)
Thanks, when I replaced json, win32-api and win32-open3 with the
mingw32 version and Smart-proxy started.
I’ve added this to the wiki.
My problem now is that I can’t find any documentation about what URL I
should use under “New Proxy”.
I have tried https://servername:4567/ and get this message:
"2 error prohibited this smart proxy from being saved
There were problem with the following fields:
- Url did nor respond to a request for its feature list. The reason
given was: undefined method `get’ for nil:NilClass.
- Please check the proxy is configured and running on host before saving."
My Smart-proxy is configured according to the wiki
(http://www.theforeman.org/projects/smart-proxy/wiki/MS_DHCP)
Does anyone now what URL to use? Or do I have other problems?
–
Kai Stian Olstad
–
You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
Proxy version 0.2 and Foreman 0.3.
When I tries http I get the following error in the Proxy:
[2011-09-23 15:16:04] ERROR OpenSSL::SSL::SSLError: SSL_accept
returned=1 errno=0 state=SSLv2/v3 read client hello A: http request
C:/Ruby187/lib/ruby/1.8/openssl/ssl-internal.rb:166:in `accept'
When I use https on /features i get:
Supported features
And under /dhcp:
Subnets
Total of 0 subnets
···
On Thu, Sep 22, 2011 at 5:14 PM, Ohad Levy wrote:
> On Thu, Sep 22, 2011 at 4:25 PM, Kai Stian Olstad > wrote:
>> Does anyone now what URL to use? Or do I have other problems?
>
> which version of the proxy are you using? and foreman?
> does http://proxy/features and /dhcp show up anything?
–
Kai Stian Olstad
>>> Does anyone now what URL to use? Or do I have other problems?
>>
>> which version of the proxy are you using? and foreman?
>> does http://proxy/features and /dhcp show up anything?
>
> Proxy version 0.2 and Foreman 0.3.
>
> When I tries http I get the following error in the Proxy:
> [2011-09-23 15:16:04] ERROR OpenSSL::SSL::SSLError: SSL_accept
> returned=1 errno=0 state=SSLv2/v3 read client hello A: http request
> C:/Ruby187/lib/ruby/1.8/openssl/ssl-internal.rb:166:in `accept'
>
> When I use https on /features i get:
> Supported features
> * dhcp
>
thats odd, can you paste the logs from the proxy when trying to add it
in foreman (and I guess foreman logs too:))
> And under /dhcp:
> Subnets
> Total of 0 subnets
Do you have any subnets configured on that host? is that the right output?
···
On Fri, Sep 23, 2011 at 4:30 PM, Kai Stian Olstad wrote:
> On Thu, Sep 22, 2011 at 5:14 PM, Ohad Levy wrote:
>> On Thu, Sep 22, 2011 at 4:25 PM, Kai Stian Olstad >> wrote:
–
Kai Stian Olstad
–
You received this message because you are subscribed to the Google Groups “Foreman users” group.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/foreman-users?hl=en.
I'm sorry about the delayed answer. A vacation and some other tasks
got in the way.
I had wrong IP for the DHCP server in my proxy configuration.
With a browser /feature gives me dhcp and /dhcp list all the scopes.
When I add a new proxy (https://proxy:4567) in Foreman no traffic is
going from Foreman to the proxy according to tcpdump. But I get the
following in Foreman's log:
Processing SmartProxiesController#create (for 127.0.0.1 at 2011-11-08
12:34:58) [POST]
Parameters: {"commit"=>"Save changes", "smart_proxy"=>{"name"=>"T",
"url"=>"https://proxy:4567"}, "authenticity_token"=>"<removed>"}
Failed to initialize connection to proxy: No such file or directory -
/usr/share/foreman/.puppet/var/ssl/certs/foreman.example.com.pem
Rendering template within layouts/application
Rendering smart_proxies/new
Completed in 38ms (View: 26, DB: 3) | 200 OK
[http://unix-master3/foreman/smart_proxies]
The pem file is located here
/var/lib/puppet/ssl/cert/foreman.example.com.pem but Foreman is trying
a different path.
The only thing that's not comment out i /etc/foreman/settings.yml is:
:tftppath: tftp/
I guess I missing some configuration in Foreman but can't find out what.
···
On Sat, Sep 24, 2011 at 7:36 PM, Ohad Levy wrote:
>> Proxy version 0.2 and Foreman 0.3.
>>
>> When I tries http I get the following error in the Proxy:
>> [2011-09-23 15:16:04] ERROR OpenSSL::SSL::SSLError: SSL_accept
>> returned=1 errno=0 state=SSLv2/v3 read client hello A: http request
>> C:/Ruby187/lib/ruby/1.8/openssl/ssl-internal.rb:166:in `accept'
>>
>> When I use https on /features i get:
>> Supported features
>> * dhcp
>>
> thats odd, can you paste the logs from the proxy when trying to add it
> in foreman (and I guess foreman logs too:))
>
>
>> And under /dhcp:
>> Subnets
>> Total of 0 subnets
> Do you have any subnets configured on that host? is that the right output?
–
Kai Stian Olstad