Description of problem: While trying to retrieve a kickstart file through a Spacewalk proxy server I got the following error (logged in /var/log/httpd/error_log) : [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: Traceback (most recent call last): [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req) [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: File "/usr/share/rhn/proxy/apacheServer.py", line 45, in __call__\n from apacheHandler import getComponentType [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: File "/usr/share/rhn/proxy/apacheHandler.py", line 29, in ?\n from common import rhnApache, rhnFlags, log_debug, log_error, CFG, \\ [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: File "/usr/share/rhn/common/rhnApache.py", line 26, in ?\n from server import apache [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonHeaderParserHandler proxy.apacheServer::HeaderParserHandler: ImportError: No module named server [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: Traceback (most recent call last): [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req) [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: File "/usr/share/rhn/proxy/apacheServer.py", line 56, in __call__\n HandlerWrap.svrHandlers = self.get_handler_factory(req)() [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: File "/usr/share/rhn/proxy/apacheServer.py", line 78, in get_handler_factory\n from apacheHandler import apacheHandler [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: File "/usr/share/rhn/proxy/apacheHandler.py", line 29, in ?\n from common import rhnApache, rhnFlags, log_debug, log_error, CFG, \\ [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: File "/usr/share/rhn/common/rhnApache.py", line 26, in ?\n from server import apache [Tue Mar 09 14:35:02 2010] [error] [client 192.168.1.61] PythonCleanupHandler proxy.apacheServer::CleanupHandler: ImportError: No module named server
can you please provide rpm -qa |grep spacewalk from proxy server
Here you are: spacewalk-backend-libs-0.8.45-1.el5 spacewalk-ssl-cert-check-1.9-1.el5 spacewalk-proxy-broker-0.8.3-1.el5 spacewalk-proxy-management-0.8.3-1.el5 spacewalk-pxt-0.8.17-1.el5 spacewalk-proxy-docs-0.8.1-1.el5 spacewalk-proxy-common-0.8.3-1.el5 spacewalk-backend-0.8.45-1.el5 spacewalk-proxy-redirect-0.8.3-1.el5 spacewalk-proxy-package-manager-0.8.3-1.el5 spacewalk-base-minimal-0.8.17-1.el5 spacewalk-monitoring-selinux-0.8.3-1.el5 spacewalk-base-0.8.17-1.el5 spacewalk-koan-0.2.5-1.el5 spacewalk-proxy-installer-0.8.3-1.el5 spacewalk-certs-tools-0.8.7-1.el5 spacewalk-proxy-html-0.8.1-1.el5 spacewalk-proxy-selinux-0.8.1-1.el5 spacewalk-proxy-monitoring-0.8.1-1.el5
This should be fixed in spacewalk 1.0 as we have moved rhnApache.py to the spacewalk-backend-common from spacewalk-backend-server. If you would like your proxy server to work in the meantime, simply: 1. download the following file to /usr/share/rhn/common/ http://git.fedorahosted.org/git/?p=spacewalk.git;a=blob_plain;f=backend/common/apache.py;h=79b687f5da4f4e9019b9ad67ba122f1d7526e678;hb=HEAD 2. Modify /usr/share/rhn/common/rhnApache.py and change: from server import apache to from common import apache -Justin
Mass-aligning under space12, so that we don't lose track of this bugzilla. This however does not mean that we plan (will be able to) address this bug in Spacewalk 1.2.
Moving ON_QA. Please use the Spacewalk 1.2 release candidate yum repo at http://koji.spacewalkproject.org/spacewalk/split/spacewalk-5E/server/spacewalk-5E-1.2/$basearch/os http://koji.spacewalkproject.org/spacewalk/split/spacewalk-f12/server/spacewalk-f12-1.2/$basearch/os http://koji.spacewalkproject.org/spacewalk/split/spacewalk-f13/server/spacewalk-f13-1.2/$basearch/os http://koji.spacewalkproject.org/spacewalk/split/spacewalk-f14/server/spacewalk-f14-1.2/$basearch/os (depending on your OS) to verify the bugzilla.
With Spacewalk 1.2 released, marking as CLOSED CURRENTRELEASE. https://www.redhat.com/archives/spacewalk-list/2010-November/msg00111.html