I found the following exception in the production log.
2016-11-11 09:52:08 [app] [I] Rendered home/_user_dropdown.html.erb
(2.2ms)
2016-11-11 09:52:08 [app] [I] Read fragment views/tabs_and_title_records-3
(0.2ms)
2016-11-11 09:52:08 [app] [I] Rendered home/_topbar.html.erb (9.2ms)
2016-11-11 09:52:08 [app] [I] Rendered layouts/base.html.erb (10.3ms)
2016-11-11 09:52:08 [app] [I] Filter chain halted as :welcome rendered or
redirected
2016-11-11 09:52:08 [app] [I] Completed 200 OK in 30ms (Views: 13.9ms |
ActiveRecord: 3.0ms)
2016-11-11 09:52:08 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:08 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:08 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:08 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:22 [app] [I] Started POST "/api/v2/discovered_hosts/facts"
for 10.0.2.15 at 2016-11-11 09:52:22 +0100
2016-11-11 09:52:22 [app] [I] Processing by
Api::V2::DiscoveredHostsController#facts as JSON
2016-11-11 09:52:22 [app] [I] Parameters: {"facts"=>"[FILTERED]",
"apiv"=>"v2", "discovered_host"=>{"facts"=>"[FILTERED]"}}
2016-11-11 09:52:22 [app] [I] Import facts for 'mac080027b4d94a' completed.
Added: 65, Updated: 0, Deleted 0 facts
2016-11-11 09:52:22 [app] [I] Detected subnet: Dev (172.16.4.0/24) with
taxonomy ["SSW-Trading GmbH"]/["Oststeinbek"]
2016-11-11 09:52:22 [app] [I] Assigned location: Oststeinbek
2016-11-11 09:52:22 [app] [I] Assigned organization: SSW-Trading GmbH
2016-11-11 09:52:22 [app] [I] Locking discovered host 08:00:27:b4:d9:4a in
subnet Dev (172.16.4.0/24)
2016-11-11 09:52:22 [app] [I] Match found for host mac080027b4d94a (34)
rule Disco_Dev (4)
2016-11-11 09:52:24 [app] [I] Create DHCP reservation for
mac080027b4d94a.example.com-08:00:27:b4:d9:4a/172.16.4.9
2016-11-11 09:52:24 [app] [I] Add DNS A record for
mac080027b4d94a.example.com/172.16.4.9
2016-11-11 09:52:24 [app] [I] Add DNS PTR record for
172.16.4.9/mac080027b4d94a.example.com
2016-11-11 09:52:26 [app] [W] Unable to reboot mac080027b4d94a
| RestClient::InternalServerError: 500 Internal Server Error
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in
`return!'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in
`process_result'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in
`block in transmit'
| /opt/rh/rh-ruby22/root/usr/share/ruby/net/http.rb:853:in `start'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in
`transmit'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in
`execute'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in
`execute'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/resource.rb:76:in
`put'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-6.0.0/app/services/foreman_discovery/node_api/node_resource.rb:102:in
`put'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-6.0.0/app/services/foreman_discovery/node_api/power_service.rb:8:in
`reboot'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-6.0.0/app/models/host/discovered.rb:181:in
`reboot'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_discovery-6.0.0/app/models/host/managed_extensions.rb:31:in
`setReboot'
| /usr/share/foreman/app/models/concerns/orchestration.rb:162:in `execute'
| /usr/share/foreman/app/models/concerns/orchestration.rb:107:in `block in
process'
| /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `each'
| /usr/share/foreman/app/models/concerns/orchestration.rb:99:in `process'
| /usr/share/foreman/app/models/concerns/orchestration.rb:39:in
`post_commit'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:432:in
`block in make_lambda'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:263:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:263:in
`block in simple'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:506:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:506:in
`block in call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:506:in
`each'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:506:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:in
`__run_callbacks__'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
`_run_commit_callbacks'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:314:in
`committed!'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:89:in
`commit_records'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:153:in
`commit'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:175:in
`commit_transaction'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/transaction.rb:194:in
`within_new_transaction'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in
`transaction'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:220:in
`transaction'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:348:in
`with_transaction_returning_status'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:286:in
`block in save'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/transactions.rb:301:in
`rollback_active_record_state!'
...skipping...
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/mapper.rb:49:in
`serve'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:in
`block in serve'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in
`each'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in
`serve'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/static_dispatcher.rb:65:in
`call'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/extractor/recorder.rb:132:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.3.6/lib/apipie/middleware/checksum_in_headers.rb:27:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/etag.rb:24:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/conditionalget.rb:38:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/head.rb:13:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:in
`call'
| /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:9:in `call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:225:in
`context'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/session/abstract/id.rb:220:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in
`block in call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:in
`__run_callbacks__'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in
`_run_call_callbacks'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:in
`run_callbacks'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in
`call_app'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:22:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/methodoverride.rb:22:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/runtime.rb:18:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/static.rb:116:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/sendfile.rb:113:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/engine.rb:518:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/application.rb:165:in
`call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in
`public_send'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in
`method_missing'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:66:in
`block in call'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in
`each'
|
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/urlmap.rb:50:in
`call'
|
/usr/share/passenger/phusion_passenger/rack/thread_handler_extension.rb:74:in
`process_request'
|
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:141:in
`accept_and_process_next_request'
|
/usr/share/passenger/phusion_passenger/request_handler/thread_handler.rb:109:in
`main_loop'
| /usr/share/passenger/phusion_passenger/request_handler.rb:455:in `block
(3 levels) in start_threads'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
`call'
|
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in
`block in create_with_logging_context'
2016-11-11 09:52:26 [app] [I] Completed 201 Created in 3725ms (Views: 1.9ms
| ActiveRecord: 194.0ms)
2016-11-11 09:52:26 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:26 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:26 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
2016-11-11 09:52:26 [app] [W] Failed to communicate with graphite:
Connection refused - connect(2) for "0.0.0.0" port 2003
Am Donnerstag, 10. November 2016 15:49:45 UTC+1 schrieb Christian Froestl:
>
> Hi all,
>
> after my hosts are discovered successfully they will automatically
> assigned to the correct hostgroup and Environment and added to hosts
> registry.
> But the host must be restarted manually. After discovery detection it
> hangs in the screen from the picture.
> After I press reboot, all works as expected.
>
> How can I configure a automatically reboot?
>
> Kind regards,
> Christian
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.