[Pulp-list] Problems syncing from cdn.redhat.com

Vijayabalan Balakrishnan bvijaycom at gmail.com
Thu Mar 19 20:42:02 UTC 2015


Dear Sandro,

Thanks for your assistance.

with the following steps, now the sync is started working.

# 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


Team,

However during sync i am getting the below warnings.


getting errors while Writing Listings File .....

Kindly advise me on this ....

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


[root at pocserver ~]# pulp-admin rpm repo update --repo-id rhel-6
--proxy-host http://proxyserver --proxy-port 8080 --proxy-user proxyuser1
--proxy-pass PASSWORD

Repository [rhel-6] successfully updated

[root at 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 inrange(128)*


*Task Failed*


*'ascii' codec can't encode character u'\xa0' in position 6: ordinal not
inrange(128)*
[root at pocserver ~]#


Thanks,
BVIJAY

On Thu, Mar 19, 2015 at 6:52 PM, Vijayabalan Balakrishnan <
bvijaycom at gmail.com> wrote:

> Dear Chris,
>
>
> This server is configured via proxy server inorder to access internet
>
>
> [root at pocserver ~]# more /etc/profile.d/rhn_proxy.sh
>
> export http_proxy=http://xsRHNsatellite:username@proxyserver:8080/
> export https_proxy=http://xsRHNsatellite:username@proxyserver:8080/
>
> export HTTP_PROXY=http://xsRHNsatellite:username@proxyserver:8080/
> export HTTPS_PROXY=http://xsRHNsatellite:username@proxyserver:8080/
>
> export no_proxy=.domain
>
>
> In the above file we have configured the proxy settings and the has been
> exported as environment variable.
>
> I have validated after export also.
>
> [root at pocserver ~]# env | grep -i http
>
> http_proxy=http://xsRHNsatellite:username@proxyserver:8080/
> HTTPS_PROXY=http://xsRHNsatellite:username@proxyserver:8080/
> https_proxy=http://xsRHNsatellite:username@proxyserver:8080/
> HTTP_PROXY=http://xsRHNsatellite:username@proxyserver:8080/
>
>
> The below curl command is working....
>
>
> curl -v
> https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml
> --cacert /etc/rhsm/ca/redhat-uep.pem --cert
> /etc/pki/entitlement/6229515953803313501.pem --key
> /etc/pki/entitlement/6229515953803313501-key.pem
>
>
> However if i try to sync it,i am getting the same error
>
>
> [root at 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...
> [/]
> ... failed
>
> HTTPSConnectionPool(host='cdn.redhat.com', port=443): Max retries
> exceeded with
> url: /content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml
> (Caused
> by <class 'socket.error'>: [Errno 110] Connection timed out)
>
> Task Failed
>
> Importer indicated a failed response
>
>
> is there any proxy syntax do we need to add while creating the repository
> with feed and cert ?
>
>
> Please advise me on this ?
>
>
> On Wed, Mar 18, 2015 at 10:04 PM, Vijayabalan Balakrishnan <
> bvijaycom at gmail.com> wrote:
>
>> Dear Randy,
>>
>> I have followed your advise and now while syncing ,I am getting the below
>> error...
>>
>> [root at pocserver ~]# 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
>> Successfully created repository [rhel-6]
>> [root at pocserver ~]#
>> [root at pocserver ~]#
>> [root at 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...
>> [/]
>> ... failed
>> HTTPSConnectionPool(host='cdn.redhat.com', port=443): Max retries
>> exceeded with
>> url: /content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml
>> (Caused
>> by <class 'socket.error'>: [Errno 110] Connection timed out)
>>
>> Task Failed
>> Importer indicated a failed response
>>
>>
>>
>>
>> the creation of the repository went fine.. but the sync failed again...
>> same error...
>>
>>
>> Please help me on this ...
>>
>>
>> Thanks,
>> BVIJAY
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20150320/921a3c20/attachment.htm>


More information about the Pulp-list mailing list