[Spacewalk-list] satellite-sync Errors (Spacewalk 1.0) 500 Internal Server Error

Justin Sherrill jsherril at redhat.com
Mon Jul 12 21:29:16 UTC 2010


On 7/12/10 9:05 AM, Justin Sherrill wrote:
> On 7/12/10 5:44 AM, Christoph Sievers wrote:
>> Hi,
>>
>> whenever I try the following command
>>
>> satellite-sync --iss-parent=masterspacewalk  --list-channels
>> --no-ssl
>> 11:36:53 Red Hat Network Satellite - live synchronization
>> 11:36:53    url: http://masterspacewalk
>> 11:36:53    debug/output level: 1
>> 11:36:53    db:  spacewalk/<password>@xe
>> 11:36:53
>> 11:36:53 Retrieving / parsing channel-families data
>> +++ sending log as an email +++
>>
>> SYNC ERROR:
>>
>> (Check logs/email for potentially more detail)
>>
>> ERROR: server.dump.channel_families('<the systemid>',):<ProtocolError 
>> for
>> masterspacewalk /SAT-DUMP-INTERNAL: 500 Internal Server Error>
>>
>> ------------------------------
>>
>> on the Serverside I get the following errors within httpd error_log
>>
>> ------------------------------
>>
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: Traceback (most 
>> recent
>> call last):
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: TypeError: __init__()
>> should return None
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> Traceback (most recent call last):
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> TypeError: __init__() should return None
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: Traceback (most 
>> recent
>> call last):
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: TypeError: __init__()
>> should return None
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> Traceback (most recent call last):
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:44 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> TypeError: __init__() should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: Traceback (most 
>> recent
>> call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: TypeError: __init__()
>> should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> Traceback (most recent call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> TypeError: __init__() should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: Traceback (most 
>> recent
>> call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: TypeError: __init__()
>> should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> Traceback (most recent call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> TypeError: __init__() should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: Traceback (most 
>> recent
>> call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler:   File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonHeaderParserHandler
>> satellite_exporter.satexport::headerParserHandler: TypeError: __init__()
>> should return None
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> Traceback (most recent call last):
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 287, in
>> HandlerDispatch\n    log=debug)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 464, in
>> import_module\n    module = imp.load_module(mname, f, p, d)
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:   
>> File
>> "/usr/share/rhn/satellite_exporter/satexport.py", line 249, in ?\n
>> headerParserHandler = HandlerWrap("headerParserHandler")
>> [Mon Jul 12 11:31:45 2010] [error] [client x.x.x.x]
>> PythonCleanupHandler satellite_exporter.satexport::cleanupHandler:
>> TypeError: __init__() should return None
>>
>>
>>
>> Is this a known Error? What can I do about it? I need satellite-sync :)
>>
>> rgds
>> Christoph
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
> I believe this is the patch you need to apply:
>
> http://git.fedorahosted.org/git/?p=spacewalk.git;a=blobdiff;f=backend/satellite_exporter/satexport.py;h=58ea591a4b56b2241667fc897cc3c98191437eda;hp=8fca481c647caf3e3e70195f5389f032569a68b3;hb=b6a487af6473d73a768f99739cbe0b5a73ad5108;hpb=c2572de980b308e7ba2250f644fc2350374bc7df 
>
>
> Since this is the 2nd person to hit this issue, i'm going to see about 
> back porting it to spacewalk 1.0.
>
> -Justin
>
So there appears to be some interesting race condition that occurs after 
you apply this.  I've fixed it 
(https://bugzilla.redhat.com/show_bug.cgi?id=613585).

The new error:

Exception Handler Information
Traceback (most recent call last):
   File "/usr/share/rhn/server/apacheRequest.py", line 118, in call_function
     func = self.method_ref(method)
   File "/usr/share/rhn/server/apacheRequest.py", line 413, in method_ref
     classes = self.servers[self.server]
KeyError: 'non_auth_dumper'


If you could try the packages linked to in the bugzilla and let me know 
how they work that would be very helpful.  If it works ok, i'll see 
about getting them pushed live.

Thanks!

-Justin

> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list