Forum Problems Installing LAMS: Re: Problem installing on Ubuntu 9.10


 
Search: 

5: Re: Problem installing on Ubuntu 9.10
In response to 1 11/24/10 08:03 AM
[ Reply | Forward ]
Hi Alex,

No, your server is perfectly fine LAMS should be ablr to run on it no problems. Just a few things to check though:

Are you using Sun's (now Oracle) JDK 6? The best way to check is type java -version from a shell. If you aren't using, check out this page on how to enable the partner repository so you can install it with just an apt-get http://is.gd/hHvnI

I'm pretty certain that the ServerURL setting is not set up properly. Login as Sysadmin, go to the sysadmin menu, click on "Edit Configuration Settings" and change your Server URL to the IP of the server or domain you have in it. (ie: http://translations.lamscommunity.org/lams/).


2010-11-23 16:15:45,466 [main:jboss.web.deployment:war=lams-central.war,id=108437108 WebModule] ERROR org.lamsfoundation.lams.web.LamsStartupServlet - Cannot delete temporary files, do not have permission for folder: /var/lib/lams/temp

Make sure the user you are running LAMS as, has the right permission to write/read from this folder

See how this goes.


Also, the quickest and easiest way to install LAMS in Ubuntu is using the debian installer:

http://wiki.lamsfoundation.org/display/lams/Debian,+Ubuntu+Installers


Thanks,

ernie

Posted by Ernie Ghiglione

6: Re: Re: Problem installing on Ubuntu 9.10
In response to 5 11/24/10 08:22 AM
[ Reply | Forward ]
Ernie, thank you very much for your help!

I installed LAMS using Automated Download Script from your link, but i really have non-Sun Java now:

root@elearning:/var/vm# java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.2)
(6b18-1.8.2-4ubuntu1~9.10.1) OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)


is it a main problem?

Make sure the user you are running LAMS as, has the right permission to write/read from this folder

please tell me if it is a root ubuntu's user?

Thank you!!!

Posted by Alex Lifanov

7: Re: Re: Re: Problem installing on Ubuntu 9.10
In response to 6 11/24/10 08:58 AM
[ Reply | Forward ]
Hi Alex,

I haven't run LAMS with OpenJDK, but just to rule out any problems with it, I would recommend using the Oracle/Sun version instead.

See the instructions on how to install it on the link I point to you before.


If you are to run LAMS on port 80, you will need to run jboss as root. That would probably solve the issues with permissions for that folder. Just make sure that the folder has been created though.

Thanks,

Ernie

Posted by Ernie Ghiglione

8: Re: Re: Re: Re: Problem installing on Ubuntu 9.10
In response to 7 11/29/10 03:52 AM
[ Reply | Forward ]
Hi Ernie!

We have set sun java to be default VM, created /var/lib/lams/temp dir with permissions, but it's still the same problem with opening LAMS page.

Please see ubuntu process output:

moodle@elearning:~$ ps aux | grep lams
moodle 21018 0.0 0.0 7336 880 pts/0 R+ 12:35 0:00 grep --color=auto lams
lams 25959 0.3 5.3 1407616 512452 ? Sl Nov24 21:04 /usr/lib/jvm/java-6-sun/bin/java -server -Xms512m -Xmx512m -XX:MaxPermSize=512m -Dprogram.name= -Djava.endorsed.dirs=/usr/share/jboss-4.0.2/lib/endorsed -classpath /usr/share/jboss-4.0.2/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar org.jboss.Main


And addtional strings in lams.log output while opening page:

2010-11-29 12:37:36,823 [http-0.0.0.0-8180-7:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - ===>LOGIN PAGE: there is no auth obj in session or accessing login page before login succeed, auth obj created. session id: 17CD6146807423EFE6C5D92DCCFFC8FA
2010-11-29 12:37:36,823 [http-0.0.0.0-8180-7:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId
2010-11-29 12:37:36,823 [http-0.0.0.0-8180-7:] DEBUG org.lamsfoundation.lams.security.JspRedirectStrategy - Set locale information for login page:ru_RU
2010-11-29 12:37:36,823 [http-0.0.0.0-8180-7:] DEBUG org.lamsfoundation.lams.web.session.SessionManager - Failed on finding current system session with null sessionId


Will be very appreciate for any help!

Sincerely, Alex

Posted by Alex Lifanov

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