The Candlepin service fails in Red Hat Satellite 6 with error "A backend service [ Candlepin ] is unreachable" after re-enabling SELinux

Solution Verified - Updated -

Issue

  • The upgrade to Red Hat Satellite version 6.11 resulted in Candlepin failing to function properly.
  • Upon re-enabling SELinux on Red Hat Satellite version 6.11, Candlepin encountered issues preventing it from starting up.
  • After upgrading to Red Hat Satellite to 6.11 Candlepin failed.
  • After re-enabling SELinux on Red Hat Satellite 6.11 Candlepin is failing to start.

    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
    
    type=AVC msg=audit(1663845213.199:284): avc:  denied  { name_bind } for  pid=1638 comm="java" src=23443 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket permissive=0
    type=AVC msg=audit(1663847129.856:286): avc:  denied  { name_bind } for  pid=1626 comm="java" src=23443 scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket permissive=0
    
    2022-09-22T08:21:29 [W|app|7c26ae1d] Failed to open TCP connection to localhost:23443 (Connection refused - connect(2) for "localhost" port 23443)
    
    2022-09-22T08:21:29 [W|app|7c26ae1d] A backend service [ Candlepin ] is unreachable
    2022-09-22T08:21:29 [I|app|7c26ae1d] Backtrace for 'A backend service [ Candlepin ] is unreachable' error (ActionView::Template::Error): A backend service [ Candlepin ] is unreachable
    

Environment

  • Red Hat Satellite 6
  • Red Hat Enterprise Linux 8

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