error reading package header

Dan Horák dan at danny.cz
Fri Aug 20 19:11:40 UTC 2010


Hi Paul,

Paul B Schroeder píše v Čt 19. 08. 2010 v 18:39 -0500: 
> I've been happily building my new distro packages in koji for the last 
> couple of months.  And still can seem to build any package without 
> issue.  With one exception.  I've recently run into an issue when I 
> tried to build anaconda for the first time.
> 
> kojid is not reading the header of source RPM that gets created for 
> whatever reason.  When I go into the /mnt/koji/work/tasks directory and 
> find the source RPM that was created from the buildSRPMFromSCM task, I 
> can run command line rpm commands against it without any problem.  So it 
> seems that the issue isn't with the RPM iself, but with kojid reading it.

most likely it's an issue when urllib2 tries to send data read from
network and sent to a file object that's then used in hdrFromFdno() rpm
function. It doesn't return enough data for the whole rpm header and
fails. Try the patch from the attachments, it's not nice, but it helps.

> Again, I do not have this issue with no other package that I build in 
> koji.  Any ideas as to what may be going on?
> 
> Here is the error output I get from running koji build on the command line:
> 
> Created task: 1010
> Task info: http://koji.aus.vbridges.com/koji/taskinfo?taskID=1010
> Watching tasks (this may be safely interrupted)...
> 1010 build (LEAF-1.3.0, 
> /svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): free
> 1010 build (LEAF-1.3.0, 
> /svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): free -> open 
> (kojibuilder2)
>    1011 buildSRPMFromSCM 
> (/svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): free
>    1011 buildSRPMFromSCM 
> (/svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): free -> 
> open (kojibuilder2)
>    1011 buildSRPMFromSCM 
> (/svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): open 
> (kojibuilder2) -> closed
>    0 free  1 open  1 done  0 failed
> 1010 build (LEAF-1.3.0, 
> /svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD): open 
> (kojibuilder2) -> FAILED: Fault: <Fault 1: 'Traceback (most recent call 
> last):\n  File "/usr/sbin/kojid", line 1285, in runTask\n    response = 
> (handler.run(),)\n  File "/usr/sbin/kojid", line 1361, in run\n 
> return self.handler(*self.params,**self.opts)\n  File "/usr/sbin/kojid", 
> line 1822, in handler\n    h = self.readSRPMHeader(srpm)\n  File 
> "/usr/sbin/kojid", line 1895, in readSRPMHeader\n    h = 
> koji.get_rpm_header(fo)\n  File 
> "/usr/lib/python2.6/site-packages/koji/__init__.py", line 770, in 
> get_rpm_header\n    hdr = ts.hdrFromFdno(fo.fileno())\n  File 
> "/usr/lib64/python2.6/site-packages/rpm/transaction.py", line 154, in 
> hdrFromFdno\n    raise rpm.error("error reading package header")\nerror: 
> error reading package header\n'>
>    0 free  0 open  1 done  1 failed
> 
> 1010 build (LEAF-1.3.0, 
> /svn/cM4yhIeeur34JreJe5aVNr/LEAF:LEAF-1.3.0/anaconda:HEAD) failed
> make: *** [scratch-build] Error 1
> 
> 
> And some package versions:
> [root at kojibuilder2 ~]# rpm -q koji-builder
> koji-builder-1.3.2-1.fc13.noarch
> [root at kojibuilder2 ~]# rpm -q rpm
> rpm-4.8.1-2.fc13.x86_64


With regards,

Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: koji-1.3.2-urllib2-workaround.patch
Type: text/x-patch
Size: 1157 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100820/faedb577/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: koji-1.4.0-urllib2-workaround.patch
Type: text/x-patch
Size: 1106 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20100820/faedb577/attachment-0001.bin 


More information about the buildsys mailing list