[foreman-users] Re: nsupdate on foreman-proxy doesn't work anymore

2017-04-27 Thread 'Denis Müller' via Foreman users
deleting foreman-proxy-files in /tmp folder did help.

Am Mittwoch, 26. April 2017 13:40:25 UTC+2 schrieb Denis Müller:
>
> Hello guys,
>
> since i justed updated and restart foreman-proxy on a centos 6 machine, i 
> can't assign new ip addresses anymore. Foreman-proxy debug shows me:
>
> *trying to find an ip address, we got {:to=>nil, :from=>nil}*
>
> Configuration didn't change. I restarted foreman-proxy and dhcpd couple of 
> times but no luck. What is wrong with that ?
>
>
> *foreman-proxy-1.12.4-1.el6.noarch*
>
> *and we have foreman-server in version 1.14.3*
>
> Can somebody help me?
>

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


[foreman-users] Re: nsupdate on foreman-proxy doesn't work anymore

2017-04-26 Thread 'Denis Müller' via Foreman users


*D, [2017-04-26T13:35:10.049838 #24049] DEBUG -- : Added a reservation: 
**D, [2017-04-26T13:35:10.051113 #24049] DEBUG -- : Added a reservation: 
***D, [2017-04-26T13:35:10.052186 #24049] DEBUG -- : Added a reservation: 


*D, [2017-04-26T13:35:10.055943 #24049] DEBUG -- : trying to find an ip 
address, we got {:to=>nil, :from=>nil}*
*D, [2017-04-26T13:35:10.169631 #24049] DEBUG -- : execution expired*
*E, [2017-04-26T13:35:10.170884 #24049] ERROR -- : undefined method 
`reopen' for nil:NilClass*
*D, [2017-04-26T13:35:10.171373 #24049] DEBUG -- : undefined method 
`reopen' for nil:NilClass (NoMethodError)*
*/usr/share/foreman-proxy/modules/dhcp_common/subnet.rb:81:in 
`write_index_and_unlock'*
*/usr/share/foreman-proxy/modules/dhcp_common/subnet.rb:115:in `unused_ip'*
*/usr/share/foreman-proxy/modules/dhcp_common/server.rb:75:in `unused_ip'*
*/usr/share/foreman-proxy/modules/dhcp/dhcp_api.rb:61:in `GET 
/:network/unused_ip'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in 
`instance_eval'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in 
`route_eval'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in 
`route!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in 
`route!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in 
`route!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in 
`dispatch!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in 
`instance_eval'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in 
`invoke'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in 
`invoke'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in 
`call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in 
`call'*
*/usr/share/foreman-proxy/lib/proxy/log.rb:63:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb:24:in 
`call'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in 
`synchronize'*
*/usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:47:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `each'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb:41:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:77:in `call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/content_length.rb:13:in 
`call'*
*/usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb:48:in 
`service'*
*/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'*
*/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'*
*/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'*
*/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'*
*/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'*
*/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'*
*/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'*
*/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'*
*/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'*
*/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'*
*/usr/share/foreman-proxy/lib/launcher.rb:134:in `launch'*
*/usr/share/foreman-proxy/lib/launcher.rb:134:in `initialize'*
*/usr/share/foreman-proxy/lib/launcher.rb:134:in `new'*
*/usr/share/foreman-proxy/lib/launcher.rb:134:in `launch'*
*/usr/share/foreman-proxy/bin/smart-proxy:6*
*I, [2017-04-26T13:35:10.173093 #24049]  INFO -- : 192.168.11.237 - - 
[26/Apr/2017 13:35:10] "GET /192.168.11.0/unused_ip HTTP/1.1" 400 42 
30.6926*

*D, [2017-04-26T13:35:10.176795 #24049] DEBUG -- : close: 
192.168.11.237:56678*
*D, [2017-04-26T13:35:40.100763 #24049] DEBUG -- : execution expired*
*E, [2017-04-26T13:35:40.101972 #24049] ERROR -- : undefined method 
`reopen' for nil:NilClass*
*D, [2017-04-26T13:35:40.102373 #24049] DEBUG -- : undefined method 
`reopen' for nil:NilClass (NoMethodError)*
*/usr/share/foreman-proxy/modules/dhcp_common/subnet.rb:81:in 
`write_index_and_unlock'*
*/usr/share/foreman-proxy/modules/dhcp_common/subnet.rb:115:in `unused_ip'*
*/usr/share/foreman-proxy/modules/dhcp_common/server.rb:75:in `unused_ip'*
*/usr/share/foreman-proxy/modules/dhcp/dhcp_api.rb:61:in `GET 
/:network/unused_ip'*