Welcome, Guest. Please login or register.
Did you miss your activation email?
Thursday 14 November 2024, 04:28:53 pm

Login with username, password and session length

The Latest Endian Firewall is now available for download HERE
14255 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  General Support
| | |-+  Upgrade from 2.2 to 2.3 Failed with efw-upgrade command
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 [2] Go Down Print
Author Topic: Upgrade from 2.2 to 2.3 Failed with efw-upgrade command  (Read 101980 times)
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #15 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
Logged
jester95
Full Member
***
Offline Offline

Posts: 13


« Reply #16 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
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #17 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. 
Logged
jester95
Full Member
***
Offline Offline

Posts: 13


« Reply #18 on: Friday 30 October 2009, 06:50:21 am »

This ticket http://bugs.endian.it/view.php?id=2323 or a new one?
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #19 on: Friday 30 October 2009, 07:19:54 am »

This ticket 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? 
Logged
jester95
Full Member
***
Offline Offline

Posts: 13


« Reply #20 on: Friday 30 October 2009, 07:26:46 am »

Yes it helps.

I just misread your last.
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #21 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. 
Logged
jester95
Full Member
***
Offline Offline

Posts: 13


« Reply #22 on: Friday 30 October 2009, 07:55:43 am »

http://bugs.endian.it/view.php?id=2326
Logged
stetson
Jr. Member
*
Offline Offline

Posts: 1


« Reply #23 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 ;-)
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #24 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. 
Logged
cmateski
Full Member
***
Offline Offline

Posts: 19


« Reply #25 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. 
Logged
gjl_support
Jr. Member
*
Offline Offline

Posts: 2


« Reply #26 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?
Logged
Le_Renard_Polaire
Jr. Member
*
Offline Offline

Posts: 1


« Reply #27 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 ?
Logged
jackyy2k1
Full Member
***
Offline Offline

Posts: 10


« Reply #28 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?
Logged
gharshaw
Jr. Member
*
Offline Offline

Posts: 1


« Reply #29 on: Thursday 29 April 2010, 05:31:17 am »

Does anyone know if there has been an update to this issue?

Thanks
Logged
Pages: 1 [2] Go Up Print 
« previous next »
Jump to:  

Page created in 0.125 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com