Forum Problems Installing LAMS: need help on LAMS


 
You may request notification for need help on LAMS .
Search: 

1: need help on LAMS
10/16/07 10:53 AM
[ Reply | Forward ]
after trying to install LAMS remotely on SOlaris Server i finally got this

LAMS requires about 117MB of space, continue with installation? (y)es, (n)o: y

Do you wish to install LAMS as a Java Service Wrapper? (y)es, (n)o, (q)uit: n

Using LAMS database with the following parameters...
Database name: lams
Database user: lams
Database password: lamsdemo

Creating LAMS database.
Buildfile: ant-scripts/configure-database.xml
Database Created.

Filling database with LAMS tables

Buildfile: ant-scripts/filter-config.xml
Buildfile: ant-scripts/configure-database.xml
./install-lams.sh: print: not found

Database Created.

Copying lams.ear directory to /home/lams/jboss-4.0.2/server/default/deploy.
cp: illegal option -- v
Usage: cp [-f] [-i] [-p] [-@] f1 f2
cp [-f] [-i] [-p] [-@] f1 ... fn d1
cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [-@] d1 ... dn-1 dn

Done.

Configuring JBoss with your settings.
Buildfile: ant-scripts/configure-deploy.xml

Configuring the java Wrapper
Copying lams.properties to /etc.
mkdir: "/etc/lams2": Permission denied
cp: cannot create /etc/lams2/: Not a directory


LAMS 2.0.3 Configuration completed!
Please view the README for instructions on how to run LAMS.

do i have a problem with this? though i never installed LAMS with Java Wrapper ?

Configuring the java Wrapper
Copying lams.properties to /etc.
mkdir: "/etc/lams2": Permission denied
cp: cannot create /etc/lams2/: Not a directory


i tried to RUN LAMS using

jboss directory> ./run-lams.sh

and have this

-bash-3.00$ ./run-lams.sh

LAMS will take a few minutes to startup...

Check server/defalt/log/boot.log and server/defalt/log/server.log to see if LAMS has started correctly. The server.log will contain a line similar to 'JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 1m:6s:987ms' when LAMS has finished loading.

-bash-3.00$ Sending output to nohup.out


so ive cheked the server.log and boot.log

on my server.log i have this at the last part


12:52:56,873 INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 20s:106ms


so i tried to browse lams on my browser using http://111.xx.xxx.xxx:8080/lams

but unfortunately the page only says unable to established a connection from the server.

am i missing something ?

Please guide me on this Thank you in advance.

Jeff

Posted by Jeffrey Jarin

2: Re: need help on LAMS
In response to 1 10/16/07 07:20 PM
[ Reply | Forward ]
Hello Jeff,

This seems to be a problem we overlooked with Solaris unix commands, they do not allow the 'verbose' option (-v) for copying files.

We will look into fixing this, but for now I would suggest removing the -v option from the copy command in your script to see if that works.

1) open the file install-lams.sh (in the root directory of the install package) in a text editor

2) Find the line that says:
cp -rv assembly/lams.ear $JBOSS_DIR/server/default/deploy

3) Change it to:
cp -r assembly/lams.ear $JBOSS_DIR/server/default/deploy

4) Run the installer again
sudo ./install-lams.sh

Also, did you run your installer using sudo or with root permissions? It is required because the installer creates
a directory called lams2 in the protected /etc directory to store version and configuration files. This seems to have also failed for you:
>mkdir: "/etc/lams2": Permission denied
>cp: cannot create /etc/lams2/: Not a directory

You should make sure that either the current user has root permission or you use the sudo command to run the installer.

If you need more information about getting and using sudo for solaris check here: http://www.kempston.net/solaris/sudo.html

I hope this helps

Luke

Posted by Luke Foxton

3: Re: need help on LAMS
In response to 1 10/16/07 07:36 PM
[ Reply | Forward ]
anyone please help me on this?

Posted by Jeffrey Jarin

4: Re: need help on LAMS
In response to 1 10/17/07 10:38 PM
[ Reply | Forward ]
thanks Luke for the reply sorry it took me awhile to update my problem on this, i cant install sudo on solaris i tried to run the ./configure but the make command is not working even the make install so i tried to make sa resolution on "/etc/lasm2" problem.

right now i did create a folder /etc/lams which owned by my "testuser" and it went well though here is the first and second result after running the install script

ive also changed my install script to

# Copying the main lams files
printf "Copying lams.ear directory to $JBOSS_DIR/server/default/deploy.\n"
cp -r assembly/lams.ear $JBOSS_DIR/server/default/deploy


here are the results:

*********************************************************************************

FIRST RUN

*********************************************************************************



-bash-3.00$ ./install-lams.sh
JDK_DIR is valid
MySql host is compatible with LAMS.
JBoss Directory Found

--------------------------------------------------------------------------------

WELCOME to the LAMS 2.0.3 unix Installer!

Please ensure you have read and accepted the license agreement before continuing

Make sure you have correctly configured the lams.properties file to your
preferred settings.

You should read the installation guide before continuing.

JAVA_HOME = /usr/jdk/jdk1.5.0_06

--------------------------------------------------------------------------------

LAMS requires about 117MB of space, continue with installation? (y)es, (n)o: y

Do you wish to install LAMS as a Java Service Wrapper? (y)es, (n)o, (q)uit: y

The installer could not detect a suitable wrapper, please select one from below.
(1) wrapper-linux-x86-32-3.2.3
(2) wrapper-linux-x86-64-3.2.3
(3) wrapper-linux-ppc-64-3.2.3
(n) No wrapper, continue with install
(q) quit
> 2

Using LAMS database with the following parameters...
Database name: lams
Database user: lams
Database password: lamsdemo

Creating LAMS database.
Buildfile: ant-scripts/configure-database.xml
Database Created.

Filling database with LAMS tables

Buildfile: ant-scripts/filter-config.xml
Buildfile: ant-scripts/configure-database.xml
./install-lams.sh: print: not found

Database Created.

Copying lams.ear directory to /home/lams/jboss-4.0.2/server/default/deploy.
cp: /home/lams/jboss-4.0.2/server/default/deploy/lams.ear: Permission denied

Done.

Configuring JBoss with your settings.
Buildfile: ant-scripts/configure-deploy.xml
Install Failed. Problem while copying the jboss-4.0.2 configuration files, check

log/configure-deploy.log for details.
-bash-3.00$


*********************************************************************************

SECOND RUN after changing the permision on JBOSS to testuser

*********************************************************************************



-bash-3.00# JAVA_HOME=/usr/jdk/jdk1.5.0_06
-bash-3.00# export JAVA_HOME
-bash-3.00# ./install-lams.sh
JDK_DIR is valid
MySql host is compatible with LAMS.
JBoss Directory Found

--------------------------------------------------------------------------------

WELCOME to the LAMS 2.0.3 unix Installer!

Please ensure you have read and accepted the license agreement before continuing

Make sure you have correctly configured the lams.properties file to your
preferred settings.

You should read the installation guide before continuing.

JAVA_HOME = /usr/jdk/jdk1.5.0_06

--------------------------------------------------------------------------------

LAMS requires about 117MB of space, continue with installation? (y)es, (n)o: y

Do you wish to install LAMS as a Java Service Wrapper? (y)es, (n)o, (q)uit: y

The installer could not detect a suitable wrapper, please select one from below.
(1) wrapper-linux-x86-32-3.2.3
(2) wrapper-linux-x86-64-3.2.3
(3) wrapper-linux-ppc-64-3.2.3
(n) No wrapper, continue with install
(q) quit
> 2

Using LAMS database with the following parameters...
Database name: lams
Database user: lams
Database password: lamsdemo

Creating LAMS database.
Buildfile: ant-scripts/configure-database.xml
Database Created.

Filling database with LAMS tables

Buildfile: ant-scripts/filter-config.xml
Buildfile: ant-scripts/configure-database.xml
./install-lams.sh: print: not found

Database Created.

Copying lams.ear directory to /home/lams/jboss-4.0.2/server/default/deploy.

Done.

Configuring JBoss with your settings.
Buildfile: ant-scripts/configure-deploy.xml

Configuring the java Wrapper


Installing and configuring Java Service Wrapper: wrapper-linux-x86-64-3.2.3
Buildfile: ant-scripts/configure-deploy.xml
Done.

Copying lams.properties to /etc.


LAMS 2.0.3 Configuration completed!
Please view the README for instructions on how to run LAMS.


***********************************


after having this results i thought im finished with installing LAMS but when i run ./run-lams.sh as testuser ans root user i cant access lams to my browser using

http://myipaddress:8080/lams

what seems to be the problem here?

thanks in advance!!!

Jeff

Posted by Jeffrey Jarin

5: Re: Re: need help on LAMS
In response to 4 10/17/07 11:08 PM
[ Reply | Forward ]
Hi Jeff,

Could you please send me a zip of the jboss-4.0.2/server/default/logs directory? that might shed light on the problem here.

Other than that i would suggest installing without the wrapper, and using the ./run.sh command in the jboss bin dir.

Luke

Posted by Luke Foxton

6: Re: need help on LAMS
In response to 1 10/18/07 12:13 AM
[ Reply | Forward ]
Thanks Luke Attached here is my log files, meanwhile ill try what youve suggested to run the script again without the wrapper

Posted by Jeffrey Jarin

7: Re: need help on LAMS
In response to 1 10/18/07 12:15 AM
[ Reply | Forward ]
forgot the file

Posted by Jeffrey Jarin

Attachments:
8: Re: Re: need help on LAMS
In response to 7 10/18/07 12:42 AM
[ Reply | Forward ]
Jeff,

From looking at your logs, it seems an instance of jboss was already running when you tried to run it again. Ie, even though LAMS wasnt working, the jboss server still started up.

It pays to check the server.log and the boot.log when starting jboss, if an error comes up here, it is likely that the LAMS initiation did not work.

Make sure jboss is not running before you attempt to start LAMS again. You can do this by running the following command in the jboss bin directory
./shutdown.sh

Then check that it has shutdown properly. Im not 100% sure this will work in Solaris, but In unix you can do this by typing this command.
ps -ef | grep java

This will show you all the java process currently running and their corresponding process id. If there is one or more java -server instances running you must kill them by typing
kill -9 [pid] (for UNIX)

I hope this helps

Luke

Posted by Luke Foxton

9: Re: Re: need help on LAMS
In response to 7 10/18/07 12:44 AM
[ Reply | Forward ]
Ah, my apologies,

the correct command to stop jboss is:
./shutdown -S

Posted by Luke Foxton

10: Re: Re: Re: need help on LAMS
In response to 9 10/18/07 01:26 AM
[ Reply | Forward ]
I think it is:

./shutdown.sh -S

:-)

Posted by Ernie Ghiglione

11: Re: need help on LAMS
In response to 1 10/18/07 05:08 AM
[ Reply | Forward ]
thanks luke and Ernie, Ive tried killing all the java instance and tried to run the lams again by going to jboss bin directory and execute ./run-lams.sh unfortunately I still cant access lams.

I;ll to reinstall lams without the wrapper today and will update you on its result.

Again thank you. I really appreciate your help.

Jeff

Posted by Jeffrey Jarin

Reply to first post on this page
Back to Problems Installing LAMS