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
