Forum Problems Installing LAMS: Cannot get Lams to start


 
You may request notification for Cannot get Lams to start.
Search: 

1: Cannot get Lams to start
02/10/13 02:40 PM
[ Reply | Forward ]
Hi
I've looked through the other posts but can't find anything really similar to the problem I am encountering so I hope you can bear with me...
Running Centos 5.8 64 bit on a vps with 1gb ram and 1 gb swap.
Installed apache, mysql, php - all fine (eventually, I am new to this vps stuff).
Followed the guide to install lams 2.4 on centos... went okay until I realised I hadn't installed JBoss - didn't see that step in the guide unless I missed it?
Went back and installed JBoss 4.0.2 and eventually got that running okay.
Tried lams again and when it gets to the step to start lams, the server gets some way into the Jboss okay messages, then it seems to throw a load of errors...
I have to CRTL+C to escape, and lams does not appear in my browser.
Can anyone advise me please as I am really keen to get lams working - that's the reason I bought the vps...
I have managed to migrate my mature moodle from shared hosting to the vps and it is running great.
Many thanks in advance
Gavin

Posted by Gavin Rhoades

2: Re: Cannot get Lams to start
In response to 1 02/10/13 06:17 PM
[ Reply | Forward ]
Hi Gavin,

I think you need to follow this instead:

http://wiki.lamsfoundation.org/display/lamsdocs/Installing+LAMS+2.4+on+CentOS+5.8

The package that you download with LAMS already contains JBoss, so no need to download this again. Additionally, LAMS 2.4 uses jboss-5.1).

If this doesn't work out, please zip and post the logs so we can have a look.

Cheers,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: Cannot get Lams to start
In response to 2 02/11/13 01:41 AM
[ Reply | Forward ]
Hi Ernie

Thanks for the quick response. That is the guide I was following - being a noob to linux I didn't understand that installing jboss dependencies meant the same thing as installing jboss...

So now I have two versions of jboss I think - I have looked for guides on how to uninstall the 4.0.2 version I don't need but can't find anything - can you help please? Surely it can't be as simple as removing the /usr/local/jboss-4.0.2 folder and contents? I have tried yum erase jboss but that doesn't work because (I think) jboss was downloaded manually rather than installed by yum...

Thanks

Gavin

Posted by Gavin Rhoades

4: Re: Re: Re: Cannot get Lams to start
In response to 3 02/11/13 03:29 AM
[ Reply | Forward ]
Hi again Ernie

Leaving my concerns about the earlier version of Jboss aside (because I had the same problem before)...

I've gone through the guide again and everything is fine up until I try to start lams with the command:
su -l lams -c "/usr/local/jboss-5.1/bin/run.sh -5 50.97.148.3"

Can you advise which log I need to upload?

Many thanks

Gavin

Posted by Gavin Rhoades

5: Re: Re: Re: Re: Cannot get Lams to start
In response to 4 01/08/14 08:06 AM
[ Reply | Forward ]
I have the same problem
My server is a debian and the error is:

>sudo -u lams sh -c "/usr/local/jboss-5.1/bin/run.sh -b 50.97.148.3"
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/local/jboss-5.1

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

CLASSPATH: /usr/local/jboss-5.1/bin/run.jar

=========================================================================

/usr/local/jboss-5.1/bin/run.sh: 305: java: not found



but if I do: java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode)



Thanks.

Posted by mario donoso

6: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 5 01/08/14 11:47 AM
[ Reply | Forward ]
Hi Mario,

Remember that you need Java JDK 1.6 to run LAMS with.

You can download from the Oracle website.

Once you download it, set up the JAVA_HOME variable to point to the directory in which you unzipped the JDK (ie: export JAVA_HOME=/usr/local/jdk1.6.0_45).

Then run the script to start LAMS again.

Thanks,

Ernie

Posted by Ernie Ghiglione

7: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 6 01/10/14 12:42 PM
[ Reply | Forward ]
I have a new problem, I'm trying to install lams by apt
Following those instructions: http://edutechwiki.unige.ch/en/LAMS_installation_and_configuration#LAMS_2.4_on_Debian.2FUbuntu

And I have a new problem:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
lams2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/60.0 MB of archives.
After this operation, 91.7 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
lams2
Preconfiguring packages ...
Selecting previously deselected package lams2.
(Reading database ... 52036 files and directories currently installed.)
Unpacking lams2 (from .../archives/lams2_2.4.0-1_all.deb) ...
Setting up lams2 (2.4.0-1) ...
sed: can't read mysql-ds.xml: No such file or directory
dpkg: error processing lams2 (--configure):
subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
lams2
E: Sub-process /usr/bin/dpkg returned an error code (1)


then I use: # apt-get remove lams-jboss4 as this post:
http://lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message_id=1681552

then I put: # apt-get install lams2

and I got this message :

Setting up lams-jboss4 (5.1-1) ...
Setting up lams2 (2.4.0-1) ...
dpkg: error processing lams2 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
lams2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Posted by mario donoso

8: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 7 01/10/14 02:44 PM
[ Reply | Forward ]
Hi Mario,

What Ubuntu/Debian version are you running?

Thanks,

Ernie

Posted by Ernie Ghiglione

9: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 8 01/11/14 05:13 AM
[ Reply | Forward ]
I‘m using Debian 6.

Posted by mario donoso

10: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 8 01/13/14 06:22 AM
[ Reply | Forward ]
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.8 (squeeze)
Release: 6.0.8
Codename: squeeze

Posted by mario donoso

11: Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 10 01/13/14 09:15 AM
[ Reply | Forward ]
Hi Mario,

I tested yesterday with 6.0.7 and it worked fine.

Do you have MySQL installed already in this box? If so, was it installed via apt-get?

Thanks

Ernie

Posted by Ernie Ghiglione

12: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 11 01/13/14 10:20 AM
[ Reply | Forward ]
Hi Ernie, yes, I already have MySQL installed via apt-get.
I uninstall mysql and start over, and I have the same problem.

Configurando lams2 (2.4.0-1) ...
dpkg: error al procesar lams2 (--configure):
el subproceso instalado el script post-installation devolvió el código de salida de error 1
configured to not write apport reports
Se encontraron errores al procesar:
lams2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Posted by mario donoso

13: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 11 01/13/14 02:20 PM
[ Reply | Forward ]
I got this, dna I don't know what else to do:

Install these packages without verification [y/N]? Y
Preconfiguring packages ...
Selecting previously deselected package lams-jboss4.
(Reading database ... 51681 files and directories currently installed.)
Unpacking lams-jboss4 (from .../lams-jboss4_5.1-1_all.deb) ...
Selecting previously deselected package lams2.
Unpacking lams2 (from .../archives/lams2_2.4.0-1_all.deb) ...
Setting up lams-jboss4 (5.1-1) ...
Setting up lams2 (2.4.0-1) ...
dpkg: error processing lams2 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
lams2
E: Sub-process /usr/bin/dpkg returned an error code (1)

Posted by mario donoso

14: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Cannot get Lams to start
In response to 11 01/15/14 09:31 AM
[ Reply | Forward ]
Fortunately I have another server and I start a new Installation, and everything is ok, I'm gonna keep looking what's the problem with the other installation.

Posted by mario donoso

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