Frey, Evan wrote:
I am currently running spacewalk 0.5 on CentOS5 (although I have tried this on rhel5 with the same result). Every time I try to push a package, I get the following: Internal server error 500 Internal Server Error Error pushing /opt/apt/test-channel-i386/RPMS.stable/MQSeriesClient-6.0.0-0.i386.rpm: Error 500 (500)
Waiting 1 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing /opt/apt/test-channel-i386/RPMS.stable/MQSeriesClient-6.0.0-0.i386.rpm: Error 500 (500)
Waiting 3 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing /opt/apt/test-channel-i386/RPMS.stable/MQSeriesClient-6.0.0-0.i386.rpm: Error 500 (500)
Waiting 5 seconds and trying again...
Giving up after 3 attempts
My push line is as follows: rhnpush --channel=test-channel-i386 --server=http://localhost/APP --username=rhnpush --password=xxxxx /usr/local/src/MQSeriesClient-6.0.0-0.i386.rpm I set debug=5 in /etc/rhn.conf and my output in /var/log/rhn/rhn_upload_package_push.log is 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.headerParserHandler('Method', 'POST') 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select sysdate as ID from dual" with bind params: {}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: package_push/package_push.headerParserHandler('Username', None, 'Force', 0) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.authenticate_session('9xab26076b444d85ec86a4d62eaf13e751', 0) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnUser.session_reload('9xab26076b444d85ec86a4d62eaf13e751',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select web_user_id, expires, value from pxtSessions where id = :session_id" with bind params: {session_id: 9}',)
2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnUser.reload(2,)
2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select * from web_contact where id = :hashval" with bind params: {hashval: 2}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select * from web_customer where id = :hashval" with bind params: {hashval: 1}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select * from web_user_personal_info where web_user_id = :hashval" with bind params: {hashval: 2}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select * from web_user_contact_permission where web_user_id = :hashval" with bind params: {hashval: 2}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select * from web_user_site_info where web_user_id = :userid and type = \'M\'" with bind params: {userid: 2}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.getUserGroupsFromUserInstance(2,) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: rhnSQL/driver_cx_Oracle._execute_wrapper('Executing SQL: "select ugt.label from rhnUserGroupType ugt, rhnUserGroup ug, rhnUserGroupMembers ugm where ugm.user_id = :user_id and ugm.user_group_id = ug.id and ug.group_type = ugt.id" with bind params: {user_id: 2}',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.auth_session("Groups: ['channel_admin']; org_id: 1; user_id: 2",) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.authzOrg('info[orgId]', 1, 'org id', 1) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.isSuperuser('Is NOT superuser',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.isOrgAdmin('Is NOT org admin',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.isSuperuser('Is NOT superuser',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.isChannelAdmin('Is channel admin',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/userAuth.authzOrg('Org authorized (org_admin or channel_admin)',) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/apacheUploadServer._wrapper('Calling', <bound method PackagePush.handler of <upload_server.handlers.package_push.package_push.PackagePush instance at 0xb3315ecc>>) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.handler('Method', 'POST') 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.relative_path_from_header('NEVRA', ['MQSeriesClient', None, '6.0.0', '0', 'i386']) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.relative_path_from_nevra(['MQSeriesClient', None, '6.0.0', '0', 'i386'], 0) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: server/rhnPackageUpload.push_package('/var/satellite', 'redhat/1/3c1/MQSeriesClient/6.0.0-0/i386/3c1ee87a6941d33e40a98559618c876f/MQSeriesClient-6.0.0-0.i386.rpm', 0, 1) 2009/05/22 08:01:15 -04:00 12947 127.0.0.1: importlib/headerSource.createPackage('Creating package',) 2009/05/22 08:01:16 -04:00 12947 127.0.0.1: server/apacheUploadServer._wrapper('ERROR', 'Unhandled exception') 2009/05/22 08:01:16 -04:00 12947 127.0.0.1: server/apacheUploadServer._wrapper('Calling', <bound method PackagePush.logHandler of <upload_server.handlers.package_push.package_push.PackagePush instance at 0xb3315ecc>>) 2009/05/22 08:01:16 -04:00 12947 127.0.0.1: server/apacheUploadServer._wrapper('Calling', <bound method PackagePush.cleanupHandler of <upload_server.handlers.package_push.package_push.PackagePush instance at 0xb3315ecc>>) Additionally in /var/log/httpd/error_log I see this RHN 27199 2009/05/22 08:01:12 -04:00: ('Unhandled exception',)
Exception reported from shobspwklnprd01.usi.mizuho-sc.com
Time: Fri May 22 08:01:15 2009
Exception type exceptions.IndexError
Exception while handling function upload_server._wrapper
Request object information:
URI: /PACKAGE-PUSH
Remote Host: 127.0.0.1
Server Name: shobspwklnprd01.usi.mizuho-sc.com:0
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 964127
        Content-Type: application/x-rpm
        Host: localhost
        User-Agent: rhnpush
        X-RHN-Upload-Auth-Session: 9xab26076b444d85ec86a4d62eaf13e751
        X-RHN-Upload-File-MD5sum: 3c1ee87a6941d33e40a98559618c876f
        X-RHN-Upload-Force: 0
        X-RHN-Upload-Package-Arch: i386
        X-RHN-Upload-Package-Name: MQSeriesClient
        X-RHN-Upload-Package-Release: 0
        X-RHN-Upload-Package-Version: 6.0.0
        X-RHN-Upload-Packaging: rpm
Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/server/apacheUploadServer.py", line 107, in _wrapper
    ret = function(req)
File "/usr/share/rhn/upload_server/handlers/package_push/package_push.py", line 145, in handler
    relative_path=self.rel_package_path, org_id=self.org_id)
File "/usr/share/rhn/server/rhnPackageUpload.py", line 223, in push_package
    header_end=header_end, channels=channels)
File "/usr/share/rhn/server/importlib/mpmSource.py", line 210, in create_package
    header_end=header_end, channels=channels)
File "/usr/share/rhn/server/importlib/headerSource.py", line 367, in createPackage
    channels)
File "/usr/share/rhn/server/importlib/headerSource.py", line 138, in populate
    self._populateFiles(header)
File "/usr/share/rhn/server/importlib/headerSource.py", line 150, in _populateFiles
    self._populateTag(header, 'files', rpmFile)
File "/usr/share/rhn/server/importlib/headerSource.py", line 204, in _populateTag
    hash[k] = v[i]
IndexError: list index out of range
So far I have tried uninstalling everything on this server relating to spacewalk & oracle and reinstalling from the spacewalk wiki & the centos how-to. Additionally I built a brand new fresh install of rhel5 and centos5 and tried the installation from the wiki on both with the same exact result.

This should be resolved on spacewalk -0.6. If you want to patch your 0.5, see commit:

git show 1039273044e509469e3bae925d3fe92e88a57ac3

        
diff --git a/backend/server/importlib/headerSource.py b/backend/server/importlib
index 33e65ca..8ff3a3c 100644
--- a/backend/server/importlib/headerSource.py
+++ b/backend/server/importlib/headerSource.py
@@ -193,7 +193,14 @@ class rpmBinaryPackage(Package, rpmPackage):
        for i in range(itemcount):
            hash = {}
            for k, v in fix.items():
-                hash[k] = v[i]
+                # bugzilla 426963: fix for rpm v3 obsoletes header with
+                # empty version and flags values
+                if not len(v) and k == 'version':
+                    hash[k] = ''
+                elif not len(v) and k == 'flags':
+                    hash[k] = 0
+                else:
+                    hash[k] = v[i]
# Create a file obj = Class()
            obj.populate(hash)


Apply the above to your spacewalk-0.5, restart httpd and retry.

~ Prad





------------------------------------------------------------------------
CONFIDENTIAL: This e-mail, including its contents and attachments, if any, are confidential. It is neither an offer to buy or sell, nor a solicitation of an offer to buy or sell, any securities or any related financial instruments mentioned in it. If you are not the named recipient please notify the sender and immediately delete it. You may not disseminate, distribute, or forward this e-mail message or disclose its contents to anybody else. Unless otherwise indicated, copyright and any other intellectual property rights in its contents are the sole property of Mizuho Securities USA Inc.

E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.

Although we routinely screen for viruses, addressees should check this e-mail and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from our server(s).

------------------------------------------------------------------------
------------------------------------------------------------------------

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to