The Candlepin service fails in Red Hat Satellite 6 with error "A backend service [ Candlepin ] is unreachable" after re-enabling SELinux
Issue
- The upgrade to
Red Hat Satelliteversion 6.11 resulted inCandlepinfailing to function properly. - Upon re-enabling
SELinuxonRed Hat Satelliteversion 6.11,Candlepinencountered issues preventing it from starting up. - After upgrading to
Red Hat Satellite to 6.11Candlepin failed. -
After re-enabling SELinux on
Red Hat Satellite6.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 unreachabletype=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=02022-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.