<div dir="ltr"><p>Dear Sandro,</p><p>Thanks for your assistance.</p><p>with the following steps, now the sync is started working.</p><p># pulp-admin rpm repo update --repod-id rhel-6 --proxy-host <a href="http://proxyserver">http://proxyserver</a> --proxy-port 8080 --proxy-user username --proxy-pass yourpassword</p><p># pulp-admin rpm repo sync run --repo-id rhel-6</p><p><br>Team,</p><p>However during sync i am getting the below warnings.</p><p><br></p><p>getting errors while Writing Listings File .....</p><p>Kindly advise me on this ....</p><p>****************************************************************************************************************************************************************</p><p><br></p><p>[root@pocserver ~]# pulp-admin rpm repo update --repo-id rhel-6 --proxy-host <a href="http://proxyserver">http://proxyserver</a> --proxy-port 8080 --proxy-user proxyuser1 --proxy-pass PASSWORD</p><p>Repository [rhel-6] successfully updated</p><p>[root@pocserver ~]# pulp-admin rpm repo sync run --repo-id rhel-6<br>+----------------------------------------------------------------------+<br>                   Synchronizing Repository [rhel-6]<br>+----------------------------------------------------------------------+</p><p>This command may be exited via ctrl+c without affecting the request.</p><p><br>Downloading metadata...<br>[|]<br>... completed</p><p>Downloading repository content...<br>[==================================================] 100%<br>RPMs:       7662/7662 items<br>Delta RPMs: 0/0 items</p><p>... completed</p><p>Downloading distribution files...<br>[==================================================] 100%<br>Distributions: 0/0 items<br>... completed</p><p>Importing errata...<br>[\]<br>... completed</p><p>Importing package groups/categories...<br>[/]<br>... completed</p><p><br>Task Succeeded</p><p><br></p><p>Initializing repo metadata<br>[-]<br>... completed</p><p>Publishing Distribution files<br>[-]<br>... completed</p><p>Publishing RPMs<br>[==================================================] 100%<br>7662 of 7662 items<br>... completed</p><p>Publishing Delta RPMs<br>... skipped</p><p>Publishing Errata<br>[==================================================] 100%<br>2865 of 2865 items<br>... completed</p><p>Publishing Comps file<br>[==================================================] 100%<br>212 of 212 items<br>... completed</p><p>Publishing Metadata.<br>[-]<br>... completed</p><p>Closing repo metadata<br>[-]<br>... completed</p><p>Generating sqlite files<br>... skipped</p><p>Publishing files to web<br>[\]<br>... completed</p><p><strong>Writing Listings File<br>[\]<br>... failed<br>'ascii' codec can't encode character u'\xa0' in position 6: ordinal not in<br>range(128)</strong></p><p><br><strong>Task Failed</strong></p><p><strong>'ascii' codec can't encode character u'\xa0' in position 6: ordinal not in<br>range(128)</strong></p><div>[root@pocserver ~]#</div><div><br></div><div><br></div><div>Thanks,</div><div>BVIJAY<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 6:52 PM, Vijayabalan Balakrishnan <span dir="ltr"><<a href="mailto:bvijaycom@gmail.com" target="_blank">bvijaycom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p>Dear Chris,</p><p><br>This server is configured via proxy server inorder to access internet</p><p><br>[root@pocserver ~]# more /etc/profile.d/rhn_proxy.sh</p><p>export http_proxy=http://xsRHNsatellite:username@proxyserver:8080/<br>export https_proxy=http://xsRHNsatellite:username@proxyserver:8080/</p><p>export HTTP_PROXY=http://xsRHNsatellite:username@proxyserver:8080/<br>export HTTPS_PROXY=http://xsRHNsatellite:username@proxyserver:8080/</p><p>export no_proxy=.domain</p><p><br>In the above file we have configured the proxy settings and the has been exported as environment variable.</p><p>I have validated after export also.</p><p>[root@pocserver ~]# env | grep -i http</p><p>http_proxy=http://xsRHNsatellite:username@proxyserver:8080/<br>HTTPS_PROXY=http://xsRHNsatellite:username@proxyserver:8080/<br>https_proxy=http://xsRHNsatellite:username@proxyserver:8080/<br>HTTP_PROXY=http://xsRHNsatellite:username@proxyserver:8080/</p><p><br>The below curl command is working....</p><p><br>curl -v <a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml</a> --cacert /etc/rhsm/ca/redhat-uep.pem --cert /etc/pki/entitlement/6229515953803313501.pem --key /etc/pki/entitlement/6229515953803313501-key.pem</p><p><br>However if i try to sync it,i am getting the same error</p><span><p><br>[root@pocserver ~]# pulp-admin rpm repo sync run --repo-id rhel-6 <br>+----------------------------------------------------------------------+ <br>                   Synchronizing Repository [rhel-6] <br>+----------------------------------------------------------------------+ </p><p>This command may be exited via ctrl+c without affecting the request. </p><p><br></p><p>Downloading metadata... <br>[/] <br>... failed </p><p>HTTPSConnectionPool(host='<a href="http://cdn.redhat.com" target="_blank">cdn.redhat.com</a>', port=443): Max retries exceeded with <br>url: /content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml (Caused <br>by <class 'socket.error'>: [Errno 110] Connection timed out) </p><div><br></div><p>Task Failed </p><p>Importer indicated a failed response</p><p><br></p></span><p>is there any proxy syntax do we need to add while creating the repository with feed and cert ?</p><p><br>Please advise me on this ?</p><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 10:04 PM, Vijayabalan Balakrishnan <span dir="ltr"><<a href="mailto:bvijaycom@gmail.com" target="_blank">bvijaycom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Dear Randy,</div><div><br></div><div>I have followed your advise and now while syncing ,I am getting the below error...</div><div><br></div><div>[root@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=<a href="https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os" target="_blank">https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os</a> --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 </div><div>Successfully created repository [rhel-6] </div><div>[root@pocserver ~]# <br>[root@pocserver ~]# <br>[root@pocserver ~]# pulp-admin rpm repo sync run --repo-id rhel-6 <br>+----------------------------------------------------------------------+ <br>                   Synchronizing Repository [rhel-6] <br>+----------------------------------------------------------------------+ </div><div>This command may be exited via ctrl+c without affecting the request. </div><div><br></div><div>Downloading metadata... <br>[/] <br>... failed </div><div>HTTPSConnectionPool(host='<a href="http://cdn.redhat.com" target="_blank">cdn.redhat.com</a>', port=443): Max retries exceeded with <br>url: /content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml (Caused <br>by <class 'socket.error'>: [Errno 110] Connection timed out) </div><div><br></div><div>Task Failed </div><div>Importer indicated a failed response</div><div> <br> <br> <br> <br>the creation of the repository went fine.. but the sync failed again... same error... </div><div><br></div><div><br></div><div>Please help me on this ...</div><div><br></div><div><br></div><div>Thanks,</div><div>BVIJAY<br></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>