LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2010, 10:11 AM   #1
slingshot-dave
LQ Newbie
 
Registered: Apr 2010
Location: Indianapolis, IN
Distribution: Ubuntu
Posts: 8

Rep: Reputation: 0
yum hangs; unresponsive; problem with yum


Hello everyone,

I have a bit of experience using linux, but I'm still a newbie when it comes to server administration.

Here's the story. I'm configuring a completely fresh install of "Red Hat Enterprise Linux Server release 5.3 (Tikanga)". This was installed by my host, but I've been assigned the task of administering it. The most simple of tasks is to install new software, but YUM doesn't want to play nice.

Whenever I run yum as root (install, update, repolist, fubar, ANYTHING) it displays:
Code:
[user@server-name ~]$ sudo yum update
Loaded plugins: rhnplugin
...and I get a blinking cursor. I have to hit <CTRL>-C a few times to get out of it. After I kill it, it displays some output, as if it was TRYING to do what I wanted. The common element seems to be this:

Code:
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
Operation already in progress
I've never had this problem before. I can ping other servers, so I know it's not the connection. The only command I've tried that won't hang it is "yum clean all".

The only thread that comes close to my problem is this one: http://www.linuxquestions.org/questi...-hangs-780020/.

I'm drawing a blank, and Google hasn't helped much either. I rarely post to forums, but I sure could use a hand. Any help would be appreciated. Thanks in advance!

-Dave T.
 
Old 04-22-2010, 06:01 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You have to wait.

If you have to wait too long, (I mean several minutes) complain to your hosts.
They probably have a local update server that is a bit slow when under load.

yum clean all is a local command that doesn't need a server connection.
 
Old 04-22-2010, 06:25 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try to login as root to save time, then

1. check if yum is actually running eg

ps -ef|grep yum

2. check for a lock file eg

ls /var/lock

If you killed it via ctrl-c, it may not have deleted the lock file, so the next run sees that and waits for the prev one to complete (which it it obviously won't)..

3. make sure rpm db is good

rpm --rebuilddb

4. yum clean all

5. Is the system registered with Redhat? If not, it should say so when you do

yum update

6. if you need to register

rhn_register

7. By default, there is a daemon rhnsd that polls Redhat every 4 hrs /etc/sysconfig/rhn/rhnsd
 
Old 04-26-2010, 08:43 AM   #4
slingshot-dave
LQ Newbie
 
Registered: Apr 2010
Location: Indianapolis, IN
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for all the input. I have a meeting with our hosts later today, so I'll follow up when this issue is resolved. It very well could be a hosting-side configuration issue, as I'm suddenly having trouble SSH-ing in.
 
Old 04-27-2010, 08:39 AM   #5
slingshot-dave
LQ Newbie
 
Registered: Apr 2010
Location: Indianapolis, IN
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smoker View Post
You have to wait.

If you have to wait too long, (I mean several minutes) complain to your hosts.
They probably have a local update server that is a bit slow when under load.
Thanks, smoker. I waited a while, and eventually it timed out.

Code:
[user@box ~]$ sudo yum update
Password: 
Loaded plugins: rhnplugin
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
timed out
Setting up Update Process
No Packages marked for Update
I'll have another talk with my hosts today.

Thanks for the tips, chrism01. Here's my results:
1.)
Code:
[user@box ~]$ ps -ef | grep yum
root      2341     1  0 08:06 ?        00:00:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
root      3602  3564  0 08:44 pts/0    00:00:00 /usr/bin/python /usr/bin/yum update
502       3900  3861  0 08:53 pts/1    00:00:00 grep yum
python? Why would yum be running through python? (maybe I'm misreading that)

2.)
Code:
[user@box ~]$ ls /var/lock
dmraid  irqbalance  lvm  subsys
(not sure what I'm looking for here...)

3.)
Code:
[user@box ~]$ rpm --rebuilddb
(no response; I assume this is normal behavior)

4.)
Code:
[user@box ~]$ yum clean all
Loaded plugins: rhnplugin
Cleaning up Everything
Makes sense.

5.)
"yum update" times out, as previously mentioned

6.)
The system says that it has already been registered with my hosts information.

I'll see if my hosts can figure out what's going on. They spent all day yesterday resolving a networking issue. Finally, they had to completely shut-down and start-up the virtual server to get the network interfaces working again... More later.
 
Old 04-27-2010, 02:28 PM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
My old hosts had similar issues.

They basically redirected rhn requests to their machines, but if their machines were down, you would get an error as if the redhat network was down. Using a caching server or something.

BYW, yum uses python.

so the rhn network is down is not neccessarily true.
 
Old 04-27-2010, 02:36 PM   #7
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Perhaps you are using the location-aware update service and your firewall is not open to *all* the appropriate servers?

http://kbase.redhat.com/faq/docs/DOC-11215
http://kbase.redhat.com/faq/docs/DOC-16881
 
Old 04-27-2010, 02:44 PM   #8
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
Here is a pointer to the RHN client configuration guide:

https://rhn.redhat.com/rhn/help/clie...0/en/index.jsp
 
Old 04-28-2010, 07:48 AM   #9
slingshot-dave
LQ Newbie
 
Registered: Apr 2010
Location: Indianapolis, IN
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks again for all the replies.

I talked with my hosts last evening. It turns out that the Red Hat Network was not included with the package we bought from them... This makes it very confusing, because their configuration information and RHN are the default settings...

The support person I'm in contact with said he would investigate this. I think the answer is that we're not part of RHN. I would have thought that the RHN yum plug-in would return something to the effect of "you're not subscribed" and exited, rather than hanging for 3-5min.

(UPDATE):

As it turns out, there was some sort of miscommunication. We should be able to update through the RHN, but for some reason our server can't connect to the RHN.

Quote:
...we are still not able to get a response from from RedHat when we try to register. We have been looking at the network aspects of this issue from several angles. The traffic looks good coming from (our server), but RedHat is not responding to the packets that we are sending to them...
Has anyone else had similar problems?

Last edited by slingshot-dave; 04-29-2010 at 08:28 AM.
 
Old 05-05-2010, 03:38 PM   #10
slingshot-dave
LQ Newbie
 
Registered: Apr 2010
Location: Indianapolis, IN
Distribution: Ubuntu
Posts: 8

Original Poster
Rep: Reputation: 0
Solution; Solved; Issue Resolved

Thanks again to everyone for their contributions. As it turns out, my host was using an IP address that was blacklisted (or so I'm told). After numerous phone calls, we believe this to be the issue. If there is no other explanation for this, then we shall label this as the cause. If I hear anything else, I'll post that as well.

Thanks again!
 
  


Reply



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 install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
problem when run yum (No module named yum) ezak Linux - Distributions 4 10-16-2009 04:04 AM
yum header/pidof yum problem yohmie Fedora 3 03-24-2009 07:54 AM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 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
Open Source Consulting | Domain Registration