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

Ludovic BRACHET Ludovic.BRACHET.ext at boursorama.fr
Thu Feb 16 15:58:57 UTC 2012


Hi Michael,

Thanks a lot!

With Spacewalk 1.5 and 1.6, I had the error "NoneType" so I used Spacewalk 1.4 and it works even with 12000 rpms. ;)

I always used rhnpush  to upload all packages, but as you said, spacewalk-repo-sync is better but I never used this command: I'll look an eye on it, so!

Best regards,
Ludovic

-----Message d'origine-----
De : spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] De la part de Michael Mraka
Envoyé : jeudi 16 février 2012 16:35
À : spacewalk-list at redhat.com
Objet : Re: [Spacewalk-list] Error : 'NoneType' object is unsubscriptable when I used RHNPUSH

Ludovic BRACHET wrote:
% Hi all,
...
% 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:
...
% 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

Hi Ludovic,

I was able to reproduced this bug on my test system so I've created bugzilla for this: https://bugzilla.redhat.com/show_bug.cgi?id=791231
Currently there's no fix for it but as it happens when pushing more than
5000 packages there are 2 possible workarounds:
a) split your push into small chunks (e.g. [a-m]*, [n-z]* [A-Z0-9]*),
b) when it fails, run rhnpush for the second time and it will push the rest of packages and associate (all of) them with the channel.

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

Right, channels association is done at the end when all packages are pushed.

% 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.

That's strange, in my case the second run of rhnpush finished ok and all packages were where I expected them to be.
Just a wild guess: it might be a timeout issue and your machine is slower so you need to push smaller chunks.


Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

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


___________________________________

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.
___________________________________




More information about the Spacewalk-list mailing list