Bug #36039
openForman webportal showing Katello::Errors::CandlepinNotRunning after fresh installation.
Description
I have freshly installed foreman with Katello successfully. But when I am trying to open foreman web portal its given me the below error.
Oops, we're sorry but something went wrong Katello::Errors::CandlepinNotRunning
- hammer -p example status
Version: 3.5.1
API Version: v2
Database:
Status: ok
Server Response: Duration: 0ms
Plugins:
1) Name: foreman-tasks
Version: 7.1.1
2) Name: foreman_column_view
Version: 0.4.0
3) Name: foreman_default_hostgroup
Version: 7.0.0
4) Name: foreman_discovery
Version: 22.0.2
5) Name: foreman_remote_execution
Version: 8.2.0
6) Name: katello
Version: 4.7.1
Smart Proxies:
1) Name: sjprdsatapp01.example.com
Version: 3.5.1
Status: ok
Features:
1) Name: pulpcore
Version: 3.2.0
2) Name: logs
Version: 3.5.1
Compute Resources:
candlepin:
Status: FAIL
Server Response: Message: 404 Not Found
candlepin_auth:
Status: FAIL
Server Response: Message: Katello::Errors::CandlepinNotRunning
candlepin_events:
Status: FAIL
message: Not running
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 455ms
pulp3_content:
Status: ok
Server Response: Duration: 62ms
foreman_tasks:
Status: ok
Server Response: Duration: 3ms
==========================================
- foreman-maintain health check
Running ForemanMaintain::Scenario::FilteredScenario ================================================================================
Check number of fact names in database: ^C [RUNNING]
--------------------------------------------------------------------------------
[root@sjprdsatapp01 ~]# 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: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
--------------------------------------------------------------------------------
Continue with step [Restart applicable services]?, [y(yes), n(no)]
====================================================================
- katello-certs-check -c /root/foreman_cert/satellite_example_com_cert.pem -k /root/foreman_cert/foreman_cert_key.pem -b /root/foreman_cert/ca_cert_bundle.pem
Checking server certificate encoding:
[OK]
Checking expiration of certificate:
[OK]
Checking expiration of CA bundle:
[OK]
Checking if server certificate has CA:TRUE flag
[OK]
Checking for private key passphrase:
[OK]
Checking to see if the private key matches the certificate:
[OK]
Checking CA bundle against the certificate file:
[OK]
Checking CA bundle size: 3
[OK]
Checking Subject Alt Name on certificate
[OK]
Checking if any Subject Alt Name on certificate matches the Subject CN
[OK]
Checking Key Usage extension on certificate for Key Encipherment
[OK]
Checking for use of shortname as CN
[OK]
Validation succeeded
=========================================================
- hammer ping
database:
Status: ok
Server Response: Duration: 0ms
candlepin:
Status: FAIL
Server Response: Message: 404 Not Found
candlepin_auth:
Status: FAIL
Server Response: Message: Katello::Errors::CandlepinNotRunning
candlepin_events:
Status: FAIL
message: Not running
Server Response: Duration: 0ms
katello_events:
Status: ok
message: 0 Processed, 0 Failed
Server Response: Duration: 0ms
pulp3:
Status: ok
Server Response: Duration: 460ms
pulp3_content:
Status: ok
Server Response: Duration: 62ms
foreman_tasks:
Status: ok
Server Response: Duration: 3ms
Our Setup is with External Database.
No data to display