problems with rhn_register... but only in some cases!

From: Evert Meulie esq. (evert_at_meulie.net)
Date: 02/29/04


Date: 29 Feb 2004 00:56:47 -0800

Hi everyone!

Weird case here... Several servers, all RHEL2.1, all behind a http
proxy. Some of them can successfully register with rhn_register,
others come back with:
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: (111, 'Connection refused')

Lynx has no problems accessing the internet on the faulty system with
use of the proxy, so the proxy seems to be ok.

I've tried copying /etc/sysconfig/rhn/rhn_register from a working
system to a faulty one, but it still doesn't work. From this I
conclude the problem is not in this config file, but somewhere else...

Who has any suggestions on where else to look...?

Regards,
   Evert Meulie