Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log.

Latest response

When trying to register from subscription-manager... Followed all steps from support article with no success. Any ideas?

ip addr show IP on interface,
/etc/resolver.conf configured with nameserver

Thanks!
Gary

Responses

not resolved

please show the output of /var/log/rhsm/rhsm.log

It's showing as permission denied

subscription-manager config --server.hostname subscription.rhsm.redhat.com

  • Let me know if this command helps, otherwise we need the ourtput of /var/log/rhsm/rhsm.log as requested earlier

Hello Bashar,

Please help me to resolve me issues. While running below one got error

subscription-manager register --username --password --auto-attach

Registering to: subscription.rhsm.redhat.com:443/subscription Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.

and find the logs as well

2021-06-04 23:21:03,808 [ERROR] subscription-manager:3327:MainThread @managercli.py:174 - Error during registration: [Errno -2] Name or service not known 2021-06-04 23:21:03,808 [ERROR] subscription-manager:3327:MainThread @managercli.py:175 - [Errno -2] Name or service not known

Registering to: subscription.rhsm. redhat.com:443/subscription

Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information. Please help me to solve it

Hi Pramod,

We had a similar issue this year and the fix for us was to follow the feedback from RedHat below and allow access over 3rd party managed firewall AND disabling SSL Inspections on the Incoming traffic from *.suse.com .

Once access had been granted to the SUSE portal we were able to test connectivity (over port 443) using the 2 methods ive listed below

netcat -zv scc.suse.com 443

Connection to scc.suse.com 443 port [tcp/https] succeeded!

netcat -zv updates.suse.com 443

Connection to updates.suse.com 443 port [tcp/https] succeeded!

curl -v https://scc.suse.com curl -v https://updates.suse.com

=========================================================================================

Below is the answer to your query:

  1. Can you please let us know if your firewall is using hostname-based filtering or IP-based filtering?

-- If you are using IP-based filtering you will need to allow all the IPs listed in the below article.

Public CIDR Lists for Red Hat (IP Addresses for cdn.redhat.com) https://access.redhat.com/articles/1525183

-- If you are using hostname-based filtering you will need to whitelist the hostnames as mentioned previously:

subscription.rhn.redhat.com:443 [https] AND subscription.rhsm.redhat.com:443 [https] cdn.redhat.com:443 [https] *.akamaiedge.net:443 [https] OR *.akamaitechnologies.com:443 [https]

The recommended way to whitelist is shown in the below article:

How to access Red Hat Subscription Manager (RHSM) through a firewall or proxy https://access.redhat.com/solutions/65300

However, it's recommended to whitelist the URLs instead of IPs as IP addresses are subject to change depending on your GEO location.