This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HELP! ASG220 update to V.7 problem

Hello,

I'm sitting here on a Saturday morning, waiting for the update to my ASG220 to complete.

The box was at ver 6.311 and I initiated the v.7 firmware update thru the up2date web interface. It downloaded the firmware properly, verified the signature, and claimed to be installing the update.

It said it would take 30 minutes. It has now been 2 hours and the display on the ASG220 still says *** Astaro Security Gateway ***. During the upgrade it warned about reseting or rebooting the box as it might render it useless, but I am at a loss as to what to do or how long to wait.

Any suggestions? I had to rig up a special network connection just to get to this forum since the upgrade has disabled the network. 

Lou


This thread was automatically locked due to age.
  • Gain console access (SSH) and reveal the content of your upgrade.log file.Arthur


    Here it is:

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2007.07.31 15:18:03 =~=~=~=~=~=~=~=~=~=~=~=
    /var/upgrade > more upgrade.log
    Sat Jul 28 07:49:43 EDT 2007 :: Upgrade initialization started
    Sat Jul 28 07:49:43 EDT 2007  Creating /var/storage/upgrade
    Sat Jul 28 07:49:43 EDT 2007 :: Checking for required utilities
    Sat Jul 28 07:49:43 EDT 2007  parted is installed
    Sat Jul 28 07:49:43 EDT 2007 :: Checking space on /var/storage
    Sat Jul 28 07:49:43 EDT 2007  Enough free space on storage partition (12109 MiB)
    Sat Jul 28 07:49:43 EDT 2007 :: Searching for upgrade servers
    Sat Jul 28 07:50:32 EDT 2007  Using ftp.astaro.de
    Sat Jul 28 07:50:36 EDT 2007 :: Making backup
    Sat Jul 28 07:50:36 EDT 2007  /etc/modules.conf
    Sat Jul 28 07:50:36 EDT 2007  /etc/modules
    Sat Jul 28 07:50:36 EDT 2007  /etc/sysconfig/kernel
    Sat Jul 28 07:50:36 EDT 2007  /etc/asg
    Sat Jul 28 07:50:36 EDT 2007  /etc/securetty
    Sat Jul 28 07:50:36 EDT 2007  /etc/serial.conf
    Sat Jul 28 07:50:36 EDT 2007  /etc/usb.conf
    Sat Jul 28 07:50:36 EDT 2007  /etc/guid
    Sat Jul 28 07:50:36 EDT 2007  Creating V6 backup file
    Sat Jul 28 07:50:36 EDT 2007 Turning off backup encryption
    Sat Jul 28 07:50:46 EDT 2007 Turning on backup encryption again
    Sat Jul 28 07:52:20 EDT 2007 :: up_fetch started
    Sat Jul 28 07:52:20 EDT 2007 :: Setting iptables rule
    Sat Jul 28 07:52:20 EDT 2007 :: Fetching ftp://ftp.astaro.de/pub/Astaro_Security
    _Linux/Migration_6.3-7.0/asg-7.005.bin
    Sat Jul 28 09:11:43 EDT 2007 :: Fetching ftp://ftp.astaro.de/pub/Astaro_Security
    _Linux/Migration_6.3-7.0/asg-7.005.bin.md5
    Sat Jul 28 09:11:50 EDT 2007 :: Checking MD5 sum
    Sat Jul 28 09:12:30 EDT 2007  MD5 checksum OK
    Sat Jul 28 09:12:34 EDT 2007 :: Resetting iptables rule
    Sat Jul 28 09:12:53 EDT 2007 :: Upgrade started
    Sat Jul 28 09:12:53 EDT 2007 :: Check version
    Sat Jul 28 09:12:53 EDT 2007  Installed version is 6.311
    Sat Jul 28 09:12:53 EDT 2007 :: Preparing runlevel 1
    Sat Jul 28 09:12:53 EDT 2007 :: Switching to runlevel 1
    Sat Jul 28 09:13:24 EDT 2007 :: Upgrade Preparation started
    Sat Jul 28 09:13:24 EDT 2007 :: Inspecting current system
    Sat Jul 28 09:13:24 EDT 2007  ASG root disk is /dev/hdc
    Sat Jul 28 09:13:27 EDT 2007  Found 'default' kernel
    Sat Jul 28 09:13:27 EDT 2007  Making found data persistent
    Sat Jul 28 09:13:27 EDT 2007 :: Creating Provisional Upgrade Partition
    Sat Jul 28 09:13:27 EDT 2007  Turning swap off
    Sat Jul 28 09:13:27 EDT 2007  Creating filesystem on /dev/hdc2
    /dev/hdc2 is mounted; will not make a filesystem here!
    Sat Jul 28 09:13:27 EDT 2007 mke2fs failed
    Sat Jul 28 09:13:27 EDT 2007 :: Restoring swap partition
    Sat Jul 28 09:13:27 EDT 2007  Done




    Lou
  • Thanks, it's the exact same issue as I have:
    "/dev/hdc2 is mounted, will not make a filesystem here!"

    The answer I got from Astaro is that the upgrade process uses the swap partition to upgrade the firewall so please check that your swap partition is empty.

    Haven't had time yet to look into it further. But swap itself is turned off during the upgrade and the swap partition /dev/hdc2 seems to have used half of available blocks.

    Will let you know what I find out.

    Arthur
  • The answer I got from Astaro is that the upgrade process uses the swap partition to upgrade the firewall so please check that your swap partition is empty.


    Since I'm using THEIR automated up2date process on THEIR hardware box, is it too much for a normal user like myself to actually expect THEM to take care of this as part of the upgrade and not pass it off to the user?? [:D] 

    Ok, so I'm a tad bit sarcastic today....
  • Looks like /var/upgrade/up_prepare does the following:

    swapoff -a
    mke2fs -m0 -q -j /dev/hdc2

    The first command fails because swapoff cannot allocate memory.
    So the second command fails because /dev/hdc2 is still in use for swap area
    (/dev/hdc2 is mounted; will not make a filesystem here!)

    Perhaps 'swapoff -a' should not be used but rather 'swapoff /dev/hdc2' to check for a possible error code and if so free up the swap with commands like '/var/mdw/scripts/snort stop' or something until 'swapoff /dev/hdc2' is succesfull. Then the mke2fs command should be succesfull and the upgrade can continue.

    But that's for another time.

    Arthur
  • Hey Lou, 

    die you contect THEM, so THEIR support can take a look at it?
    [:)]

    regards
    Gert
  • did you contact THEM, so THEIR support can take a look at it?
    [:)]


    Yep! They suggested that I manually download the SAI iso file and use the USB cdrom method - which I will when I am able to schedule the downtime for maintenance and try it again.

    Guess they don't have much faith in their automated method either, to which I say - why make it an available option if it's not rock-solid?

    Oh, well. Onto the next crisis. [8-)] 

    Lou
  • [:)]

    Yeah, I've been upgrading exclusively with the USB CD-ROM method... that way I'm absolutely sure of a good conversion (at least the best odds of getting it right, anyhow) ...  I wouldn't recommend any other way right now.

    CTO, Convergent Information Security Solutions, LLC

    https://www.convergesecurity.com

    Advice given as posted on this forum does not construe a support relationship or other relationship with Convergent Information Security Solutions, LLC or its subsidiaries.  Use the advice given at your own risk.

  • auto-upgrade from 6.311 to 7.005 completed
    thanks to tips from Contec iSC support

    procedure:
    - disable HTTP Proxy, SMTP Proxy and Intrusion Detection
    - restart ASG220
    - use the console command 'free' to check if swap area is small enough for 'swapoff -a' to work
    - start auto upgrade (step 1, step 2, step 3)
    - login to the new WebAdmin

    This starts with "Basic System Setup"?
    If you "Restore existing backup file" it'll say "Backup corrupt".
    So "Cancel Wizard". Don't bother with "Management, Backup/Restore, V6 backup import..." either because that's already done.

    You'll need to manually (re)configure HTTP Proxy, SMTP Proxy, Shell Access, Shell User passwords, Password Complexity, NTP, VPN, Date and Time, Intrusion Protection and a few other things I forgot.

    After that installed the update 7.006. No problems so far.

    At least in theory the above should work remotely. Provided you enable remote access for SSH and WebAdmin correctly.
    Anyone out there that can confirm?