manual upgrade

The forum for help and support with FreeNATS as well as any useful hints and tips
Post Reply
wolfgang
Posts: 21
Joined: Wed Jun 11, 2008 9:09 pm
Location: Montreal, Canada

manual upgrade

Post by wolfgang » Sun Oct 04, 2009 2:41 pm

Trying to make a complete install of a new appliance, to make sure there is no damage in appliance causing the graphs to disappear. On the company network I am on, I need a proxy setting (not transparent) , so the automatic upgrade download for appliance does not work. Then I tried it on mobile network, this one is slow, the automatic upgrade does not work, assume because the download times out from the download script. Now I downloaded manual the upgrade file, did manual upgrade (allready twice from scratch) but freenats does not work after upgrade. There is no error message, all looks ok. rPath web interface works after upgrade, but freenats web interface does not work. I read in one of the forum posts that sometimes the php file in bin can be missing, but when I check, the file is there. Any suggestions what else I can check?

Thanks,Wolfgang

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: manual upgrade

Post by dave » Sun Oct 04, 2009 3:24 pm

Hi Wolfgang,

First off, sorry if I misunderstood, but thought we had got to the bottom of the "missing" graphs - the data was -1 throughout because the test failed (whether it should or not being a different matter), recorded -1 as a result which wasn't a failure as you were using custom evaluators so the entire graph would be "passed" results of -1 which is unplottable?

Anyway... with regard to your problem:

Contrary to my very brief documentation on manually using wget you can use a proxy server if required as follows (from the shell):
export http_proxy="http://your.proxy.server:port"
wget --proxy=on --proxy-username=username --proxy-password=password URL

The URL you would most likely want is http://www.purplepixie.org/freenats/dow ... tCurrent=1 which will automatically redirect the current stable release.

There is also a --timeout=seconds option which you can use the raise the network timeout if required.

So... to use a proxy of proxy.server.com on port 8080 with the proxy username proxuser and proxy password of proxpass (you don't have to include a proxy username/password if it is not required) and a timeout of 480 seconds issue the following commands from the shell:

export http_proxy="http://proxy.server.com:8080"
wget --proxy=on --proxy-user=proxuser --proxy-password=proxpass --timeout=480 http://www.purplepixie.org/freenats/dow ... tCurrent=1

Once downloaded you will need to unzip and untar then change into the new folder and run the vm-upgrade.sh script something like:

gzip -d freenats-1.06.4b.tar.gz
tar -xvf freenats-1.06.4b.tar
cd freenats-1.06.4b
./vm-upgrade.sh

Do ensure you select upgrade rather than install (the chance to wipe all data comes with the database update rather than the file update - choosing a fresh database).

The update which has problems with php sometimes is an rPath update, not a FreeNATS update so that shouldn't be the cause of your issue.

Check the following:

- you installed to the correct directories (/opt/freenats/server/base and /opt/freenats/server/bin and /srv/www/html/ for base, bin and web respectively)
- the files are shown ok in /srv/www/html (ls -l /srv/www/html)
- the file include.php in /src/www/html contains the BaseDir as being set to "/opt/freenats/server/base/"

If nothing is obvious then try and access the interface via a brower then, in the shell:

cd to /var/log/httpd
tail error_log
tail access_log

See if there is any obvious PHP error in there.

Can't think of anything else particularly to check. If nothing crops up let me know and I'll fire you over a script to do some automated environment testing.

Cheers,

Dave.

Post Reply