Help - Search - Members - Calendar
Full Version: Up2date issues with cPanel -- please help!
The Planet Forums > Control Panels > cPanel/WHM
platypus
I hope someone can help me, I wasn't sure where this message should go. Every day, when I log into my server and run "top", I see that there are 3 instances of up2date running, which are effectively using up all CPU time. I have been able to manually kill each of them without any apparent problems, but figuring out why this happens is the challenge.

Perhaps someone can explain to me the relationship between cPanel and up2date? I know there is a cron job set up that runs /scripts/upcp, which in turn runs up2date. I'm running Redhat Enterprise 3, and I was concerned about the recent mod_ssl exploit that was reported. When I run up2date by itself, I see that certain packages (such as kernel, httpd, php, etc) are excluded from being updated. The mod_ssl fix says it requires some of these excluded packages. If I clear the exclusion list in up2date and run again, it fails. If I let /scripts/upcp run, it *re-inserts* those packages into the exclude list.

How am I supposed to install the mod_ssl fix? Please help... icon_confused.gif
chirpy
I believe I answered this in another forum for you?
Stein
QUOTE
Every day, when I log into my server and run "top", I see that there are 3 instances of up2date running, which are effectively using up all CPU time. I have been able to manually kill each of them without any apparent problems, but figuring out why this happens is the challenge.


I am having the exact same problem. Also, attempts to updated Apache through the cPanel control panel fail, while they worked a week or so ago. I have no idea what the problem is nor how to fix it.

QUOTE
I believe I answered this in another forum for you?


I looked through your posts and didn't see any solution to his problem, so if you could repost it, I would greatly appreciate it.

Thanks.
chirpy
That would have been this thread icon_wink.gif
http://forums.cpanel.net/showthread.php?t=27055
Stein
You are my hero.

I followed everything you said in that other thread and everything seems to be working properly again.

Thanks a lot.
chirpy
Glad you've got it working icon_biggrin.gif
mattrix
We dont have access to the CPanel forum for some reason - mailed them. Please post the fix here as we are also having a problem updating Cpanel and up2date.

Thanks
chirpy
My pleasure:
QUOTE
There are several issues here:

1. You should not install the mod_ssl update provided by up2date. It's for the wrong version of apache. cPanel uses the correct one when you run "Update Apache". You should add mod_ssl to your up2date skiplist

2. You could try running up2date manually with up2date -l which should list available packages. If that hangs, then you most likely have a problem with your rpm database. If so, then I would recommend running the option under WHM > Rebuild RPM Database. When that is finished (it will take some time to run) try running up2date -l again. If that still hangs, try rebooting the server and then try up2date -l a final time.

3. If up2date doesn't hang, but instead throws up an error, then you will have to contact your NOC as they will have to fix it.

Lastly, if you don't know what up2date is, you should look it up man up2date
mattrix
Thanks
chirpy
Here's an addendum if the problem persists:

Try the following:

1. Issue the following to get the PID's of any processes access the rpm database:
lsof | grep /var/lib/rpm

2. The PID's are in the second column, you need to kill each of the separate ones off:
kill -9 PID

3. Now you need to clean up any lock files:
rm -f /var/lib/rpm/__*

4. Try again. If you get rpm database errors, you may need to:
rpm --rebuilddb

That could take a while. If it seems to be hanging (after 20 minutes or so), then...

5. Reboot the server as a last resort.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.