cancel
Showing results for 
Search instead for 
Did you mean: 

Fresh install - Alfresco won't start

moodleman2
Champ in-the-making
Champ in-the-making
hi all, I am a newbie into these forums and Alfresco and have a built in hatred of all things tomcat/java based. So I hope you wont hold any of those things against me.

Just installed the X11 package onto a SUSE box with no reported errors but cannt seem to get Alfresco to start.

Here is what is appearing in my terminal. (my typed in lines in bold)

LINUXTEST:/opt/Alfresco # /opt/Alfresco/alfresco.sh start
Using CATALINA_BASE:   /opt/Alfresco/tomcat
Using CATALINA_HOME:   /opt/Alfresco/tomcat
Using CATALINA_TMPDIR: /opt/Alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java/jre

LINUXTEST:/opt/Alfresco # /opt/Alfresco/alfresco.sh stop
Using CATALINA_BASE:   /opt/Alfresco/tomcat
Using CATALINA_HOME:   /opt/Alfresco/tomcat
Using CATALINA_TMPDIR: /opt/Alfresco/tomcat/temp
Using JRE_HOME:       /usr/lib/jvm/java/jre
The JVM option is invalid: -XX:MaxPermSize=128m
Could not create the Java virtual machine.

It looks like no errors on startup, but I can definitly tell you it's not running. And then I get this error on stop. Where would i look to find the JVM option to remove it. That sounded like a logical first step.

Has anyone else had this issue and can maybe point me in the right direction?

Thanks

Julian (aka Moodleman)
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
You might want to try it with a different Java version. Try downloading the Sun JDK from http://java.sun.com/javase/6/webnotes/install/index.html.

Set the correct JAVA_HOME and include $JAVA_HOME/bin in the PATH and try starting it again.

moodleman2
Champ in-the-making
Champ in-the-making
I added the following:

export JAVA_HOME=/usr/java/jre1.6.0_07/bin/java
export PATH=/usr/java/jre1.6.0_07/bin/java/bin

Which are the correct paths. Now on Alfreso start I get the following error.

LINUXTEST:~ # /opt/Alfresco/alfresco.sh start
/opt/Alfresco/tomcat/bin/startup.sh: line 11: uname: command not found
/opt/Alfresco/tomcat/bin/startup.sh: line 30: dirname: command not found
Cannot find /catalina.sh
This file is needed to run this program

I am still doing something wrong Smiley Sad

zaizi
Champ in-the-making
Champ in-the-making
You need to cd in /opt/Alfresco first.

# cd /opt/Alfresco
# ./alfresco.sh start
# tail -f alfresco.log

Alternatively just edit alfresco.sh and set the absolute path for ALF_HOME.