Bug 715105

Summary: createrepo fails with an encoding error
Product: [Fedora] Fedora Reporter: Pradeep Kilambi <pkilambi>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: james.antill, lmacken, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-22 15:40:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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 ***