[Spacewalk-list] cannot register client, python2.6 vs. python2.4
Michael Mraka
michael.mraka at redhat.com
Mon Oct 17 10:44:58 UTC 2011
Rob Walker wrote:
% 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,
...
% 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.
This is /var/log/httpd/ssl_error_log on your spacewalk server, right?
What's server's OS? Centos 6 x86_64?
% [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
What does rpm -qf /usr/lib/python2.4/site-packages/spacewalk/server/apacheServer.py says?
% 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 ?
I'm sure it is. On the other hand the amount of work depends on your OS
version and whether there are packages already built for it or not.
Moreover I think this isn't a proper fix of your problem. You should
better find why you have python module installed in /usr/lib/python2.4
when your system python installation looks for them in
/usr/lib64/python2.6/.
% Thanks,
% Rob
Regards,
--
Michael Mráka
Satellite Engineering, Red Hat
More information about the Spacewalk-list
mailing list