[Spacewalk-list] cannot register client, python2.6 vs. python2.4

Rob Walker rwalker at silverspringnet.com
Thu Oct 13 21:42:05 UTC 2011


When I run

wget -qO- --no-check-certificate
https://<host>/pub/bootstrap/bootstrap-centos5_x86-64.sh | /bin/bash

I get the following error:

REGISTRATION
------------
* registering
An error has occurred:
Internal Server Error
See /var/log/up2date for more information

*** Error: Registering the system failed.


and in /var/log/up2date

[Thu Oct 13 21:32:40 2011] up2date A protocol error occurred: Internal
Server Error , attempt #1,
[Thu Oct 13 21:32:40 2011] up2date Error communicating with server. The
message was:
Internal Server Error
[Thu Oct 13 21:32:40 2011] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 213, in ?
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 74, 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 231, in getCaps
    s.capabilities.validate()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 156, 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 268, in doCall
    raise up2dateErrors.CommunicationError(e.errmsg)
up2date_client.up2dateErrors.CommunicationError: Error communicating
with server. The message was:
Internal Server Error


In /var/log/httpd/ssl_error_log there are a lot of errors, but the one
which looks like it is causing the problems is this.

[Thu Oct 13 21:32:40 2011] [error] [client 10.1.11.164]   File
"/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 304,
in import_module\n    return __import__(module_name, {}, {}, ['*'])
[Thu Oct 13 21:32:40 2011] [error] [client 10.1.11.164] ImportError: No
module named spacewalk.server.apacheServer

root@<host>:site-packages # ; locate apacheServer
/usr/lib/python2.4/site-packages/spacewalk/server/apacheServer.py
/usr/lib/python2.4/site-packages/spacewalk/server/apacheServer.pyc
/usr/lib/python2.4/site-packages/spacewalk/server/apacheServer.pyo

When I cp /usr/lib/python2.4/site-packages/spacewalk/ over to
/usr/lib64/python2.6/site-packages/ , I move on to other problems.  I am
able to "move forward" with the spacewalk/ , rhn/ , OpenSSL/ directories.

I think that the real problem is that mod_python is calling the
python2.6 instead of the python2.4.

root@<host>:site-packages # ; rpm -ql mod_python | head -3
/etc/httpd/conf.d/python.conf
/usr/lib64/httpd/modules/mod_python.so
/usr/lib64/python2.6/site-packages/mod_python

Is it possible to install the mod_python for 2.4 ?

Thanks,
Rob




More information about the Spacewalk-list mailing list