Registering new servers to the Red Hat Satellite 6 fails with error "Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information".

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.x

Issue

  • While registering new host to the satellite user is getting error "Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information."
# subscription-manager register --org="XYZ" --activationkey="ABC_ActivationKey"
Remote server error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.

Resolution

  • Remove katello-ca-consumer rpm and clean its cache using following commands:
The following command will give you the exact name of the katello-ca-consumer rpm to remove.

# rpm -qa katello-ca-consumer*
katello-ca-consumer-<satellite_FQDN>-X.0-X.noarch
# rpm -e  katello-ca-consumer-<satellite_FQDN>-X.0-X.noarch
# rm /etc/rhsm/ca/katello-*
  • Clean the cache using the following step:
# subscription-manager clean 
  • Now re-install katello-ca-consumer rpm:
# rpm -Uvh http://<satellite_FQDN>/pub/katello-ca-consumer-latest.noarch.rpm --force
Note- Put proper FQDN in above command.
  • Now register the host to satellite.
# subscription-manager register --org="XYZ" --activationkey="XYZ_Activation_Key"    
Note- Make sure you have attached proper subscriptions and selected proper Lifecycle env and content view in activation key.
# yum clean all 
# rm  -rf /var/cache/yum/*

Root Cause

  • SSL Certificates were corrupted becuase katello-ca-consumer package was removed.

Diagnostic Steps

  • Logs from /var/log/rhsm.log
2018-01-03 19:28:54,943 [ERROR] rhsmcertd-worker:14180:MainThread @rhsmcertd-worker:72 - Either the consumer is not registered or the certificates are corrupted. Certificate update using daemon failed.
2018-01-03 22:34:32,927 [INFO] rhsmcertd-worker:14342:MainThread @rhsmcertd-worker:67 - X-Correlation-ID: 52643a010266769cb65364ae73cc483b
2018-01-03 22:34:32,928 [ERROR] rhsmcertd-worker:14342:MainThread @rhsmcertd-worker:72 - Either the consumer is not registered or the certificates are corrupted. Certificate update using daemon failed.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.