[Spacewalk-list] server error while pushing .debs

Miroslav Suchý msuchy at redhat.com
Mon Sep 26 15:10:47 UTC 2011


On 09/26/2011 04:46 PM, Simon Lukasik wrote:
> On 09/12/2011 02:10 PM, Razvan Cosma wrote:
>> After adding "import sys",
>> On the Ubuntu client:
>> Internal server error 500 Internal Server Error
>> Error pushing
>> /mirror/UB10x64/pool/main/a/akonadi/akonadi-dbg_1.3.1-0ubuntu3_amd64.deb: Error
>> Message:
>>     Unable to load package
>> Error Class Code: 50
>> On the Spacewalk server:
>> File "/usr/lib64/python2.6/StringIO.py", line 270, in getvalue
>> self.buf += ''.join(self.buflist)
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position
>> 696: ordinal not in range(128)
>>
>> So the error is not random, it's just that the .deb metadata has an
>> ümlaut in changelog.gz
>>
> 
> Hello Razvan,
> 
> Unfortunately, I cannot reproduce this exact issue on my setup. Which OS
> are you using?
> 
> 
> Nevertheless, on my PostgreSQL Spacewalk nightly on RHEL6, akonadi
> package (from [1]) fails to upload as well. The cause is that akonadi
> package is archived with lzma compression.
> 
>     # strings akonadi-dbg_1.3.1-0ubuntu3_amd64.deb | grep data
>     data.tar.lzma   1271183373  0     0     100644  3199804
> 
> While the python-debian-0.1.16-4.el6.noarch from @epel does support only
> gz and bz2 compressions.
> 
> The minimal reproducer was:
> 
>     from debian.debfile import DebFile
>     x = DebFile("akonadi-dbg_1.3.1-0ubuntu3_amd64.deb")
> 


That could be reason. Debian recently moved to lzma compression. But the
extension should not be problem. Even the upstream of python-debian has
PART_EXTS = ['gz', 'bz2']   # possible extensions

Hmm. Looking at my Debian:
mirek at triple:/tmp$ python
Python 2.6.7 (r267:88850, Aug  3 2011, 11:33:52)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from debian.debfile import DebFile
>>> x = DebFile("akonadi-dbg_1.5.3-2_amd64.deb")
>>>
mirek at triple:/tmp$ strings akonadi-dbg_1.5.3-2_amd64.deb |grep data
data.tar.gz     1306360362  0     0     100644  10939114

So *my* Debian (pure Debian) has tar.gz extension. Can this be somehow
Ubuntu specific?

-- 
Miroslav Suchy
Red Hat Satellite Engineering




More information about the Spacewalk-list mailing list