12584 freebsd-update from 8.0-RELEASE to 8.1-RELEASE damaged system - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old June 24th, 2011, 23:04
laurelraven laurelraven is offline
Junior Member
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default freebsd-update from 8.0-RELEASE to 8.1-RELEASE damaged system

Hi...I needed to get my webserver upgraded, and decided on moving up to 8.1 since it has the longest time until EOL in the 8.x branch right now. My system was already running 8.0-RELEASE, and had been since it was initially installed. It is one of a pair of webservers that are almost identical (one primary, one sitting in standby in case something goes wrong). This is the standby server, and I was getting it upgraded and was going to swap them out and then upgrade the primary server while it is "offline".

I followed the instructions in http://www.freebsd.org/doc/handbook/...bsdupdate.html under section 26.2.3 Major and Minor Upgrades. Everything seemed to be going fine, but when I got to the first reboot, a lot of things didn't come back up. I was expecting things like cherokee to maybe fail until it got rebuilt, but ssh stopped working, and freebsd-update doesn't seem to be working anymore either.

When I run "freebsd-update install", I get back:

Code:
Installing updates...Update files missing -- this should never happen.
Re-run '/usr/sbin/freebsd-update fetch'
So, I ran the command it suggested, and got:

Code:
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
fetching metadata signature for 8.1-RELEASE from update4.freebsd.org... Segmentation fault (core dumped)
failed.
fetching metadata signature for 8.1-RELEASE from update5.freebsd.org... Segmentation fault (core dumped)
failed.
fetching metadata signature for 8.1-RELEASE from update2.freebsd.org... Segmentation fault (core dumped)
failed.
fetching metadata signature for 8.1-RELEASE from update3.freebsd.org... Segmentation fault (core dumped)
failed.
No mirrors remaining, giving up.
I also tried freebsd-update rollback, but it just says there are no rollback files.

Oh, and when I tried pinging another system just to see if the network was working at all, I got:

Code:
/libexec/ld-elf.so.1: /lib/libm.so.5: Shared object has no run-time symbol table
So...is it just gone? I can get it back to where it was, but it may involve taking the website down for half an hour or so while I make a copy of it, and I'd like to try to avoid that. I may even be able to mount its SAN snapshot and make a copy that way...but, even then, I still need to get the server upgraded.

Any suggestions? I'll answer any question I can, and if I can find some magical way to get files off of the server, I'd be more than happy to upload them.

Thanks in advance!
Reply With Quote
  #2  
Old June 27th, 2011, 04:11
brd@'s Avatar
brd@ brd@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Denver, CO, USA
Posts: 277
Thanks: 0
Thanked 50 Times in 29 Posts
Default

Do you get the same error when you run other commands, e.g. ls?

If so, you'll need to boot off a livecd or something like that and copy that missing library, i.e. /lib/libm.so.5.

In the future, you should probably refer to the directions in the actual Release Announcement:
http://www.freebsd.org/releases/8.1R/announce.html

The directions in the Handbook are more of a "this is everything you could possibly do with freebsd-update" and the Release Announcement directions are more like "this is the short path to the upgrade".

Last edited by DutchDaemon; June 27th, 2011 at 12:49.
Reply With Quote
  #3  
Old June 27th, 2011, 04:45
laurelraven laurelraven is offline
Junior Member
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'll check that out when I get back in the office on Monday.

I've also pulled a backup of that virtual hard disk image from before my attempt, so I may just go back to that and upgrade from there. At this point, it may be more academic to repair the failed upgrade, but it will be a learning experience. I'll admit, I'm still somewhat of a noob administrator with FreeBSD, but I love everything I've seen with it, which is why I chose it for my company's webserver, it's rock solid. That being said, there are some things I still need to learn where to get my info from. I basically said "gee, I need to upgrade" and started with Google.

I'm really glad I set the server up with a passive standby that I can do this sort of work on first and get the kinks out.

Thanks for pointing me to the release announcement. I'll know to look for those in the future!

Last edited by DutchDaemon; June 27th, 2011 at 12:50. Reason: Less [...].
Reply With Quote
  #4  
Old June 29th, 2011, 20:20
laurelraven laurelraven is offline
Junior Member
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I pulled the backup virtual drive and booted from that, then tried the upgrade using the method in the release notes for 8.1, but upon rebooting, it seems like it's not mounting anything other than the root partition (I can't log in...I suspect it's because it can't find bash), and it fails to load SSH, and throws a segmentation fault on some other things. I tried booting into single user mode, but none of the text editors I'm familiar with (such as vi) seem to be available, so I'm not sure what good that really will do me.

I'm going to reload from backup again. Not sure what else to do to upgrade, if the preferred path just trashes the system. Any suggestions as to the next path to take on this?

I did download the DVD. I hope I don't have to use it to do a fresh install.

Last edited by DutchDaemon; June 30th, 2011 at 00:47. Reason: Less [...].
Reply With Quote
  #5  
Old June 29th, 2011, 20:25
laurelraven laurelraven is offline
Junior Member
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oh. this may make me look like an idiot for asking, but I'll do so anyway:

I think I installed my third party software on this server from ports rather than as binaries. I figured they might break and I'd have to reinstall them, but didn't think it would cause the upgrade to fail (since the base should, in my own theory, be able to update itself and boot fine, even if the other parts don't work right away). Could this be causing the issue? And, if so, how do I upgrade with that being the case?

I really appreciate your help so far.

Last edited by DutchDaemon; June 30th, 2011 at 00:48. Reason: Less [...].
Reply With Quote
  #6  
Old June 30th, 2011, 09:12
mix_room mix_room is offline
Member
 
Join Date: Aug 2009
Posts: 500
Thanks: 9
Thanked 39 Times in 36 Posts
Default

Try running # freebsd-update IDS maybe that will tell you which files are not as expected.
Reply With Quote
  #7  
Old June 30th, 2011, 14:49
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Quote:
Originally Posted by laurelraven View Post
I think I installed my third party software on this server from ports rather than as binaries. I figured they might break and I'd have to reinstall them, but didn't think it would cause the upgrade to fail (since the base should, in my own theory, be able to update itself and boot fine, even if the other parts don't work right away).
That's correct, ports are separate from the base.

Quote:
Could this be causing the issue? And, if so, how do I upgrade with that being the case?
It's unlikely. Someone else, or possibly you, reported a problem with a similar upgrade using freebsd-update on the mailing lists.

Why not just upgrade with source?

Last edited by DutchDaemon; June 30th, 2011 at 18:21.
Reply With Quote
  #8  
Old July 1st, 2011, 18:27
laurelraven laurelraven is offline
Junior Member
 
Join Date: Jun 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

wblock: That's what I thought. I'll look into the mailing list and see if I can find the post; it wasn't me who posted it. If I can't figure this out, I will give a source upgrade a try.

mix_room: I'll try that and report back next week.

All of you: Thank you for your help so far!
Reply With Quote
  #9  
Old July 1st, 2011, 22:08
brd@'s Avatar
brd@ brd@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Denver, CO, USA
Posts: 277
Thanks: 0
Thanked 50 Times in 29 Posts
Default

I would still suggest you keep to the freebsd-update method if you have time to work with us a bit..

Can you please capture the output of the upgrade using the script command or something similar and post them online somewhere? I would like to see each and every step you are taking.

Last edited by DutchDaemon; July 2nd, 2011 at 01:34.
Reply With Quote
Reply

Tags
8.1-release, freebsd-update, upgrade

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] freebsd-update 8.2-RELEASE vs 8.2-STABLE thinkofit Installing & Upgrading 1 June 20th, 2011 13:10
[Solved] freebsd-update -r 8.2-RELEASE upgrade hangs mergenchik Installing & Upgrading 6 March 1st, 2011 09:18
Whats the best way to recover from failed freebsd-update for 7.1-->8.0 release? osx-addict Installing & Upgrading 5 March 6th, 2010 07:58
'freebsd-update -r 7.1-RELEASE upgrade' in jail noobster Installing & Upgrading 5 February 28th, 2010 05:14
freebsd-update: Lots of patches from amd 64 7.2-RELEASE-p1 to -p2 Sfynx Installing & Upgrading 0 July 16th, 2009 15:10


All times are GMT +1. The time now is 04:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0