Forum LAMS for Tech-Heads - General Forum: Re: LAMS 2.02 update script problems


 
Search: 

2: Re: LAMS 2.02 update script problems
In response to 1 05/08/07 05:48 PM
[ Reply | Forward ]
I agree that it sounds like it is failing on the "real" part of the update.

A few ideas:
* To check if the backup has worked, go to the directory where the backup was made. You should have two subdirectories "jboss-4.0.2" and "uploaded-files". There should also be a .sql file there that is the database dump. Do you have these directories/files?

* Check the permissions on the files in the ant/bin directory. All of these files must be runnable.

* You are doing "sudo update-lams.sh" or running as root when you call update-lams.sh, or running as some special user that you have set up for LAMS? ie don't run it just as a normal user or it won't be able to overwrite files in the jboss directory.

* When you start your putty window, you will normally be in your home directory. While you are there type "script lamsupdate.txt". This will start a file lamsupdate.txt in that directory that contains the output of the terminal window. Then (hopefully) when putty closes its window, you can log into the server again and have a look at the contents of the lamsupdate.txt file.

If the problem is one too many "exit"s happening, then the putty window may not close. Normally to end the script file you type "exit" on the command line and you then get "Script done, output file is lamsupdate.txt". So if there is a stray exit somewhere, then with any luck the exit will end the script but not the putty window.

When you look at the lamsupdate.txt file, you will see funny characters like ^G and ^M, particularly if you hit backspace while typing. This is quite normal.

* In the putty configuration, go to Session Logging and turn on "all session output". Then putty should create its own log as well.

* Make sure you look for the log/install.log in the installation directory not the jboss directory.

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum