Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Network > RHN Proxy Server > Issue <<  9 of 38 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4317
Last update: 11-18-04
Issue:
Why is it that when I attempt to register my system via a proxy server (or RHN Proxy or Satellite), it is going to xmlrpc.rhn.redhat.com?
Resolution:
Release Found: rhn_register and up2date versions for Red Hat Enterprise Linux 2.1 prior to Update 5 release

Symptoms: When I attempt to register my system to Red Hat Network (RHN) I receive one of the following type of traceback errors, either from rhnreg_ks or rhn_register:


Traceback (innermost last):
  File "/usr/sbin/rhnreg_ks", line 326, in ?
    main()
  File "/usr/sbin/rhnreg_ks", line 289, in main
    hardwareList = hardware.Hardware()
  File "/usr/share/rhn/register/hardware.py", line 383, in Hardware
    ret = read_network()
  File "/usr/share/rhn/register/hardware.py", line 305, in read_network
    hostname, ipaddr = findHostByRoute()
  File "/usr/share/rhn/register/hardware.py", line 276, in findHostByRoute
    server_port = rhnreg.getProxySettings()
NameError: rhnreg
   



Traceback (innermost last):
  File "/usr/sbin/rhn_register", line 233, in ?
    main()
  File "/usr/sbin/rhn_register", line 214, in main
    tui.main()
  File "/usr/share/rhn/register/tui.py", line 1042, in main
    tui.run()
  File "/usr/share/rhn/register/tui.py", line 986, in run
    win = self.windows[index](self.screen, self)
  File "/usr/share/rhn/register/tui.py", line 567, in __init__
    tui.hardware = hardware.Hardware()
  File "/usr/share/rhn/register/hardware.py", line 374, in Hardware
    ret = read_network()
  File "/usr/share/rhn/register/hardware.py", line 296, in read_network
    hostname, ipaddr = findHostByRoute()
  File "/usr/share/rhn/register/hardware.py", line 273, in findHostByRoute
    s.connect((server, 80))
socket.error: (110, 'Connection timed out')
   


Resolution: This was fixed with the release of errata RHBA-2004:368-10 "Updated up2date packages" - up2date version 2.9.14-1.2.1AS for Red Hat Enterprise Linux 2.1. For all versions prior to the 2.9.14-1.2.1AS release for Enterprise Linux 2.1 you will need to perform one of three following tasks:
  • Upgrade up2date and rhn_register packages to Update 5 or newer release
  • Reconfigure the firewall to allow the older version of the up2date registration programs to make a successful connection to xmlrpc.rhn.redhat.com port 443.
  • Reconfigure the network settings of the system being registered such that you can avoid going into the 'findHostByRoute' code within up2date. To do this you will need to ensure that the IP address and hostname returned from the following command is not 127.0.0.1 and localhost or localhost.localdomain.

    
    # python -c "import socket; print socket.gethostname(); print
            socket.gethostbyname(socket.gethostname())"
    localhost
    127.0.0.1
       


    You will need to correctly setup your hostname on the system, such that the hostname command returns the correct name for the system and this has a valid entry either within /etc/hosts or within your DNS servers so that the above python command returns non localhost/127.0.0.1 information.



How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Network > RHN Proxy Server > Issue <<   9  of  38  >>