In Red Hat Satellite 6, the hammer command fails with the error: "Failed to open TCP connection to localhost:23443 (Connection refused - connect(2) for 'localhost' port 23443)."

Solution Verified - Updated -

Issue

  • When running the hammer command in Red Hat Satellite 6, the following error occurs:

    # hammer ping
    database:
       Status:          ok
       Server Response: Duration: 0ms
    candlepin:
       Status:          FAIL
       Server Response: Message: Failed to open TCP connection to localhost:23443 (Connection refused - connect(2) for "localhost" port 23443)
    candlepin_auth:
       Status:          FAIL
       Server Response: Message: A backend service [ Candlepin ] is unreachable
    candlepin_events:
       Status:          FAIL
       message:         Not running
       Server Response: Duration: 0ms
    
  • The following error is also observed in /var/log/tomcat/localhost.20XX-XX-XX.log:

    1) Error injecting constructor, java.lang.RuntimeException: java.io.FileNotFoundException: /etc/candlepin/certs/candlepin-ca.crt (Permission denied)
     at org.candlepin.pki.CertificateReader.<init>(CertificateReader.java:50)
     at org.candlepin.guice.CandlepinModule.bindPki(CandlepinModule.java:303)
     while locating org.candlepin.pki.CertificateReader
       for the 1st parameter of org.candlepin.pki.impl.JSSPKIUtility.<init>(JSSPKIUtility.java:96)
     while locating org.candlepin.pki.impl.JSSPKIUtility
     at org.candlepin.guice.CandlepinModule.bindPki(CandlepinModule.java:302)
     while locating org.candlepin.pki.PKIUtility
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content