Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Unable to update cb-enterprise on RedHat Linux server. 'yum update cb-enterprise' returns message: Unable to connect to the host and port specified

Unable to update cb-enterprise on RedHat Linux server. 'yum update cb-enterprise' returns message: Unable to connect to the host and port specified

Version

All

Issue

Receiving error message when running 'yum update cb-enterprise' on RedHat Linux machine.

Symptoms

Example error message:

# yum update cb-enterprise

Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription- : manager

There was an error communicating with RHN.

RHN Satellite or RHN Classic support will be disabled.

rhn-plugin: Error communicating with server. The message was:

Unable to connect to the host and port specified

Setting up Update Process

CarbonBlack | 2.9 kB 00:00

CbOpenSource | 2.9 kB 00:00

HP-spp | 1.9 kB 00:00

http://downloads.linux.hpe.com/SDR/repo/spp/RedHatEnterpriseServer/6Server/x86_64/current/repodata/r... [Errno -1] Error importing repomd.xml for HP-spp: Damaged repomd.xml file

Trying other mirror.

Cause

The 'Unable to connect to the host and port specified' message when running 'yum update' suggests the system is unable to connect to the RHN (rhn.redhat.com) server.

Solution

Running the following commands will confirm whether the system is able to make a connection to the RHN (rhn.redhat.com) server:

a. telnet rhn.redhat.com 80

b. telnet rhn.redhat.com 443

Possible resolutions to the issue would be modifying any proxy/firewall rules to allow access to rhn.redhat.com, and to confirm if the RedHat server name and SSL certificate path is correct in /etc/sysconfig/rhn/up2date.

Additionally, if proxy server is being used, open the /etc/sysconfig/rhn/up2date file, set "enable_http_proxy" parameter to 1.

Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎01-25-2017
Views:
2239
Contributors