[Spacewalk-list] Error : 'NoneType' object is unsubscriptable when I used RHNPUSH

Ludovic BRACHET Ludovic.BRACHET.ext at boursorama.fr
Wed Feb 8 16:08:11 UTC 2012


Hi all,

I use Spacewalk 1.6 on a Red Hat Enterprise Linux Server release 6.2 (Santiago).

I have 2 problems.

1)

On the RHEL 6 (which is subscribe on the RHN), I install the "spacewalk-repo-1.6-1.el6.noarch.rpm", and when I update with "yum update", it downloads some rhn* package, then, I have the error "Cannot retrieve repository metadata (repomd.xml)".
To correct it, I must set the parameter to "useNoSSLForPackages=1" instead of "useNoSSLForPackages=0".

Then, I'm able to do a successful "yum update".

It only appears when the repository spacewalk is used then, RHEL downloads some "rhn*" package from it.

2)

I use the command "reposync" to grab the package from the RHN. Then I push the packages with rhnpush.

You can see the command line:

rhnpush --exclude=nexuiz* --exclude=root-doc* --channel=epel6_x64 --server=https://spacewalk/APP --dir=/mnt/local_rhn/x86_64/6/epel/ -u admin -p password -vv -tolerant

The result:

Package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-1.1.2-2.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-1.1.2-2.el6.noarch.rpm
Using POST request
Package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-doc-1.1.2-2.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/rubygem-state_machine-doc-1.1.2-2.el6.noarch.rpm
Using POST request
Package /mnt/local_rhn/x86_64/6/epel/jgoodies-looks-2.4.2-1.el6.noarch.rpm Not Found on RHN Server -- Uploading
Uploading package /mnt/local_rhn/x86_64/6/epel/jgoodies-looks-2.4.2-1.el6.noarch.rpm
Using POST request
While running 'packages.channelPackageSubscriptionBySession': caught
<type 'exceptions.TypeError'> : 'NoneType' object is unsubscriptable

Then, the uploading stops and no package appears in the channels.

When I retry and retry to upload, it fails again and again with the same error.

I didn't know what to do next?
I could upload some package one by one and it works but it fails when I try to upload many packages.

I will try to setup a new VM with RHEL6 + Spacewalk 1.5 to try.

3)

Do you know how to increase the limits size of an uploaded package? I must exclude the packages "nexuiz*" because the RHNPUSH says "500 Internal Server Error" when I uploaded it.

Thanks.

Best regards,
Ludovic



___________________________________

Ce message contient des informations confidentielles ou appartenant à
Boursorama et est établi à l'intention exclusive de ses destinataires.
Toute divulgation, utilisation, diffusion ou reproduction (totale ou
partielle) de ce message, ou des informations qu'il contient, doit être
préalablement autorisée. Tout message électronique est susceptible
d'altération et son intégrité ne peut être assurée. Boursorama
décline toute responsabilité au titre de ce message s'il a été
modifié ou falsifié. Si vous n'êtes pas destinataire de ce message,
merci de le détruire immédiatement et d'avertir l'expéditeur de
l'erreur de distribution et de la destruction du message.
___________________________________

This e-mail contains confidential information or information belonging to
Boursorama and is intended solely for the addressees. The unauthorised
disclosure, use, dissemination or copying (either whole or partial) of this
e-mail, or any information it contains, is prohibited. E-mails are
susceptible to alteration and their integrity cannot be guaranteed.
Boursorama shall not be liable for this e-mail if modified or falsified. If
you are not the intended recipient of this e-mail, please delete it
immediately from your system and notify the sender of the wrong delivery
and the mail deletion.
___________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120208/c1500b4f/attachment.htm>


More information about the Spacewalk-list mailing list