Bug 715105 - createrepo fails with an encoding error
Summary: createrepo fails with an encoding error
Keywords:
Status: CLOSED DUPLICATE of bug 715108
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-21 21:20 UTC by Pradeep Kilambi
Modified: 2016-09-20 02:42 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-22 15:40:46 UTC
Type: ---


Attachments (Terms of Use)

Description Pradeep Kilambi 2011-06-21 21:20:59 UTC
Description of problem:

When we run createrepo on one our repos we get


$ sudo createrepo --database --checksum sha256 -g /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/repodata/comps-rhel-x86_64-server-6.xml  /var/lib/pulp//repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/
Spawning worker 0 with 5043 pkgs
Worker 0: 
Worker 0: Traceback (most recent call last):
Worker 0: iso-8859-1 encoding on Ville Skytt� <ville.skytta> - 2.8.2-2
Worker 0:   File "/usr/share/createrepo/worker.py", line 101, in <module>
Worker 0: 
Worker 0:     main(sys.argv[1:])
Worker 0: 
Worker 0:   File "/usr/share/createrepo/worker.py", line 84, in main
Worker 0: iso-8859-1 encoding on Ville Skytt� <ville.skytta> - 2.8.2-2
Worker 0:     pri.write(pkg.xml_dump_primary_metadata())
Worker 0: 
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1208, in xml_dump_primary_metadata
Worker 0:     msg += misc.to_unicode(self._dump_format_items())
Worker 0:   File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1076, in _dump_format_items
Worker exited with non-zero value: 1. Fatal.
Worker exited with non-zero value: 1. Fatal.


Version-Release number of selected component (if applicable):

createrepo 0.9.9-3

Comment 1 James Antill 2011-06-22 13:26:17 UTC
rpm changelog encoding sucks ... but we can stop it failing (the rpms you are failing on would be helpful though :).

Comment 2 Pradeep Kilambi 2011-06-22 13:43:50 UTC
(In reply to comment #1)
> rpm changelog encoding sucks ... but we can stop it failing (the rpms you are
> failing on would be helpful though :).


The package based on what I see is 

/var/lib/pulp/repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/Packages/system-config-kickstart-2.8.6.3-1.el6.noarch.rpm

if I grep in there I see this line:

* Mon Sep 14 2009 Ville Skytt<E4> <ville.skytta> - 2.8.2-2
- Convert specfile to UTF-8.

Comment 3 Pradeep Kilambi 2011-06-22 13:53:23 UTC
Also I see the same issue in system-config-kickstart-2.8.6.3-1.el6.noarch.rpm

I look around for the same name in other packages and those look like this:

/var/lib/pulp/repos/content/dist/rhel/rhui/server-6/updates/6Server/x86_64/os/Packages/hal-storage-addon-0.5.14-8.el6.x86_64.rpm

* Tue Aug 11 2009 Ville Skyttä <ville.skytta> - 0.5.13-8
- Use bzipped upstream tarball.

Comment 4 Pradeep Kilambi 2011-06-22 15:40:46 UTC
So turns out this is just a duplicate of 715108. Running strace shows the full error, unfortunately the stdout error wasn't clear enough. closing as duplicate.

*** This bug has been marked as a duplicate of bug 715108 ***


Note You need to log in before you can comment on or make changes to this bug.