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 : [email protected] [mailto:[email protected]] De la part de Michael Mraka Envoyé : jeudi 16 février 2012 16:35 À : [email protected] 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 [email protected] 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. ___________________________________
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
