Project

Profile

Help

Issue #814

closed

UnicodeEncodeError during repository publish listing file step

Added by bvijaycom about 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.5
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Dear Team,

I have managed to created new epel repository and started syncing with cdn.redhat.com

**************************************************************************

Steps I have followed to create repository

#pulp-admin rpm repo create --repo-id rhel-6 --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem --feed-cert=/etc/pki/entitlement/7281296287748190629.pem --feed-key=/etc/pki/entitlement/7281296287748190629-key.pem --feed=https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os --retain-old-count=2 --validate=true --relative-url rhel-6 --serve-http=true --serve-https=false --gpg-key=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

#pulp-admin rpm repo update --repod-id rhel-6 --proxy-host http://proxyserver --proxy-port 8080 --proxy-user username --proxy-pass yourpassword

#pulp-admin rpm repo sync run --repo-id rhel-6

*****************************************************************************
While syncing with

https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os

URL ,I am getting this below error.

[root@pocserver ~]# pulp-admin rpm repo sync run --repo-id rhel-6
--------------------------------------------------------------------
Synchronizing Repository [rhel-6]
--------------------------------------------------------------------

This command may be exited via ctrl+c without affecting the request.

Downloading metadata...
[|]
... completed

Downloading repository content...
[==================================================] 100%
RPMs: 7662/7662 items
Delta RPMs: 0/0 items

... completed

Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
... completed

Importing errata...
[\]
... completed

Importing package groups/categories...
[/]
... completed

Task Succeeded

Initializing repo metadata
[-]
... completed

Publishing Distribution files
[-]
... completed

Publishing RPMs
[==================================================] 100%
7662 of 7662 items
... completed

Publishing Delta RPMs
... skipped

Publishing Errata
[==================================================] 100%
2865 of 2865 items
... completed

Publishing Comps file
[==================================================] 100%
212 of 212 items
... completed

Publishing Metadata.
[-]
... completed

Closing repo metadata
[-]
... completed

Generating sqlite files
... skipped

Publishing files to web
[\]
... completed

Writing Listings File
[\]
... failed
'ascii' codec can't encode character u'\xa0' in position 6: ordinal not in
range(128)

Task Failed

'ascii' codec can't encode character u'\xa0' in position 6: ordinal not in
range(128)

[root@pocserver ~]#

**************************************Locale output******************

Here I have mentioned the locale command output...

[root@pocserver ~]# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

**************************


Files

pulp-file-list-error.txt (11.8 KB) pulp-file-list-error.txt bvijaycom, 03/25/2015 04:02 PM

Also available in: Atom PDF