Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Error: "Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.3. Please verify its path and try again"

avatar
Expert Contributor

when I try to use yum to update or install some packages, I get this error. .

"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.2.0/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: HDP-2.3. Please verify its path and try again"

I am working on HDP 2.3.4 Sandbox deployed on a CentOS 6 server which is behind the proxy. The server has internet access. I can ping google.com , for example.

the contents of /etc/yum.repos.d looks like this:

1930-yumreposd.png

Any workaround regarding this issue would be highly appreciated!

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Neeraj Sabharwal

Resolved: The problem was related to proxy Authentication. So, I installed and configured CNTLM to access ISA Proxy Server on Centos 6.

Look at the article :

http://wingloon.com/2014/04/11/how-to-install-and-configure-cntlm-to-access-isa-server-on-centos-6-5...

1.Install and configure cntlm

2. configure yum to use through ISA Proxy

  • vi /etc/yum.conf

add a line:

proxy=http://127.0.0.1:3128/

  • vi .bash_profile

add :

export http_proxy=http://localhost:3128/

export https_proxy=${http_proxy}

export ftp_proxy=${http_proxy}

  • logoff root and login again
  • yum clean all
  • yum install XXXX

yum update, yum repolist or yum install now works fine

View solution in original post

30 REPLIES 30

avatar
Master Mentor
@Kibrom Gebrehiwot

Verify the content of repo files. I am able to run the repolist. It looks like that you have changed the repo files. In case you have not changed it then retry the operation

[root@sandbox ~]# yum repolist

Loaded plugins: fastestmirror, priorities

Loading mirror speeds from cached hostfile

* base: mirrors.unifiedlayer.com

* epel: mirror.symnds.com

* extras: mirror.beyondhosting.net

* updates: reflector.westga.edu

repo id repo name status

HDP-2.3 HDP-2.3 175

HDP-UTILS-1.1.0.20 HDP-UTILS-1.1.0.20 43

Updates-ambari-2.1.2 ambari-2.1.2 - Updates 6

base CentOS-6 - Base 6,575

epel Extra Packages for Enterprise Linux 6 - x86_64 11,992

epel-apache-maven maven from apache foundation. 2

extras CentOS-6 - Extras 50

puppetlabs-deps Puppet Labs Dependencies El 6 - x86_64 77

puppetlabs-products Puppet Labs Products El 6 - x86_64 544

sandbox Sandbox repository (tutorials) 2

updates CentOS-6 - Updates 1,063

repolist: 20,529

[root@sandbox ~]#

avatar
Expert Contributor

@Neeraj Sabharwal

Thanks for your prompt response:

out put of the command yum repolist looks like this: "Network is unreachable"

1942-network-unreachable.png

Is there anything that I should configure on the proxy?

N.B. I can resolve global IP addresses

$ ping google.com

PING google.com (216.58.212.110) 56(84) bytes of data.

then it stacks here.

avatar
Master Mentor

@Kibrom Gebrehiwot Did you modify the repo files? It should not be talking to dev2.hortonworks.com.

cd /etc/yum.repo.d

See this

1935-screen-shot-2016-02-09-at-20255-am.png

avatar
Expert Contributor

I didn't modify any of the repo files. All the outputs are the same as yours.

1943-repofiles.png

avatar
Super Collaborator
Did you get anything on running grep -ir dev2 /etc/yum.repos.d ?

avatar
Master Mentor

@Kibrom Gebrehiwot

sandbox.repo:baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/

mv sandbox.repo sandbox.repo.1

This should resolve the issue

avatar
Master Mentor

@Kibrom Gebrehiwot Looking at errors....Looks like you are having trouble getting to any of those repo. I see your ping google.com works fine

try to run

wget https://community.hortonworks.com/storage/temp/1943-repofiles.png

See if it works or not

avatar
Master Mentor

@Kibron Gebrehiwot

could you rename your current HDP.repo to eg mv HDP.repo XXXHDP.repo.BCK

the run these 2 commands as root

# yum clean metadata

# yum clean all

Then recreate the HDP.repo with the attached contents don't change anything and then run

# yum repolist

Then retry

avatar
Expert Contributor

@Geoffrey Shelton Okot

I did all what you suggested me. But no luck yet.

Please, Have a look at the output of your suggested workaround: it seems the issue is related to network or proxy configuration. Any suggestion on the necessary network/proxy configurations?

1947-yumrepolist.png