9237 How to resume freebsd-update upgrade - 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 May 25th, 2010, 15:20
AZ4ZeL AZ4ZeL is offline
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to resume freebsd-update upgrade

Hi!

I tried to upgrade from 7.2. to 7.3 using freebsd-update on the remote host over ssh.
Unfortunately I didn't use "screen"-like tool and when I was merging configuration files SSH-connection was closed because of network problems.

After I reconnected I noticed that there is no more running freebsd-update script and when I tried to run It again, I got:


Code:
# freebsd-update upgrade -r 7.3-RELEASE
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 7.2-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/dict world/games world/info world/manpages
world/proflibs

The following components of FreeBSD do not seem to be installed:
world/catpages world/doc

Does this look reasonable (y/n)? y

Fetching metadata signature for 7.3-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... gunzip: data stream error
metadata is corrupt.
I tried to erase data in /var/db/freebsd-update but it didn't help.

Any ideas?

Best regards,
Reply With Quote
  #2  
Old January 21st, 2012, 19:05
mgribov mgribov is offline
Junior Member
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem.

I looked at the relevant part of the freebsd-update shells script (search exactly for "metadata is corrupt") and that part of the code downloads some .gz files, whose names are their sha256 hashes - so for example 60a4e27e4126f4e53cef56ac88437040773513fc30aae3f5c4 a48538edeba44f.gz

After downloading and before unzipping, it runs sha256 to see if the hash of the file matches its name, and if it doesnt, that error is thrown.

In my case, I believe it was because during the upgrade I had some packet loss and high latency, so the files downloaded were themselves corrupt.
I tried rerunning freebsd-update 3 times, and third time it worked, so I think its really matter of retrying utnil you get it.

You can also put some sort of an echo statement within that part of the code in freebsd-update and try to download and verify the files yourself.

Hope it helps!

Last edited by DutchDaemon; January 21st, 2012 at 19:20.
Reply With Quote
Reply

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 Openssh upgrade/update Janice Installing & Upgrading 14 October 20th, 2011 23:53
'freebsd-update -r 7.1-RELEASE upgrade' in jail noobster Installing & Upgrading 5 February 28th, 2010 05:14
Upgrade from 5.4 using freebsd-update? misschristylea Installing & Upgrading 4 April 2nd, 2009 15:47
freebsd-update upgrade best practices alief Installing & Upgrading 6 December 9th, 2008 12:09
FreeBSD-update fails downloading upgrade information Steije Installing & Upgrading 3 November 25th, 2008 20:12


All times are GMT +1. The time now is 22:53.


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