
|
View Full Version : Error Upgrading Kernel With Yum
CISupport 12-26-2004, 07:24 PM Gathering header information file(s) from server(s)
Server: CentOS-3.3 - Addons
Server: CentOS-3.3 - Base
Server: CentOS-3.3 - Extras
Server: CentOS-3.3 - Updates
Finding updated packages
Downloading needed headers
retrygrab() failed for:
http://sunsite.utk.edu/ftp/pub/linux/caos/centos-3/3.3/updates/i386//headers/
squirrelmail-0-1.4.3a-7.EL3.centos.1.noarch.hdr
Executing failover method
failover: out of servers to try
Error getting file http://sunsite.utk.edu/ftp/pub/linux/caos/centos-3/3.3/updat
es/i386//headers/squirrelmail-0-1.4.3a-7.EL3.centos.1.noarch.hdr
[Errno 6] ERROR: Url Return no Content-Length - something is wrong
Nothing affected the server in anyway, however.
Steven 12-26-2004, 07:25 PM You need to modify your mirrors, in the yum.conf. That mirror is obviously bad from the error.
CISupport 12-26-2004, 07:28 PM Where is yum.conf stored?
Steven 12-26-2004, 07:30 PM It is stored in /etc
CISupport 12-26-2004, 07:40 PM I can just find a working mirror from CentOS to replace this?
Steven 12-26-2004, 07:42 PM http://centos.org/modules/tinycontent/index.php?id=13
you pick a mirror, you put it there, umm boom it works. self explains itself.
CISupport 12-26-2004, 07:49 PM Yeah...it did work.
HOWEVER, cPanel is still displaying the kernel as 2.4.21-20.0.1.EL.i686, even though I installed the latest version.
Is there a reason for this?
Steven 12-26-2004, 07:52 PM You must reboot into the new kernel
CISupport 12-26-2004, 07:54 PM I did run a reboot...is a special process needed for kernel rebooting?
Steven 12-26-2004, 08:02 PM then you need to modify your bootloader (grub/lilo) so it knows the default kernel.
CISupport 12-26-2004, 08:16 PM prompt
timeout=50
default=2.4.28
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.21-27.0.1.ELsmp
label=2.4.21-27.0.1.1
initrd=/boot/initrd-2.4.21-27.0.1.ELsmp.img
read-only
append="root=LABEL=/"
image=/boot/vmlinuz-2.4.21-27.0.1.EL
label=2.4.21-27.0.1.E
initrd=/boot/initrd-2.4.21-27.0.1.EL.img
read-only
append="root=LABEL=/"
image=/boot/vmlinuz-2.4.28
label=2.4.28
initrd=/boot/initrd-2.4.28.img
read-only
root=/dev/hda2
image=/boot/vmlinuz-2.4.21-20.EL.c0smp
label=linux
initrd=/boot/initrd-2.4.21-20.EL.c0smp.img
read-only
append="hdc=ide-scsi root=LABEL=/"
image=/boot/vmlinuz-2.4.21-20.EL.c0
label=linux-up.bak
initrd=/boot/initrd-2.4.21-20.EL.c0.img
read-only
append="hdc=ide-scsi root=LABEL=/"
image=/boot/vmlinuz-2.4.21-27.0.1.EL
label=linux-up
root=/dev/hda2
read-only
initrd=/boot/initrd-2.4.21-27.0.1.EL.img
image=/boot/vmlinuz-2.4.21-27.0.1.ELsmp
label=linux-smp
root=/dev/hda2
read-only
initrd=/boot/initrd-2.4.21-27.0.1.ELsmp.img
That's what is shown in the lilo file.
cPanel displays 2.4.21-20.EL.c0smp
Steven 12-26-2004, 08:21 PM Umm you should really learn to research this stuff yourself. Its very basic administration skills
change
default=2.4.28
to
default=2.4.21-27.0.1.1
then save it and run
lilo -v -v
reboot
Thank you,
Steve
CISupport 12-26-2004, 08:25 PM A google search on "how to upgrade kernel with yum+cpanel" doesn't yield me results. There's no way I could know this without asking.
Thanks.
And, that's not the end of the issues.
Upon doing this, my cPanel "broke" - it's not recognizing my license.
Steven 12-26-2004, 08:29 PM No but searching on lilo would have got you the answer.
/usr/local/cpanel/cpkeyclt
Disable any firewall you have running. A misconfigured firewall WILL BREAK CPANEL.
CISupport 12-26-2004, 08:32 PM Nothing was misconfigured, this issue only happened after following the upgrade advice listed here.
But, will disabling the firewall work?
No, that didn't work. php is not working on one of my servers and i still can't access cPanel.
Steven 12-26-2004, 08:35 PM Just try what i said, including disabling firewall. If it dont work, then go to verify.cpanel.net and check if you still have a valid license.
Also how do you know its not misconfigured??
CISupport 12-26-2004, 08:39 PM Yes, verify.cpanel.net said it's active.
And, that did not work.
I know it's not misconfigured because after several months of being turned ON, I have never run into a problem like this.
PHP includes don't appear to be working on one site.
cPanel isn't working totally
And, some sites aren't even loading.
Steven 12-26-2004, 08:40 PM kernel upgrades will not cause any of those problems.
CISupport 12-26-2004, 08:43 PM Let me detail the process I did:
yum update
shutdown - r
(everything's working, but cPanel doesn't display newest kernel)
You said to change the default in lilo. I did.
Then I disable firewall, run lilo - v - v
reboot
Problems.
cPanel = invalid license error, even though my IP is registered.
php on ONE site isn't working
BOX isn't loading some sites.
===
You obviously are experienced, but don't try "it wasn't me" - I followed everything as suggested here.
Steven 12-26-2004, 08:44 PM CISupport,
None of those issues can come from a kernel upgrade. I am done with this thread as you are apparently trying to blame this on me. You my friend need to learn to manage a server.
CISupport 12-26-2004, 08:46 PM WELL, DISPLAY WHAT IN THE PROCESS COULD'VE CAUSED THEM, BECAUSE BEFORE I OPENED THIS THREAD, NOTHING WAS WRONG.
I'm losing revenue due to following the steps in this process. I'm not blaming anyone, but especially not myself, since I followed the advice of experts.
==
yum update (updates kernel and os files)
(update successful)
Everything's running smoothly, except cPanel is not displaying right kernel
Edit: lilo.conf
lilo - v - v
reboot
(something's wrong)
per advice, service apf stop
lilo - v - v
reboot
(something's still wrong)
Steven 12-26-2004, 08:48 PM Why not just roll back the kernel? Google for it. Im done here. I dont like being blamed for something that could not happen from the process.
CISupport 12-26-2004, 08:49 PM Alright, I ran into an issue running "yum update" and as you can see, the thread was answered below:
http://www.webhostingtalk.com/showthread.php?s=&threadid=357359
I don't profess to be a server expert, which is why I followed the advice above.
However, never has anything like this happened. I don't even think this is covered by support, so I'm going to end up being out tons of money and don't know what to do.
I understand Steve's reputation here is better than mine, but the facts are as follows:
I took his advice
Server got f'd up
He won't help.
Steven 12-26-2004, 08:51 PM OH yeah bro... Did you ever think that yum update can update files that need to be not updated? That i did not tell you to run. You ran that on your own.
Yum update can install php httpd rpms that will not work with cpanel.
NOCTroll 12-26-2004, 08:51 PM Why dont/didnt you hire a server admin for $50 or less?
CISupport 12-26-2004, 08:52 PM Steve is one of those "admins" and I see the type of service he is providing.
With his advice, I ran into a problem.
With my own, I did not.
I need help. I may go to a server admin later on, but for now, someone please help me. I'm BEGGING.
CISupport 12-26-2004, 08:54 PM This whole thread is about yum... I believe you said yum works pretty well with my OS.
Not to mention the fact that NOTHING WENT WRONG until i did that lilo thing.
How would I roll that back?
Steven 12-26-2004, 08:54 PM Omg
You ran yum update which i did not tell you to run. This can install httpd and php rpms which will break everything. Dont you dare blame this on me.
IGobyTerry 12-26-2004, 08:55 PM Of course nothing would go wrong until you ran lilo, becuase the kernel doesn't update until you run lilo.
CISupport 12-26-2004, 08:55 PM I didn't say you intentionally did this...
But, after your advice, I ran into a problem. That's a fact.
AND, yes, YOU SPECIFICALLY SAID YUM IS FINE.
Steven 12-26-2004, 08:56 PM yum install kernel-smp
is what i would have run. Not yum update
Servstra-Sales 12-26-2004, 08:56 PM If you have no idea what you are doing (from the previous thread it looks that way), hire a server admin to assist you.
IGobyTerry 12-26-2004, 08:57 PM Lovely. You asked for free advice on a forum, by accepting his advice you were taking responsibility by any reprocussions that could happen. Grow up and accept responsibility for a mistake YOU made.
CISupport 12-26-2004, 08:57 PM In any event, this is not blame, this is about me not having a server to use due to a miscommunication with advice.
How do I fix it?
Steven 12-26-2004, 08:58 PM You are blaming me
With his advice, I ran into a problem.
With my own, I did not.
Remember that?
CISupport 12-26-2004, 08:59 PM Originally posted by inogenius
Lovely. You asked for free advice on a forum, by accepting his advice you were taking responsibility by any reprocussions that could happen. Grow up and accept responsibility for a mistake YOU made.
Again, how do I fix it?
Steven 12-26-2004, 09:00 PM This whole thread is about yum... I believe you said yum works pretty well with my OS.
That i did, BUT WHERE DID I SAY yum update ??!?!
NO where
LILO -v -v sets the kernel to the bootloader, you would have booted to that old kernel forever unless you changed default and ran that command.
IGobyTerry 12-26-2004, 09:00 PM Have you tried downgrading the kernel to the previous version?
CISupport 12-26-2004, 09:01 PM How do I do that?
The reason I trusted his advice is that he supposedly knows more than I do.
If I knew how to fix that, I wouldn't waste your time.
David 12-26-2004, 09:01 PM I recommend: rm -rf /*
And then installing windows 98, special edition (Special means awesome)
Steven 12-26-2004, 09:01 PM linux-tech.net
wemanageservers.net
easyservermanagement.com
fastservermanagement.com
acunett.com
seeksadmin.com
Geeks4Help.com
rackaid.com
linuxnetworkcare.com
rfxnetworks.com
esupport.org.ua
actsupport.com
bobcares.com
spirithosting.net
hellodev.net
touchsupport.com
servertune.com
adminway.net
serverwizards.com
serversafety.com
cheetaweb.com
rootsupport.com
theserverden.net
supportpro.com
etechsupport.net
linuxadmin.org
hiddenstaff.com
sprintserve.net
have fun, not sure how many are advaliable now
CISupport 12-26-2004, 09:04 PM Everybody, witness his professionalism. Indirectly causes an error, then won't even lend a hand in fixing it.
But, I'm not going to engage in a petty feud FOR NOW, as this is a little more important than that - I need help URGENTLY and for free, since I was hosed unfairly.
Steven 12-26-2004, 09:05 PM Whatever bro... I did not cause the error you did.
David 12-26-2004, 09:05 PM ... he didn't indirectly cause an error - he told you to type a specific command - you later on did another one.
CISupport 12-26-2004, 09:06 PM he told you to type a specific command
Actually, no he did not.
He said use YUM. CentOS.org calls it Yum Update
What other conclusion would one reach?
Steven 12-26-2004, 09:08 PM See its not my fault one bit. Its centos.org fault and your lack of research
IGobyTerry 12-26-2004, 09:10 PM Anyway. Since you don't know how to downgrade the kernel, give your provider a call and ask them to do it for you. It shouldn't take them too long, and likely will fix your problem.
CISupport 12-26-2004, 09:10 PM BUT, for the 50000th time. The error occurred on the lilo reboot, NOT ON THE YUM UPDATE.
I was fine after Yum Update. I got screwed after taking YOUR ADVICE to change lilo and run lilo - v - v.
But, for the last time, I need help here. Forcing a cPanel update did not work either.
IGobyTerry 12-26-2004, 09:13 PM Okay ... okay let's get something clear here. Yum update basically just downloads the kernel, and prepares it for use. Lilo will change which kernel the server boots to. The reason why you didn't have any problems until you ran the lilo command was because you were still using the previous kernel. When you ran lilo -v -v the new kernel that you setup and prepared is setup as the default boot to kernel. When you rebooted it booted to the new kernel, causing the problems.
CISupport 12-26-2004, 09:14 PM But, how come, even when I change the "default" back to the original, nothing is happening.
IGobyTerry 12-26-2004, 09:16 PM Originally posted by CISupport
But, how come, even when I change the "default" back to the original, nothing is happening.
You may need to run lilo -v -v again and then reboot so that it boots to the old kernel. Anyhow, the datacenter techs are the best people to talk to, as they're able to actually see what's going on in your server.
CISupport 12-26-2004, 09:17 PM Yes, but it's at TMS, Jose's a nice guy but he has stated outright that he is not a total expert in this field...and this is not guaranteed service.
That's my problem. If my host could fix this, I wouldn't mind. The problem is that I took advice from someone here, and whether he thinks it's his fault or not, is refusing to help me fix the problem.
I can access cPanel using the IP Address...could I do anything from there to take control back?
Steven 12-26-2004, 09:18 PM If you wouldnt have blamed it on me i would have offered to fix it for free, but your mr jump the gun quick and had to go and blame me for something i did not cause.
CISupport 12-26-2004, 09:19 PM Alright, I was able to fix it. Why this worked, I don't know.
I first ran lilo - v - v with the new kernel. I then ran it with the old kernel. No effect. I then did easy apache, a cPanel update from within the IP's version of cPanel - and then ran lilo - v - v with the new kernel.
Whatever happened, it worked.
Steven 12-26-2004, 09:20 PM sure does sound like you installed the php rpms from yum update... which is your fault.
CISupport 12-26-2004, 09:22 PM Alright, well, it sure does seem like you knew how to fix that, and could have saved me a lot of stress.
You're right, this isn't technically your fault.
However, if you can't see why I, a novice, wouldn't have listened to someone who runs a server administration company, as well as the homepage of the OS I'm using, you're blind.
Should I have assumed when you meant "using yum" you didn't mean follow the CentOS instructions for upgrading kernel via yum?
Thanks to inogenius, who, while disagreeing with me, at least tried to help.
Steven 12-26-2004, 09:23 PM Your right. I could have had it fixed a while ago... But i refused to help you on the board. Lesson for you, dont blame people.
RayWomack 12-26-2004, 09:23 PM There is no 'Winner' here, you both look bad to me.
David 12-26-2004, 09:24 PM ...CISupport, don't bite the hand that feeds you.
Read first, ask questions later.
Never type any commands in that you don't know the outcome of.
Servstra-Sales 12-26-2004, 09:24 PM Good to hear you fixed it.
It might be wise in future to either hire a server admin or get a managed server to avoid these future problems.
NOCTroll 12-26-2004, 09:25 PM Why are you running a server where you can lose "tons of money" if youre a "novice"?
I hope youre not running a hosting company
Steven 12-26-2004, 09:26 PM Boy, I am so glad i host my own sites. These people that host sites with out knowing anything about managing a server.. Sooo scary
CISupport 12-26-2004, 09:27 PM That's just the thing...I read and did EXACTLY WHAT Steve said. It's not like I "improvised," everything he said to do I did.
There was a miscommunication over how to do the yum update. But, while it still technically is my server, I don't see how he can honestly get the impression there was no miscommunication, and that he wasn't involved in anyway.
What it seems like to me is that he wanted to look like a nice guy on the forums, while still making sure not to give away his services for Free.
IF HE SAID UPFRONT, here are the basics, do some research, I'd see his side. I don't here - because he implied he was giving full instructions.
CISupport 12-26-2004, 09:29 PM Why are you running a server where you can lose "tons of money" if youre a "novice"?
I hope youre not running a hosting company
I'm in content, although I have never run into trouble, so would make a fine host.
That is the thing - this is the first time I've ever had an error I couldn't immediately repair - it's also the first time I've taken advice from a server specialist.
Quite ironic, isn't it?
Steven 12-26-2004, 09:30 PM Although judging by some of the admins here, I probaby wouldn't make a half bad server management specialist.
Thats a classic
CISupport 12-26-2004, 09:32 PM I fixed the error by myself....you did not.
Steven 12-26-2004, 09:33 PM Well i guess this shows me something. Dont help people that are clueless. It comes back and bites.
CISupport 12-26-2004, 09:34 PM I fixed the error by myself....you did not.
Steven 12-26-2004, 09:35 PM I could have fixed it in seconds If you had not blamed me in the first place. I just pitty any admin company that ever does work for you. I can see you blaming them for everything totally unrelated to the work they did for you.
CISupport 12-26-2004, 09:37 PM I could have fixed it in seconds If you had not blamed me in the first place. I just pitty any admin company that ever does work for you. I can see you blaming them for everything totally unrelated to the work they did for you.
A) This was related to the Yum Update, that's what I asked you about. If that makes it totally unrelated....
B) Well, if I ever do hire an admin company, I'll make sure they're qualified to fix any problems directly or indirectly caused by their work.
If a company were to say, install a firewall, and it locked me out of my box, it would be their job to fix it.
You can't just give advice, you have to provide insurance for its consequences.
nickn 12-26-2004, 09:39 PM Originally posted by CISupport
B) Well, if I ever do hire an admin company, I'll make sure they're qualified to fix any problems directly or indirectly caused by their advice.
Steven's fully qualified to fix the stuff you break, the issue is you didn't hire him..you didn't pay him...you just expected him to hold your hand for no charge....steven's love comes with a charge... :cool:
CISupport 12-26-2004, 09:41 PM I fully understand that....
I would've paid him to serve as a kernel admin. But, he OFFERED his advice for free. Thus, even if he's disappointed about that offer, he has to live up to what he chose to provide.
That's like saying, we'll put in your new cable...but if our installation doesn't work...you have to pay an additional fee.
spulis 12-26-2004, 09:45 PM It’s also like the old saying goes beggars aren’t choosers.
hbouma 12-26-2004, 09:45 PM Originally posted by CISupport
[B]WELL, DISPLAY WHAT IN THE PROCESS COULD'VE CAUSED THEM, BECAUSE BEFORE I OPENED THIS THREAD, NOTHING WAS WRONG.
Uh, this thread is titled "Error Upgrading Kernel With Yum" so your statement is incorrect. There was something wrong before you opened this thread otherwise you won't have started it.
I'm not blaming anyone, but especially not myself, since I followed the advice of experts.
Point #1. Up to this point, only 1 person had responded to your thread by this point. That means EXPERT not EXPERTS.
Point #2: TheLinuxGuy correctly answered every question you asked. From fixing your mirror, where yum.conf is stored, where you can find a centos mirror, how to reboot with a new kernel, what to run to check your licence, etc.
Point #3: While TheLinuxGuy has shown to be an expert, you clearly have no idea what you're doing. In this thread, you ask about upgrading your kernel using yum. However, you've made it very clear that you have no idea how yum or a kernel upgrade works. So its no surprising that the answers haven't helped you. You have no idea how to use TheLinuxGuy's answers in context with how either system works to solve your problem.
Therefore, the only person who is responsible for this mess is yourself. Don't try to blame someone who took the time to properly answer your questions. TheLinuxGuy's mistake here was not understanding that you had no clue what you were doing so all he was doing was giving you enough rope to shoot yourself in the foot (which you promptly did).
This whole thread is about yum... I believe you said yum works pretty well with my OS.
Yes, yum works well with CentOS. However, it has to be properly configured to work with cPanel. As its already been shown that don't know how yum works, how would you know if your yum install is properly setup? Again, a receipe for disaster.
I'm losing revenue due to following the steps in this process.
Perhaps this will be a useful lesson for what not to do the next time around you get into a situtation like this. However, based on your following comments, it doesn't seem like you've learned much from this because you still think TheLinuxGuy is the cause of your problems for tonight's misadventures.
Hal
linux-tech 12-26-2004, 09:57 PM Steve (TLG) is one of the most professional people here, and in no way misled you.
This is why most people running a webserver NEED administrative services such as those provided by Steve (TLG), myself, and many many more out there. While most are willing to help to a small degree, it's not cool to come here and attack someone that's helped you out.
This is why most people don't help out over the forums any more, because once they do, they get attacked by cluebies. Please, if someone helps you out, at least respond with a thankful nature rather than an attacking one.
Keep up the good work, Steve
</rant>
interservermike 12-26-2004, 10:11 PM Have to expect things to go wrong when doing such big updates. If there is money involved it’s a good idea to get professional help.
choon 12-27-2004, 01:21 AM Originally posted by CISupport
I fixed the error by myself....you did not.
Glad you have fixed the error yourself and i don't see it necessary to leave this thread open since your problem has been resolved thus thread closed.
|