Project

General

Profile

Actions

Support #18542

closed

SmartProxy just not work (Requested url was not found instead of sinatra hello world) - Windows

Added by Atasian van Endern about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hello together,

i hava a strange thing i cant explain myself.

I installed a new SmartProxy 1.14.1 on Windows for MSDHCP.
From :DEBUG i can see, that the certificates are loaded. I can import Subnetworks. In Foreman it shows "green". If i request a IP adress over DHCP, i get an Error:

Failed to fetch a free IP from proxy mysmartproxy.my-domain.de (https://mysmartproxy.my-domain.de:8443): ERF12-8202 [ProxyAPI::ProxyException]: Ungenutzte IP konnte nicht abgerufen werden ([RestClient::BadRequest]: 400 Bad Request) für Proxy https://mysmartproxy.my-domain.de:8443/dhcp

But i think this is not the main Problem. It seems the sinatra application just does not work. If i access over the URL

https://mysmartproxy.my-domain.de:8443/ or just on the machine over localhost https://localhost:8443/
it said "Requested URL was not found". If i do the same thing on an older SmartProxy from me, he shows that the "Sinatra Hello World". I dont know what i do wrong here.

D, [2017-02-16T16:45:34.084583 ] DEBUG -- : Rack::Handler::WEBrick is mounted on /.
I, [2017-02-16T16:45:34.084583 ] INFO -- : WEBrick::HTTPServer#start: pid=592 port=8443
D, [2017-02-16T16:46:15.960485 ] DEBUG -- : close TCPSocket(0.0.0.0, 8443)
I, [2017-02-16T16:46:15.960485 ] INFO -- : going to shutdown ...
I, [2017-02-16T16:46:15.960485 ] INFO -- : WEBrick::HTTPServer#start done.
W, [2017-02-16T16:52:10.916591 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/facts.yml. Using default settings.
W, [2017-02-16T16:52:10.916591 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/dns.yml. Using default settings.
W, [2017-02-16T16:52:10.916591 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/templates.yml. Using default settings.
W, [2017-02-16T16:52:10.916591 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/tftp.yml. Using default settings.
D, [2017-02-16T16:52:10.916591 ] DEBUG -- : 'dhcp' settings: 'enabled': https, 'server': 10.2.1.66, 'subnets': [] (default), 'use_provider': dhcp_native_ms
W, [2017-02-16T16:52:10.916591 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/puppetca.yml. Using default settings.
W, [2017-02-16T16:52:10.932214 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/puppet.yml. Using default settings.
W, [2017-02-16T16:52:10.932214 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/bmc.yml. Using default settings.
W, [2017-02-16T16:52:10.932214 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/realm.yml. Using default settings.
W, [2017-02-16T16:52:10.932214 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/logs.yml. Using default settings.
D, [2017-02-16T16:52:10.932214 ] DEBUG -- : 'logs' settings: 'enabled': true (default)
D, [2017-02-16T16:52:10.932214 ] DEBUG -- : Providers ['dhcp_native_ms'] are going to be configured for 'dhcp'
W, [2017-02-16T16:52:10.932214 ] WARN -- : Couldn't find settings file C:/smart-proxy-1.14-stable/config/settings.d/dhcp_native_ms.yml. Using default settings.
D, [2017-02-16T16:52:11.072856 ] DEBUG -- : 'dhcp_native_ms' settings: 'disable_ddns': true (default), 'server': 10.2.1.66, 'subnets': [], 'use_provider': dhcp_native_ms
I, [2017-02-16T16:52:11.072856 ] INFO -- : Successfully initialized 'foreman_proxy'
I, [2017-02-16T16:52:11.072856 ] INFO -- : Successfully initialized 'dhcp_native_ms'
I, [2017-02-16T16:52:11.072856 ] INFO -- : Successfully initialized 'dhcp'
D, [2017-02-16T16:52:11.072856 ] DEBUG -- : Log buffer API initialized, available capacity: 2000/1000
I, [2017-02-16T16:52:11.072856 ] INFO -- : Successfully initialized 'logs'
I, [2017-02-16T16:52:11.088472 ] INFO -- : WEBrick 1.3.1
I, [2017-02-16T16:52:11.088472 ] INFO -- : ruby 2.3.3 (2016-11-21) [x64-mingw32]
I, [2017-02-16T16:52:16.026233 ] INFO -- :

*If access over a URL. It said this: *

D, [2017-02-16T17:16:18.659037 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
I, [2017-02-16T17:16:18.659037 ] INFO -- : 127.0.0.1 - - [16/Feb/2017 17:16:18] "GET /favicon.ico HTTP/1.1" 404 27 0.0000

D, [2017-02-16T17:16:18.690316 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
I, [2017-02-16T17:16:18.690316 ] INFO -- : 127.0.0.1 - - [16/Feb/2017 17:16:18] "GET /favicon.ico HTTP/1.1" 404 27 0.0000

D, [2017-02-16T17:16:41.376236 ] DEBUG -- : close: 127.0.0.1:56442
D, [2017-02-16T17:24:14.159596 ] DEBUG -- : accept: 10.2.3.8:58133
D, [2017-02-16T17:24:14.175177 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
I, [2017-02-16T17:24:14.175177 ] INFO -- : 10.2.3.8 - - [16/Feb/2017 17:24:14] "GET / HTTP/1.1" 404 27 0.0000


If i request a IP Adress, it said this

D, [2017-02-16T17:47:21.361719 ] DEBUG -- : close: 10.2.3.8:58351
D, [2017-02-16T17:55:28.929533 ] DEBUG -- : accept: 10.2.0.71:56458
D, [2017-02-16T17:55:28.929533 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2017-02-16T17:55:28.929533 ] DEBUG -- : verifying remote client 10.2.0.71 against trusted_hosts ["puppetmaster.my-domain.de"]
E, [2017-02-16T17:55:28.960742 ] ERROR -- : Error looking up a free ip address in subnet 10.2.0.0. Unknown error '1745'
D, [2017-02-16T17:55:28.960742 ] DEBUG -- : Error looking up a free ip address in subnet 10.2.0.0. Unknown error '1745' (DhcpsApi::Error)
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/dhcpsapi-0.0.11/lib/dhcpsapi/misc.rb:30:in `get_free_ip_address'
C:/smart-proxy-1.14-stable/modules/dhcp_native_ms/dhcp_native_ms_main.rb:78:in `unused_ip'
C:/smart-proxy-1.14-stable/modules/dhcp/dhcp_api.rb:59:in `block in <class:DhcpApi>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `block in compile!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (3 levels) in route!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in `route_eval'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (2 levels) in route!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:in `block in process_route'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `catch'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `process_route'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in `block in route!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `route!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:in `block in dispatch!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:in `dispatch!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `block in call!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `call!'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/methodoverride.rb:21:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/commonlogger.rb:33:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
C:/smart-proxy-1.14-stable/lib/proxy/log.rb:109:in `call'
C:/smart-proxy-1.14-stable/lib/proxy/request_id_middleware.rb:9:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/nulllogger.rb:9:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/head.rb:11:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/show_exceptions.rb:25:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `block in call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in `synchronize'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/builder.rb:138:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/urlmap.rb:65:in `block in call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/urlmap.rb:50:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/builder.rb:138:in `call'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rack-1.5.5/lib/rack/handler/webrick.rb:60:in `service'
C:/Ruby23-x64/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
C:/Ruby23-x64/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
C:/Ruby23-x64/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
I, [2017-02-16T17:55:28.960742 ] INFO -- : 10.2.0.71 - - [16/Feb/2017 17:55:28] "GET /dhcp/10.2.0.0/unused_ip?from=10.2.2.0&to=10.2.12.255 HTTP/1.1" 400 75 0.0312

D, [2017-02-16T17:55:29.007638 ] DEBUG -- : close: 10.2.0.71:56458

Any suggestions of this?

Actions

Also available in: Atom PDF