EFW Support

Support => General Support => Topic started by: cmateski on Wednesday 28 October 2009, 02:11:48 pm



Title: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Wednesday 28 October 2009, 02:11:48 pm
I have the base installation of endian version 2.2rc4. 
I did a full backup before starting the upgrade. 
I registered my account on the endian site.

I followed the instructions in the email:
Welcome to the Endian Community

Your email is validated and your account is active

Now follow these 5 steps to keep your Endian Firewall Community up to date:

   1. Enable SSH access on your firewall
   2. Open your favorite SSH terminal and connect to the firewall (On Windows you may use putty)
   3. If your Endian Firewall Community is older than version 2.2 please run

      root@efw-2:~ # rpm -ivh http://updates.endian.org/upgrade.rpm
   4. Run the efw-upgrade script

      root@efw-2:~ # efw-upgrade
      Please choose the appropriate channel for your environment and hit [ENTER]:
      1) Production (stable releases)
      2) Development (bleeding edge)
      1
      Please enter your username and hit [ENTER]:


Output from command to upgrade to version 2.2:
root@efw:~ # rpm -ivh http://updates.endian.org/upgrade.rpm
Retrieving http://updates.endian.org/upgrade.rpm
Preparing...                ########################################### [100%]
        package efw-upgrade-2.2.1-0.endian0 is already installed



Output from teh efw-upgrade command:
root@efw:/usr/local/bin # efw-upgrade
Loading cache...
Up cache...                         ######################################################## [100%]

Fetching information for 'efw-community'...
-> http://cmateski@yahoo.com:*@updates.endian.org/stable/repodata/repomd.xml
repomd.xml                                ######################################################## [ 33%]

Up cache...                         ######################################################## [100%]

Channels have no new packages.
Loading cache...
Up cache...                         ######################################################## [100%]

Computing transaction...
No interesting upgrades available.


When I previously installed efw I did a fresh installation from CDROM with version 2.2rc4. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: maximus007 on Wednesday 28 October 2009, 04:18:23 pm
I had the same error...


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jonasmartin on Wednesday 28 October 2009, 06:12:53 pm
same error too


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: Indianwf on Wednesday 28 October 2009, 07:46:26 pm
same error too !!


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: dr.fix on Wednesday 28 October 2009, 09:30:51 pm
The same here, no upgrade found


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: dtruffo on Wednesday 28 October 2009, 09:34:47 pm
No way also here.... I hope we do not need to reinstall from scratch !!


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: dr.fix on Wednesday 28 October 2009, 09:37:36 pm
No way also here.... I hope we do not need to reinstall from scratch !!


Probably we'll need to...
but nobody answers, no documentation about upgrade, what efw-upgrade does? nothing... I've never seen a single upgrade from there..


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: dtruffo on Wednesday 28 October 2009, 09:42:23 pm
if reinstallation permits restore of a backup should not be a problem... different if we need to recreate all rules, VPNs, routing tables and so on !!

Let wait if somebody find a way..
I'll try to install from scratch on an offline pc and restore 2.2 configuration !!


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: icebrian on Wednesday 28 October 2009, 09:44:43 pm
Had same problema, searched german forums and found:

http://translate.google.com/translate?prev=hp&hl=en&js=y&u=http%3A%2F%2Fwww.efw-forum.de&sl=de&tl=en&history_state0=

Aparently there is no update to v2.3, also not know when or if one will be available.


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: rhaarhoff on Wednesday 28 October 2009, 09:50:36 pm
Same issue, looks like the only way to do the upgrade is to:

   1.  Backup the existing configuration data using the backup tool
   2. Install the new release over the existing installation (this will completely wipe the previous installation)
   3. Restore the configuration from backup

Chers,


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Thursday 29 October 2009, 01:06:23 am
No way also here.... I hope we do not need to reinstall from scratch !!


Probably we'll need to...
but nobody answers, no doentation about upgrade, what efw-upgrade does? nothing... I've never seen a single upgrade from there..


The efw-upgrade script is located in /usr/local/bin.  I did a 'more' on the file to see which commands it actually uses.  I didnt get very far as it was late. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: bl117 on Thursday 29 October 2009, 06:45:14 am
Any news on if backups can be restored?  i'm a little disapointed that the upgrade script was useless.


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Thursday 29 October 2009, 07:25:25 am
Any news on if backups can be restored?  i'm a little disapointed that the upgrade script was useless.


Excellent question.  I would love to hear the answer too.  The instructions have you do a backup before executing efw-upgrade.  I would hope that v2.3 could use that backup if needed.  I'm holding out a few more days to see if they sort this upgrade issue out. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: nopyobe on Thursday 29 October 2009, 09:37:11 am
I tried to restore a 2.2 backup (Configuration data only) to a 2.3 brand spankin' new install and it broke the web interface.  From the server console, it looked like it worked, but when I went to the firewall through the web interface, I received a "500 Internal Server Error":

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Doesnt look like we have a way to upgrade yet.


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Thursday 29 October 2009, 12:23:23 pm
I tried to restore a 2.2 backup (Configuration data only) to a 2.3 brand spankin' new install and it broke the web interface.  From the server console, it looked like it worked, but when I went to the firewall through the web interface, I received a "500 Internal Server Error":

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Doesnt look like we have a way to upgrade yet.


Ouch!  What a waste of time.  I cant say I blame you for trying though.  It might be worth your time to  it away again versus trying to straighten it out.  You never know if you will get it all.  Good luck!


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Friday 30 October 2009, 03:13:03 am
I opened a bug in the Endian Issue Tracker this morning with reference to this forum thread. 

Link to Mantis bug report:
http://bugs.endian.it/view.php?id=2323


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jester95 on Friday 30 October 2009, 05:42:06 am
I tried to restore a 2.2 backup (Configuration data only) to a 2.3 brand spankin' new install and it broke the web interface.  From the server console, it looked like it worked, but when I went to the firewall through the web interface, I received a "500 Internal Server Error":

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I did the same thing with a new EFW v2.2 with only 1 port forward and put it on a new EFW 2.3 and recieved the same error message.

I don't mind building a new firewall from scratch but I wanted to see how everything converted over since there is no manual


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Friday 30 October 2009, 06:43:59 am
I tried to restore a 2.2 backup (Configuration data only) to a 2.3 brand spankin' new install and it broke the web interface.  From the server console, it looked like it worked, but when I went to the firewall through the web interface, I received a "500 Internal Server Error":

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


I did the same thing with a new EFW v2.2 with only 1 port forward and put it on a new EFW 2.3 and recieved the same error message.

I don't mind building a new firewall from scratch but I wanted to see how everything converted over since there is no manual


Open a ticket against this release.  See how they address it.  It may help with future distributions. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jester95 on Friday 30 October 2009, 06:50:21 am
This ticket http://bugs.endian.it/view.php?id=2323 (http://bugs.endian.it/view.php?id=2323) or a new one?


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Friday 30 October 2009, 07:19:54 am
This ticket http://bugs.endian.it/view.php?id=2323 (http://bugs.endian.it/view.php?id=2323) or a new one?

Go to  http://bugs.endian.it  and create an account.  In this case your issue is a backup / restore issue so a new ticket needs to be opened.  My suggestion is to search the forums to see if an existing trouble ticket is open to address the issue.  If not, then create the ticket.  If it exists, you may want to add notes to the existing ticket to provide additional data for solving the problem.  Does this help? 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jester95 on Friday 30 October 2009, 07:26:46 am
Yes it helps.

I just misread your last.


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Friday 30 October 2009, 07:33:49 am
Yes it helps.

I just misread your last.


No worries!  I'm hoping more people start interacting on this forum and report problems through the ticketing system.  EFW has matured quite nicely the last few years.  I feel the product is really taking off  .... and with our help the EFW development team can work out the issues. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jester95 on Friday 30 October 2009, 07:55:43 am
http://bugs.endian.it/view.php?id=2326 (http://bugs.endian.it/view.php?id=2326)


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: stetson on Sunday 01 November 2009, 11:50:44 am
I dissected the script and was able to browse the download site (updates.endian.org) manually with my browser.  The files needed for the upgrade are not there.  Look at the URL carefully in the script and you'll see how to authenticate:

ID = <your "username" when you registered>
PW = community

Like everyone else, I'm just waiting it out too ;-)


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Sunday 01 November 2009, 12:00:53 pm
I dissected the script and was able to browse the download site (updates.endian.org) manually with my browser.  The files needed for the upgrade are not there.  Look at the URL carefully in the script and you'll see how to authenticate:

ID = <your "username" when you registered>
PW = community

Like everyone else, I'm just waiting it out too ;-)


Thank you for investigating.  I got busy and didnt get a chance to dig back in. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: cmateski on Tuesday 03 November 2009, 07:53:48 am
I dissected the script and was able to browse the download site (updates.endian.org) manually with my browser.  The files needed for the upgrade are not there.  Look at the URL carefully in the script and you'll see how to authenticate:

ID = <your "username" when you registered>
PW = community

Like everyone else, I'm just waiting it out too ;-)


I followed your advice and browsed to this URL:

http://$USERNAME:community@updates.endian.org/$CHANNEL/

where $USERNAME = my registered email address
           $CHANNEL = stable

There are 2 directories listed there:  pool and repodata

The "pool" directory contains a lot of files .. guessing about 50.  They are all .rpm

The "repodata" directory contains these files: 
   filelists.xml.gz   
   other.xml.gz   
   primary.xml.gz   
   repomd.xml   

As you navigate through the directory structure to the filelists.xml file you will see that it is stored in subdirectory named "2.2" which to me indicates the updates are for version 2.2 not 2.3. 
http://updates.endian.org/stable/repodata/

This is what I have so far.  I'll keep digging and let you know what I find out. 


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: gjl_support on Sunday 14 February 2010, 04:13:11 am
Any luck with this?  I'm getting the same error except I dont get prompted to push 1 or 2 and I dont get prompted for username.  Thoughts?


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: Le_Renard_Polaire on Thursday 18 February 2010, 07:48:08 pm
Hello.

I looked for the script and edited it.

Code:
#!/bin/bash

function upgrade {
    smart update && smart upgrade -y
}

function setup-channels {
    echo "Please choose the appropriate channel for your environment and hit [ENTER]:"
    echo "1) Production (stable releases)"
    echo "2) Development (bleeding edge)"
    read CHANNEL_CHOICE

    case $CHANNEL_CHOICE in
        "1")
        CHANNEL="stable";;
        "2")
        CHANNEL="devel";;
        *)
        setup-channels;;
    esac

    echo "Please enter your username and hit [ENTER]:"
    read USERNAME

    if [ $USERNAME ]; then
        smart channel --remove-all -y
        smart channel --add efw-community baseurl="h*tp://$USERNAME:community@updates.endian.org/$CHANNEL/" type=rpm-md -y
    else
        echo "ERROR: username is required"
    fi
}


if [ "$1" == "-s" ]; then
    setup-channels
elif [ "$1" == "-h" ]; then
    echo ${0##/*}" Usage:"
    echo "/${0##/}"
    [b]echo "Using -s force setup the channels and upgrade."[/b]
    echo "Using -h show this help."
    exit
fi

if [ `smart channel --show | grep efw-community` ]; then
    upgrade
    exit 0
else
    setup-channels
    upgrade
fi

You can have the script forced to update using the -s switch, but it did not work for me...

Code:
# efw-upgrade -s
Please choose the appropriate channel for your environment and hit [ENTER]:
1) Production (stable releases)
2) Development (bleeding edge)
[i]1[/i]
Please enter your username and hit [ENTER]:
[i]myhiddenemail@myisp.com[/i]


Loading cache...
Updating cache...               ######################################## [100%]

Fetching information for 'efw-community'...
-> h*tp://myhiddenemail@myisp.com:*@updates.endian.org/stable/.../repomd.xml
repomd.xml                      ######################################## [ 33%]
-> h*tp://myhiddenemail@myisp.com:*@updates.endian.org/.../primary.xml.gz
-> h*tp://myhiddenemail@myisp.com:*@updates.endian.org/.../filelists.xml.gz
filelists.xml.gz                ######################################## [ 66%]
primary.xml.gz                  ######################################## [100%]

Updating cache...               ######################################## [100%]

[b]Channels have no new packages.[/b]
Saving cache...

Loading cache...
Updating cache...               ######################################## [100%]

Computing transaction...
[b]No interesting upgrades available.[/b]

Anyone got the upgrade work, or did manage to restore a 2.2 backup on a 2.3 fresh install ?


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: jackyy2k1 on Thursday 25 March 2010, 02:38:11 pm
I got the same error after restored, what is the problem actually, any solution provide from Endian?


Title: Re: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
Post by: gharshaw on Thursday 29 April 2010, 05:31:17 am
Does anyone know if there has been an update to this issue?

Thanks