LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-23-2014, 12:11 AM   #1
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Rep: Reputation: 26
Yum error using Spacewalk Repo


On my centos 6 client I get the following error, when I attempt to update wget:
Code:
 Error Downloading Packages:
  wget-1.12-1.11.el6_5.x86_64: failed to retrieve getPackage/wget-1.12-1.11.el6_5.x86_64.rpm from centos6-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
The channel information is confirmed good and working due to my following test:
-Can access the URL used for the repo with browser
-On the client I created a new .repo test with the URL used in the Spacewalk channel. Doing that allow yum to update without issue.

On the server side:
-Restarted spacewalk services and attempted, from client to install package..failure again.
-Removed the channel, recreated and synced it.
-Removed the client from spacewalk, ran "yum clean all" then joined/registered it again. Still have the issue.

When trying to push package from Spacewalk, process fails:
Code:
Client execution returned "Error while executing packages action: Error Downloading Packages: wget-1.12-1.11.el6_5.x86_64: failed to retrieve getPackage/wget-1.12-1.11.el6_5.x86_64.rpm from centos6-x86_64 error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" [[6]]" (code -1)

Not sure what to try-next.
 
Old 02-23-2014, 10:56 PM   #2
gdizzle
Member
 
Registered: Jul 2012
Posts: 234

Rep: Reputation: Disabled
Have you checked if you have any strange proxy variables set?

Have you inspected:
Code:
/etc/sysconfig/rhn/up2date
on the spacewalk client?
 
Old 02-24-2014, 11:00 AM   #3
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Original Poster
Rep: Reputation: 26
The directive for Proxy is set to 0; and the other options look normal.
 
Old 02-24-2014, 11:22 AM   #4
kkoene
Member
 
Registered: May 2008
Location: Wisconsin
Distribution: Fedora, Ubuntu, RHEL, AIX6
Posts: 33

Rep: Reputation: 0
Make sure your iptables and or selinux is disabled..I've had problems in the past with these being enabled and messing up spacewalk communications.
 
Old 02-24-2014, 12:05 PM   #5
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Original Poster
Rep: Reputation: 26
Disabling the firewall and putting SElinux in permissive mode didn't help.
 
Old 02-24-2014, 03:25 PM   #6
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Original Poster
Rep: Reputation: 26
I found that the issue was with SELinux on the server side; when in permissive mode, the client was is able to get install via yum using the channels repo it's assigned to.
Before closing this issue, I'll find if the is a boolen/context setting to apply since I want to keep SELinux active.
 
Old 02-24-2014, 11:29 PM   #7
vwtech
Member
 
Registered: Dec 2007
Distribution: Fedora, Oracle Linux & Centos
Posts: 197

Original Poster
Rep: Reputation: 26
Smile Troubleshooting paid-off!

Used the selinux troubleshooter (cli):
Code:
sealert -a /var/log/audit/audit.log > /path/to/my-log-file
Found that apache (httpd) couldn't search the directory where my rpm repo was located.

Needed to set context on the directory that's set as the "rpm repository mount point" on the Spacewalk server.
Code:
semanage fcontext -a -t spacewalk_data_t "/where-you-told-spacewalk-to-store-rpm-repository(/.*)?"
restorecon -R -v /where-you-told-spacewalk-to-store-rpm-repository
Synced that channel repository again, used yum on the client to install a package that wasn't in channel repo before I made the above context updates. Was able to install packages via yum on the client after without issue.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum error: Cannot find a valid baseurl for repo: BogusTrumper Linux - Software 27 01-23-2013 04:06 PM
yum error report for repo: updates - fedora 6 noamhr Linux - Software 3 10-15-2009 02:35 PM
Error message after setting a local repo for YUM Unforgiven79 Fedora 1 01-14-2007 10:21 AM
yum -install returns error with repo giakhanh2487 Linux - Newbie 3 09-17-2006 07:54 PM
local yum repo error shams Fedora 1 12-24-2005 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration