Katello 4.2.2. So, lately I have noticed that candlepin does not start properly after a reboot. But after that, a “foreman-maintain service restart” always works and then everything is running just fine. Hoping someone has an idea what’s happening here.
After the reboot, the candlepin logs show NOTHING. But the foreman production log looks like this:
2022-02-09T10:20:22 [I|app|] Everything ready for world: acdf84cf-260b-4fb6-81b1-fd963f83e39a
2022-02-09T10:20:22 [I|dyn|] Performing validity checks
2022-02-09T10:20:22 [I|dyn|] Finished performing validity checks
2022-02-09T10:20:36 [E|app|cbacd850] Error occurred while starting Katello::CandlepinEventListener
2022-02-09T10:20:36 [E|app|cbacd850] Connection refused - connect(2) for "localhost" port 61613
2022-02-09T10:20:36 [E|app|cbacd850] /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `initialize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `open'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `block in open_ssl_socket'
cbacd850 | /usr/share/ruby/timeout.rb:78:in `timeout'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:460:in `open_ssl_socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:520:in `open_socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:116:in `block in socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:in `synchronize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:in `socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/connection.rb:173:in `initialize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:in `new'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:in `create_connection'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:101:in `block in initialize'
cbacd850 | /usr/share/ruby/timeout.rb:95:in `block in timeout'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `block in catch'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `catch'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `catch'
cbacd850 | /usr/share/ruby/timeout.rb:110:in `timeout'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:99:in `initialize'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/messaging/stomp_connection.rb:69:in `new'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/messaging/stomp_connection.rb:69:in `client'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/messaging/stomp_connection.rb:43:in `subscribe'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/services/katello/candlepin_event_listener.rb:34:in `run'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:40:in `block in check_services'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:30:in `each'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:30:in `check_services'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:16:in `block (2 levels) in start'
cbacd850 | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/execution_wrapper.rb:88:in `wrap'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:15:in `block in start'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:14:in `loop'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/monitor.rb:14:in `start'
cbacd850 | /usr/share/gems/gems/katello-4.2.2/app/lib/katello/event_daemon/runner.rb:78:in `block in start_monitor_thread'
cbacd850 | /usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2022-02-09T10:20:38 [I|app|07a3c103] Started GET "/" for 141.106.224.170 at 2022-02-09 10:20:38 -0600
2022-02-09T10:20:38 [W|app|07a3c103] Failed to open TCP connection to localhost:23443 (Connection refused - connect(2) for "localhost" port 23443)
07a3c103 | /usr/share/ruby/net/http.rb:960:in `initialize'
07a3c103 | /usr/share/ruby/net/http.rb:960:in `open'
07a3c103 | /usr/share/ruby/net/http.rb:960:in `block in connect'
07a3c103 | /usr/share/ruby/timeout.rb:95:in `block in timeout'
07a3c103 | /usr/share/ruby/timeout.rb:105:in `timeout'
07a3c103 | /usr/share/ruby/net/http.rb:958:in `connect'
07a3c103 | /usr/share/ruby/net/http.rb:943:in `do_start'
07a3c103 | /usr/share/ruby/net/http.rb:932:in `start'
07a3c103 | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
07a3c103 | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
07a3c103 | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
07a3c103 | /usr/share/gems/gems/rest-client-2.0.2/lib/restclient/resource.rb:51:in `get'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:256:in `backend_status'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:89:in `block in ping_candlepin_without_auth'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:138:in `exception_watch'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:88:in `ping_candlepin_without_auth'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:227:in `ping_services_for_capsule'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/models/katello/ping.rb:25:in `ping!'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/app/services/katello/organization_creator.rb:14:in `create_all_organizations!'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/lib/katello/middleware/organization_created_enforcer.rb:12:in `call'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/lib/katello/middleware/event_daemon.rb:10:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/apipie-dsl-2.4.0/lib/apipie_dsl/static_dispatcher.rb:67:in `call'
07a3c103 | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/static_dispatcher.rb:66:in `call'
07a3c103 | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/extractor/recorder.rb:137:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/foreman/lib/foreman/middleware/telemetry.rb:10:in `call'
07a3c103 | /usr/share/gems/gems/apipie-rails-0.5.17/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
07a3c103 | /usr/share/foreman/lib/foreman/middleware/catch_json_parse_errors.rb:9:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/tempfile_reaper.rb:15:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/etag.rb:27:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/conditional_get.rb:27:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/head.rb:12:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
07a3c103 | /usr/share/foreman/lib/foreman/middleware/logging_context_session.rb:22:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:266:in `context'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/session/abstract/id.rb:260:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/cookies.rb:648:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:27:in `block in call'
07a3c103 | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/callbacks.rb:101:in `run_callbacks'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/actionable_exceptions.rb:18:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/debug_exceptions.rb:32:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
07a3c103 | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:37:in `call_app'
07a3c103 | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/rack/logger.rb:28:in `call'
07a3c103 | /usr/share/gems/gems/sprockets-rails-3.2.1/lib/sprockets/rails/quiet_assets.rb:13:in `call'
07a3c103 | /usr/share/foreman/lib/foreman/middleware/logging_context_request.rb:11:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/request_id.rb:27:in `call'
07a3c103 | /usr/share/gems/gems/katello-4.2.2/lib/katello/prevent_json_parsing.rb:12:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/method_override.rb:24:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/runtime.rb:22:in `call'
07a3c103 | /usr/share/gems/gems/activesupport-6.0.3.7/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/executor.rb:14:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/static.rb:126:in `call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/sendfile.rb:110:in `call'
07a3c103 | /usr/share/gems/gems/actionpack-6.0.3.7/lib/action_dispatch/middleware/host_authorization.rb:76:in `call'
07a3c103 | /usr/share/gems/gems/secure_headers-6.3.0/lib/secure_headers/middleware.rb:11:in `call'
07a3c103 | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/engine.rb:527:in `call'
07a3c103 | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in `public_send'
07a3c103 | /usr/share/gems/gems/railties-6.0.3.7/lib/rails/railtie.rb:190:in `method_missing'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:74:in `block in call'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `each'
07a3c103 | /usr/share/gems/gems/rack-2.2.3/lib/rack/urlmap.rb:58:in `call'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/configuration.rb:249:in `call'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:77:in `block in handle_request'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:338:in `with_force_shutdown'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/request.rb:76:in `handle_request'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/server.rb:438:in `process_client'
07a3c103 | /usr/share/gems/gems/puma-5.3.2/lib/puma/thread_pool.rb:145:in `block in spawn_thread'
07a3c103 | /usr/share/gems/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
2022-02-09T10:20:38 [I|app|07a3c103] Processing by DashboardController#index as */*
2022-02-09T10:20:38 [I|app|07a3c103] Redirected to https://katello.ctsi.mcw.edu/users/login
2022-02-09T10:20:38 [I|app|07a3c103] Filter chain halted as :require_login rendered or redirected
2022-02-09T10:20:38 [I|app|07a3c103] Completed 302 Found in 104ms (ActiveRecord: 18.1ms | Allocations: 29383)
2022-02-09T10:20:51 [E|app|cbacd850] Error occurred while starting Katello::CandlepinEventListener
2022-02-09T10:20:51 [E|app|cbacd850] Connection refused - connect(2) for "localhost" port 61613
2022-02-09T10:20:51 [E|app|cbacd850] /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `initialize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `open'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:461:in `block in open_ssl_socket'
cbacd850 | /usr/share/ruby/timeout.rb:78:in `timeout'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:460:in `open_ssl_socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:520:in `open_socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:116:in `block in socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:in `synchronize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:in `socket'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/connection.rb:173:in `initialize'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:in `new'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:in `create_connection'
cbacd850 | /usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:101:in `block in initialize'
cbacd850 | /usr/share/ruby/timeout.rb:95:in `block in timeout'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `block in catch'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `catch'
cbacd850 | /usr/share/ruby/timeout.rb:33:in `catch'
cbacd850 | /usr/share/ruby/timeout.rb:110:in `timeout'