FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 08-19-2010, 11:39 PM
Paul B Schroeder
 
Default error reading package header

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.

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):
File "/usr/sbin/kojid", line 1285, in runTask
response =
(handler.run(),)
File "/usr/sbin/kojid", line 1361, in run

return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid",
line 1822, in handler
h = self.readSRPMHeader(srpm)
File
"/usr/sbin/kojid", line 1895, in readSRPMHeader
h =
koji.get_rpm_header(fo)
File
"/usr/lib/python2.6/site-packages/koji/__init__.py", line 770, in
get_rpm_header
hdr = ts.hdrFromFdno(fo.fileno())
File
"/usr/lib64/python2.6/site-packages/rpm/transaction.py", line 154, in
hdrFromFdno
raise rpm.error("error reading package header")
error:
error reading package header
'>
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@kojibuilder2 ~]# rpm -q koji-builder
koji-builder-1.3.2-1.fc13.noarch
[root@kojibuilder2 ~]# rpm -q rpm
rpm-4.8.1-2.fc13.x86_64


Thanks in advance... Paul...


--
---
Paul B Schroeder
<paulbsch "at" vbridges "dot" com>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 08-20-2010, 07:11 PM
Dan Horák
 
Default error reading package header

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):
File "/usr/sbin/kojid", line 1285, in runTask
response =
> (handler.run(),)
File "/usr/sbin/kojid", line 1361, in run

> return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid",
> line 1822, in handler
h = self.readSRPMHeader(srpm)
File
> "/usr/sbin/kojid", line 1895, in readSRPMHeader
h =
> koji.get_rpm_header(fo)
File
> "/usr/lib/python2.6/site-packages/koji/__init__.py", line 770, in
> get_rpm_header
hdr = ts.hdrFromFdno(fo.fileno())
File
> "/usr/lib64/python2.6/site-packages/rpm/transaction.py", line 154, in
> hdrFromFdno
raise rpm.error("error reading package header")
error:
> error reading package header
'>
> 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@kojibuilder2 ~]# rpm -q koji-builder
> koji-builder-1.3.2-1.fc13.noarch
> [root@kojibuilder2 ~]# rpm -q rpm
> rpm-4.8.1-2.fc13.x86_64


With regards,

Dan

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 
Old 08-23-2010, 10:26 PM
Paul B Schroeder
 
Default error reading package header

On 08/20/2010 02:11 PM, Dan Horák wrote:
> 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.
Just got a chance to try this.. And the patch seems to have done the
trick.. Thanks!


>
>> 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):
File "/usr/sbin/kojid", line 1285, in runTask
response =
>> (handler.run(),)
File "/usr/sbin/kojid", line 1361, in run

>> return self.handler(*self.params,**self.opts)
File "/usr/sbin/kojid",
>> line 1822, in handler
h = self.readSRPMHeader(srpm)
File
>> "/usr/sbin/kojid", line 1895, in readSRPMHeader
h =
>> koji.get_rpm_header(fo)
File
>> "/usr/lib/python2.6/site-packages/koji/__init__.py", line 770, in
>> get_rpm_header
hdr = ts.hdrFromFdno(fo.fileno())
File
>> "/usr/lib64/python2.6/site-packages/rpm/transaction.py", line 154, in
>> hdrFromFdno
raise rpm.error("error reading package header")
error:
>> error reading package header
'>
>> 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@kojibuilder2 ~]# rpm -q koji-builder
>> koji-builder-1.3.2-1.fc13.noarch
>> [root@kojibuilder2 ~]# rpm -q rpm
>> rpm-4.8.1-2.fc13.x86_64
>
>
> With regards,
>
> Dan
>

--
---
Paul B Schroeder
<paulbsch "at" vbridges "dot" com>
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 05:21 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org