RHN Registration failed with the error "up2date_client.up2dateErrors.CommunicationError: Name or service not known"

Solution Verified - Updated -

Issue

  • Trying to register Red Hat Client with Red Hat Network but getting the following errors:
rhnreg_ks --profilename=zmy12vpvs01 --username=motpg --password=passw0rd
An error has occurred: Name or service not known
  • Getting errors running any of rhn_register, rhn_check, rhn-profile-sync, and rhnreg_ks
  • /var/log/up2date shows following errors :
[root@xxxx ~]# cat /var/log/up2date
[Mon Dec 10 11:27:40 2012] up2date A socket error occurred: (-2, 'Name or service not known'), attempt #1
[Mon Dec 10 11:27:45 2012] up2date A socket error occurred: (-2, 'Name or service not known'), attempt #2
[Mon Dec 10 11:27:50 2012] up2date A socket error occurred: (-2, 'Name or service not known'), attempt #3
[Mon Dec 10 11:27:55 2012] up2date A socket error occurred: (-2, 'Name or service not known'), attempt #4
[Mon Dec 10 11:28:00 2012] up2date A socket error occurred: (-2, 'Name or service not known'), attempt #5
[Mon Dec 10 11:28:00 2012] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 227, in ?
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 66, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 90, in main
    rhnreg.getCaps()
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 295, in getCaps
    s.capabilities.validate()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 159, in __get_capabilities
    self.registration.welcome_message()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 50, in __call__
    return rpcServer.doCall(method, *args, **kwargs)
  File "/usr/share/rhn/up2date_client/rpcServer.py", line 210, in doCall
    raise up2dateErrors.CommunicationError(e.args[1])
up2date_client.up2dateErrors.CommunicationError: Name or service not known

Environment

  • Red Hat Enterprise Linux(RHEL) 5
  • Red Hat Network(RHN) Classic

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content