Support Questions

Find answers, ask questions, and share your expertise

sandbx.repo problem

avatar

Dear All,

I can't finish yum update command. I have error with sandbox.repo.

In the attachment you will find results of yum update.

Perhaps link in sandbox.repo is no longer up to date?

Regards,

Lukasz


capture.jpg
1 ACCEPTED SOLUTION

avatar
Master Mentor

@Lukasz Szary

If you want to perform "yum update" then temporarily disable the sandbox.repo by setting the "enabled=0" inside the file "/etc/yum.repos.d/sandbox.repo" as following:

# cat /etc/yum.repos.d/sandbox.repo 
[sandbox]
baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/
name=Sandbox repository (tutorials)
gpgcheck=0
enabled=0

After setting the "enabled=0" in the above file perform a yum clean and then try the update again.

# yum clean all
# yum update

.

View solution in original post

11 REPLIES 11

avatar
Master Mentor

@Lukasz Szary

If you want to perform "yum update" then temporarily disable the sandbox.repo by setting the "enabled=0" inside the file "/etc/yum.repos.d/sandbox.repo" as following:

# cat /etc/yum.repos.d/sandbox.repo 
[sandbox]
baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/
name=Sandbox repository (tutorials)
gpgcheck=0
enabled=0

After setting the "enabled=0" in the above file perform a yum clean and then try the update again.

# yum clean all
# yum update

.

avatar
New Contributor

I followed the steps above, and no more 403 errors!! Yum update worked beautifully and my install of python pip worked. Amazing what one setting will do.

avatar
Master Mentor

@Daniel Nicholas

Good to know that the issue is resolved.

Basically the setting "enabled=0" will temporarily disable the sandbox.repo as that repo seems to have some issues currently and hence causing 403 error.

avatar

@Jay SenSharma Thank you. It is working now.

Regards,

Lukasz

avatar
Master Mentor

@Lukasz Szary

Good to know that it's working now.

It will be great if you can mark this HCC thread as Answered (Accepted) so that other HCC users can easily browse the answered threads when they encounter the similar error.

avatar
New Contributor

Yes. I am getting a similar error. Here is what I tried, and nothing worked.

I am having issues installing python-pip which looks like it requires that repo file you mentioned @Lukasz Szary . I have tried the following commands in putty:

yum install python-pip
yum update
yum -y update
yum install epel-release
yum --disablerepo=epel -y update ca-certificates

I'm running Horton sandbox 2.6.1; Windows 10; Oracle VM Virtual Box; Putty; no proxy. Nothing too out of the ordinary. I even dumped the firewall and tried all the commands

All of the commands were met with the following similar error 403 forbidden error:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again

[root@sandbox maria_dev]# yum --disablerepo=epel -y update ca-certificates
Loaded plugins: fastestmirror, ovl, priorities
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: reflector.westga.edu * extras: mirror.team-cymru.org * updates: mirror.sfo12.us.leaseweb.net
http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

Side note- that redhat article 69319 is restricted to subscribers. I'm not paying for a subscription to read that.

The problem site

http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/repodata/repomd.xml

appears to be the commonality through all of the error codes I received. Shouldn't I be able to access this through a normal browser?

I got this error in chrome and IE. Do we need to pass any logon info? Is the link still active? How do we update our sandbox so that running yum update pulls from the proper location?

<Error>< Code>AccessDenied</Code>< Message>Access Denied</Message>< RequestId>6E1B24189D335373</RequestId>

"); vertical-align: bottom; height: 10px;"><HostId> udzTFHaA9D/xJsvHGf/o1AZbb8mv4/whswlxsdWfu9C+VBHbCn9rz8HDoHR9iKVR2eDaWtRtPjY=< /HostId>

</Error>

Dan

avatar
New Contributor

Yes. I am getting a similar error. Here is what I tried, and nothing worked.

I am having issues installing python-pip which looks like it requires that repo file you mentioned @Lukasz Szary . I have tried the following commands in putty:

yum install python-pip
yum update
yum -y update
yum install epel-release
yum --disablerepo=epel -y update ca-certificates

I'm running Horton sandbox 2.6.1; Windows 10; Oracle VM Virtual Box; Putty; no proxy. Nothing too out of the ordinary. I even dumped the firewall and tried all the commands

All of the commands were met with the following similar error 403 forbidden error:

Error: Cannot retrieve repository metadata (repomd.xml) for repository: sandbox. Please verify its path and try again

[root@sandbox maria_dev]# yum --disablerepo=epel -y update ca-certificates
Loaded plugins: fastestmirror, ovl, priorities
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: reflector.westga.edu
* extras: mirror.team-cymru.org
* updates: mirror.sfo12.us.leaseweb.net
http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 403 Forbidden"
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/solutions/69319

Side note- that redhat article 69319 is restricted to subscribers. I'm not paying for a subscription to read that.

The problem site

http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/repodata/repomd.xml

appears to be the commonality through all of the error codes I received. Shouldn't I be able to access this through a normal browser?

I got this error in chrome and IE. Do we need to pass any logon info? Is the link still active? How do we update our sandbox so that running yum update pulls from the proper location?

<Error>< Code>AccessDenied</Code>< Message>Access Denied</Message>< RequestId>6E1B24189D335373</RequestId>

"); vertical-align: bottom; height: 10px;"><HostId> udzTFHaA9D/xJsvHGf/o1AZbb8mv4/whswlxsdWfu9C+VBHbCn9rz8HDoHR9iKVR2eDaWtRtPjY=< /HostId>

</Error>

Dan

avatar
New Contributor

I don't understand that how to do enabled = 0 ??

As when you give a command - # cat /etc/yum.repos.d/sandbox.repo

it responded -

  1. [sandbox]
  2. baseurl=http://dev2.hortonworks.com.s3.amazonaws.com/repo/dev/master/utils/
  3. name=Sandbox repository (tutorials)
  4. gpgcheck=0
  5. enabled=1

Then how to enabled would be 0 ??

avatar
New Contributor

@Nilesh Tokeria press the 'i' then replace with '0' after that press 'Esc' and then type :wq then Enter.