Problem:
Yes I am using custom certs but those are new and these errors all existed before adding those. I was hoping that would solve some of the issues with candlepin but it seems not lol.
Looks like this issue is back (relating to the keystore and candlepin - removing the keystore and running foreman-installer did not help this time.)l: Couldnât connect to the server: undefined method `to_symâ for nil:NilClass - Support - TheForeman
Few things going on here:
- Running foreman-installer I always get this Error:
[ERROR 2021-03-28T22:57:44 verbose] foreman-maintain packages is-locked --assumeyes failed! Check the output for error!
And this Error:
[ INFO 2021-03-28T23:00:18 verbose] Class[Candlepin::Database::Postgresql]: Scheduling refresh of Class[Candlepin::Service]
[ INFO 2021-03-28T23:00:18 verbose] Class[Candlepin::Service]: Scheduling refresh of Service[tomcat]
[ WARN 2021-03-28T23:00:19 verbose] /Service[tomcat]: Triggered ârefreshâ from 1 event
[ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: rake aborted!
[ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: LoadError: cannot load such file â apipie/middleware/checksum_in_headers
[ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: /usr/share/foreman/config/application.rb:5:in<top (required)>' [ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: /usr/share/foreman/Rakefile:1:in
<top (required)>â
[ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>â
[ WARN 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: (See full trace by running task with --trace)
[ERROR 2021-03-28T23:00:21 verbose] â/usr/sbin/foreman-rake db:migrateâ returned 1 instead of one of [0]
[ERROR 2021-03-28T23:00:21 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from ânotrunâ to [â0â] failed: â/usr/sbin/foreman-rake db:migrateâ returned 1 instead of one of [0]
[ WARN 2021-03-28T23:00:22 verbose] /Stage[main]/Foreman::Database/Foreman_config_entry[db_pending_seed]: Dependency Exec[foreman-rake-db:migrate] has failures: true
[ WARN 2021-03-28T23:00:22 verbose] /Stage[main]/Foreman::Database/Foreman_config_entry[db_pending_seed]: Skipping because of failed dependencies
[ WARN 2021-03-28T23:00:22 verbose] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Skipping because of failed dependencies
[ INFO 2021-03-28T23:00:22 verbose] Class[Apache::Service]: Unscheduling all events on Class[Apache::Service]
[ WARN 2021-03-28T23:00:22 verbose] /Service[httpd]: Skipping because of failed dependencies
- Trying to perform the pulp 2 to 3 migration also gives an Error:
Foreman :: Plugin Manuals (theforeman.org)
foreman-rake katello:pulp3_migration --trace
Rubocop not loaded.
** Invoke katello:pulp3_migration (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke katello:disable_dynflow (first_time)
** Execute katello:disable_dynflow
** Invoke katello:check_ping (first_time)
** Invoke environment
** Execute katello:check_ping
{:services=>
{:candlepin=>{:status=>âokâ, :duration_ms=>â64â},
:candlepin_auth=>{:status=>âokâ, :duration_ms=>â83â},
:foreman_tasks=>{:status=>âokâ, :duration_ms=>â5â},
:katello_events=>
{:status=>âokâ, :message=>â0 Processed, 0 Failedâ, :duration_ms=>â0â},
:candlepin_events=>
{:status=>âFAILâ, :message=>âNot runningâ, :duration_ms=>â1â},
:pulp3=>{:status=>âokâ, :duration_ms=>â151â},
:pulp=>{:status=>âokâ, :duration_ms=>â176â},
:pulp_auth=>{:status=>âokâ, :duration_ms=>â140â}},
:status=>âFAILâ}
rake aborted!
Not all the services have been started. Check the status report above and try again.
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/lib/katello/tasks/reimport.rake:10:inblock (2 levels) in <top (required)>' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in
block in executeâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:ineach' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:251:in
executeâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:195:inblock in invoke_with_call_chain' /opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in
mon_synchronizeâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:ininvoke_with_call_chain' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:217:in
block in invoke_prerequisitesâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:215:ineach' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:215:in
invoke_prerequisitesâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:194:inblock in invoke_with_call_chain' /opt/rh/rh-ruby25/root/usr/share/ruby/monitor.rb:226:in
mon_synchronizeâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:188:ininvoke_with_call_chain' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/task.rb:181:in
invokeâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:160:ininvoke_task' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in
block (2 levels) in top_levelâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:ineach' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:116:in
block in top_levelâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:125:inrun_with_threads' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:110:in
top_levelâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:83:inblock in run' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:186:in
standard_exception_handlingâ
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/lib/rake/application.rb:80:inrun' /opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in
<top (required)>â
/opt/rh/rh-ruby25/root/usr/bin/rake:23:inload' /opt/rh/rh-ruby25/root/usr/bin/rake:23:in
â
Tasks: TOP => katello:pulp3_migration => katello:check_ping
I assume this issue is related to the SSL error within candlepin.
Expected outcome:
foreman-installer output with no errors and successfully run.
No more keystore issues and SSL errors using custom certs.
Foreman and Proxy versions:
foreman-2.2.3-1.el7.noarch
foreman-cli-2.2.3-1.el7.noarch
foreman-debug-2.2.3-1.el7.noarch
foreman-dynflow-sidekiq-2.2.3-1.el7.noarch
foreman-ec2-2.2.3-1.el7.noarch
foreman.domain.com-apache-1.0-46.noarch
foreman.domain.com-foreman-client-1.0-46.noarch
foreman.domain.com-foreman-proxy-1.0-46.noarch
foreman.domain.com-foreman-proxy-client-1.0-46.noarch
foreman.domain.com-puppet-client-1.0-46.noarch
foreman.domain.com-qpid-broker-1.0-46.noarch
foreman.domain.com-qpid-client-cert-1.0-46.noarch
foreman.domain.com-qpid-router-client-1.0-46.noarch
foreman.domain.com-qpid-router-server-1.0-46.noarch
foreman.domain.com-tomcat-1.0-29.noarch
foreman-installer-2.2.3-1.el7.noarch
foreman-installer-katello-2.2.3-1.el7.noarch
foreman-openstack-2.2.3-1.el7.noarch
foreman-postgresql-2.2.3-1.el7.noarch
foreman-proxy-2.2.3-1.el7.noarch
foreman-proxy-content-3.17.3-1.el7.noarch
foreman-release-2.2.3-1.el7.noarch
foreman-release-scl-7-3.el7.noarch
foreman-selinux-2.2.3-1.el7.noarch
foreman-service-2.2.3-1.el7.noarch
foreman-vmware-2.2.3-1.el7.noarch
Foreman and Proxy plugin versions:
katello-3.17.3-1.el7.noarch
katello-agent-3.3.5-4.el7.noarch
katello-certs-tools-2.7.1-2.el7.noarch
katello-client-bootstrap-1.7.5-1.el7.noarch
katello-common-3.17.3-1.el7.noarch
katello-debug-3.17.3-1.el7.noarch
katello-default-ca-1.0-1.noarch
katello-host-tools-3.3.5-4.el7.noarch
katello-host-tools-fact-plugin-3.3.5-4.el7.noarch
katello-repos-3.17.3-1.el7.noarch
katello-selinux-3.4.0-1.el7.noarch
katello-server-ca-1.0-3.noarch
katello-service-3.14.1-1.el7.noarch
Distribution and version:
Distributor ID: CentOS
Description: CentOS Linux release 7.9.2009 (Core)
Release: 7.9.2009
Codename: Core
Other relevant data:
/var/log/foreman/production.log
2021-03-28T23:12:33 [E|app|6c4c7143] Error occurred while starting Katello::CandlepinEventListener
2021-03-28T23:12:33 [E|app|6c4c7143] SSL_connect returned=1 errno=0 state=error: sslv3 alert certificate unknown
2021-03-28T23:12:33 [E|app|6c4c7143] /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:465:inconnect' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:465:in
block in open_ssl_socketâ
6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:76:intimeout' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:460:in
open_ssl_socketâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/netio.rb:520:inopen_socket' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:116:in
block in socketâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:insynchronize' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/connection/utils.rb:109:in
socketâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/connection.rb:173:ininitialize' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:in
newâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:134:increate_connection' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:101:in
block in initializeâ
6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:93:inblock in timeout' 6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:33:in
block in catchâ
6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:33:incatch' 6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:33:in
catchâ
6c4c7143 | /opt/rh/rh-ruby25/root/usr/share/ruby/timeout.rb:108:intimeout' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/stomp-1.4.9/lib/stomp/client.rb:99:in
initializeâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/katello/messaging/stomp_connection.rb:69:innew' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/katello/messaging/stomp_connection.rb:69:in
clientâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/lib/katello/messaging/stomp_connection.rb:43:insubscribe' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/candlepin_event_listener.rb:37:in
runâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:33:inblock in check_services' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:23:in
eachâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:23:incheck_services' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:16:in
block (2 levels) in startâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/activesupport-6.0.3.1/lib/active_support/execution_wrapper.rb:88:inwrap' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:15:in
block in startâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:14:inloop' 6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:14:in
startâ
6c4c7143 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.17.3/app/services/katello/event_daemon.rb:119:inblock in start_monitor_thread' 6c4c7143 | /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â
/var/log/candlepin/candlepin.log
2021-03-28 23:14:14,447 [thread=Thread-3 (ActiveMQ-scheduled-threads)] [=, org=, csid=] ERROR org.apache.activemq.artemis.core.server - AMQ224088: Timeout (10 seconds) on acceptor âstompâ during protocol handshake with /127.0.0.1:58772 has occurred.
2021-03-28 23:14:19,657 [thread=Thread-6 (activemq-netty-threads)] [=, org=, csid=] WARN org.apache.activemq.artemis.core.server - AMQ222208: SSL handshake failed for client from /127.0.0.1:58776: sun.security.validator.ValidatorException: Netscape cert type does not permit use for SSL client.