- Posted In
- Red Hat Enterprise Linux
I am trying to register a RhelEnterprise Linux Server 7.6 x86-64 on a VM running under subscription manager (in order to update it to 7.9 using YUM). I have a license under RedHat and can login okay to www.Redhat.com okay using my login/pword but if I try and register directly from session on VM. I know that there a few threads with this issue kicking around already but having gone through them and following most of the feedback offered im still unable to resolve this.
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 see rhsm.log attached
The DNS is setup to reference the correct nameservers. I did try adding 126.96.36.199 & 188.8.131.52 but got same result above.
; <<>> DiG 9.9.4-RedHat-9.9.4-72.el7 <<>> www.redhat.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43874 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4000 ;; QUESTION SECTION: ;www.redhat.com. IN A
;; ANSWER SECTION: www.redhat.com. 2958 IN CNAME ds-www.redhat.com.edgekey.net. ds-www.redhat.com.edgekey.net. 5860 IN CNAME ds-www.redhat.com.edgekey.net.globalredir.akadns.net. ds-www.redhat.com.edgekey.net.globalredir.akadns.net. 2129 IN CNAME e3396.dscx.akamaiedge.net. e3396.dscx.akamaiedge.net. 20 IN A 184.108.40.206
;; Query time: 25 msec ;; SERVER: 10.190.16.10#53(10.190.16.10) ;; WHEN: Wed Jun 09 16:06:05 IST 2021 ;; MSG SIZE rcvd: 201
cd /tmp && wget http://www.redhat.com/index.html --2021-06-09 16:08:13-- http://www.redhat.com/index.html Resolving www.redhat.com (www.redhat.com)... 220.127.116.11, 2a02:26f0:e8:4aa::d44, 2a02:26f0:e8:4ab::d44 Connecting to www.redhat.com (www.redhat.com)|18.104.22.168|:80... connected. HTTP request sent, awaiting response... 403 Forbidden 2021-06-09 16:08:13 ERROR 403: Forbidden.
Not sure what the error 403: Forbidden relates to but have no issue below connecting to same site through port 443 ?
telnet subscription.rhsm.redhat.com 443
Trying 22.214.171.124... Connected to subscription.rhsm.redhat.com. Escape character is '^]'.
telnet www.redhat.com 443 telnet www.redhat.com 443
Trying 126.96.36.199... Connected to www.redhat.com. Escape character is '^]'.
With regards to the workaround suggested under https://access.redhat.com/solutions/1323123
I followed all of the resolution suggested below but that hasnt helped either
Check that the host name given in the /etc/rhsm/rhsm.conf file is correct and can be resolved. ... hostname = subscription.rhsm.redhat.com
Server: xx.xxx.xx.xx Address: xx.xxx.xx.xx#53
Non-authoritative answer: Name: subscription.rhsm.redhat.com Address: 188.8.131.52 <<<< seems to be resolving back to IP ok
Verify and correct DNS server information in /etc/resolv.conf file. If host file is used for name resolution instead of DNS, make sure /etc/hosts, has an entry for satellite server. Verify baseurl is set to baseurl= https://cdn.redhat.com in /etc/rhsm/rhsm.conf file. > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< It is set to this
Also prior to attempting to register server i cleaned up subscription manager as per below
subscription-manager remove --all subscription-manager unregister subscription-manager clean yum clean all rm -rf /var/cache/yum/*