Problem:
foreman-maintain health check
Running ForemanMaintain::Scenario::FilteredScenario
Check number of fact names in database: [OK]
Check whether all services are running: [OK]
Check whether all services are running using the ping call: [FAIL]
Couldn’t connect to the server: undefined method `to_sym’ for nil:NilClass
Continue with step [Restart applicable services]?, [y(yes), n(no), q(quit)] y
Restart applicable services:
Stopping the following service(s):
rh-mongodb34-mongod, rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, pulpcore-resource-manager, qdrouterd, qpidd, rh-redis5-redis, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, pulpcore-worker@*, smart_proxy_dynflow_core, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker, dynflow-sidekiq@worker-hosts-queue, foreman-proxy
| stopping foreman
Warning: Stopping foreman.service, but it can still be activated by:
foreman.socket
\ All services stopped
Starting the following service(s):
rh-mongodb34-mongod, rh-redis5-redis, postgresql, pulpcore-api, pulpcore-content, pulpcore-resource-manager, qdrouterd, qpidd, rh-redis5-redis, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, pulpcore-worker@*, smart_proxy_dynflow_core, tomcat, dynflow-sidekiq@orchestrator, foreman, httpd, puppetserver, dynflow-sidekiq@worker, dynflow-sidekiq@worker-hosts-queue, foreman-proxy
| All services started
- Try 1/5: checking status of hammer ping
Couldn’t connect to the server: undefined methodto_sym' for nil:NilClass \ Try 2/5: checking status of hammer ping Couldn't connect to the server: undefined method
to_sym’ for nil:NilClass
\ Try 3/5: checking status of hammer ping
Couldn’t connect to the server: undefined method `to_sym’ for nil:NilClass - Try 4/5: checking status of hammer ping
Couldn’t connect to the server: undefined method `to_sym’ for nil:NilClass
tail -f /var/log/foreman/production.log
/opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:99:in initialize' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/katello/messaging/stomp_connection.rb:69:in
new’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/katello/messaging/stomp_connection.rb:69:in client' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/lib/katello/messaging/stomp_connection.rb:43:in
subscribe’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/candlepin_event_listener.rb:37:in run' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:33:in
block in check_services’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:23:in each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:23:in
check_services’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:16:in block (2 levels) in start' /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:in
wrap’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:15:in block in start' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:14:in
loop’
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:14:in start' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.pre.master/app/services/katello/event_daemon.rb:119:in
block in start_monitor_thread’
/opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context’
2020-09-26T09:07:36 [I|app|f640be69] Started GET “/notification_recipients” for 127.0.0.1 at 2020-09-26 09:07:36 -0400
2020-09-26T09:07:36 [I|app|f640be69] Processing by NotificationRecipientsController#index as JSON
2020-09-26T09:07:36 [I|app|f640be69] Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 1.6ms | Allocations: 2172)
Expected outcome:
Should ping
Foreman and Proxy versions:
Foreman and proxy Nightly
Katello 3.18.0.pre.master
Foreman and Proxy plugin versions:
Distribution and version:
CENTOS 7.8
Other relevant data: