cancel
Showing results for 
Search instead for 
Did you mean: 

Issues installing Enterprise 3.3 linux

jacksoke
Champ in-the-making
Champ in-the-making
Hi,

I am getting the following error in the catalina.out file after installing alfresco-enterprise-3.3-linux-installer.bin

Error: no `server^M' JVM at `/<install_dir>/alfresco/java/jre/lib/i386/server^M/libjvm.so'.

I am just performing an out of the box installation and only installing Alfresco, tomcat and mysql.

Any suggestions on why this issue is occurring?

Thanks
10 REPLIES 10

laco
Champ in-the-making
Champ in-the-making
Hi,

I am having the same issue, did you found a solution?

boutch55555
Champ in-the-making
Champ in-the-making
It is probably the java path that isn't configured properly… what os (distrib) are you using ? what java package are you using ?

mrogers
Star Contributor
Star Contributor
And what's that control M character doing in a path?

laco
Champ in-the-making
Champ in-the-making
the control M is displayed in the log file, no idea where it came from.
the enterprise edition does not let you choose the java path, something i don't really get, but okey, and it installs its own java, so during the installation, there is no way i can set the java path to the java installed by alfresco, and setting the java_home stuff to my own installed java, does not help.
The community edition does work.
OS is linux 32bit centos 5.3
tried with java jdk 1.6 and jre 1.6

wabson
Star Contributor
Star Contributor
I ran across this problem too whilst installing on my Ubuntu Lucid system.

The ^M is a Windows line ending. Using the find command I managed to isolate this to the file java/jre/lib/i386/jvm.cfg inside the installation. This file has DOS line endings when opened in a text editor. I assume it should not.

I managed to fix the problem using the 'fromdos' command, which seems to remove the Windows line-endings. I've also used 'dos2unix' to do previously but this doesn't seem to be available on Ubuntu.

cd <your-alfresco-install-dir>
apt-get install tofrodos
fromdos java/jre/lib/i386/jvm.cfg

Once you've done this you will also need to remove the Tomcat PID file that gets left there after Tomcat crashes out the first time. Otherwise Tomcat will refuse to start again.

rm tomcat/temp/catalina.pid

Once you've done this you should be able to re-start Alfresco

alfresco.sh start

jacksoke
Champ in-the-making
Champ in-the-making
I didnt in the end get to the root of the problem, instead I installed the WAR file in a stand-alone tomcat.  If I have time, I will re-attempt and I will compare installations to see what the issue is.

jfelten
Champ in-the-making
Champ in-the-making
I just ran in to the same thing when trying to do a clean install of the Alfresco community edition 3.4a on Red Hat Enterprise Linux Server 5.3.  The installer GUI progress bar got to "100%" and shows it is installing "Alfresco Module Packages" when it threw this error dialog: 

(I am retyping this, not pasting it, so there is a chance of a typo)
Problem running post-install step.  Installation may not complete correctly
Error running /opt/alfresco-3.4.a/java/bin/java -jar /opt/alfresco-3.4.a/bin/alfresco-mmt.jar install /opt/alfresco-3.4.a/amps /opt/alfresco-3.4.a/tomcat/webapps/alfresco.war -directory -nobackup " Error no 'server
'JVM at /opt/alfresco-3.4.a/java/jre/lib/i386/server
/libjvm.so'

There is no visible control-M, but If I copy the text from the error dialog there is a carriage return just before the "/libjvm.so" so I think this may be the same problem as reported in this thread.  However, when I look in jvm.cfg I do not see any reference to libjvm.so there so it seems things have changed since 3.3.  Where is this command text now stored?

I am just evaluating Alfresco for the first time so I do not really know much about it yet.  I see the alfresco.war file in the tomcat webapps directory but it doesn't look like tomcat has ever been started (no logs).  Now I don't know what state Alfresco is in.  Should I try manually starting tomcat?  Is the install incomplete and therefore Alfresco is in an unstable state?  Re-run the installer (but won't that muck up MySQL)? 

I tried running that command fromt the error dialog as root and all I got back was this output: 
/libjvm.so'.pt/alfresco-3.4.a/java/jre/lib/i386/server

rosh777
Champ in-the-making
Champ in-the-making
Hi Jfelten,

Faced the same problem with 3.4a installation. I managed to fix it by first installing openjdk separately using yum.
yum install java-1.6.0-openjdk*
and the after installing from the binary file, got the error again. What I did was, just ran a grep for "/opt/alfresco-3.4.a/java"
grep -iRl "/opt/alfresco-3.4.a/java" /opt/alfresco-3.4.a
From this I knew that the environment for JAVA_HOME was fetching from the file "/opt/alfresco-3.4.a/tomcat/bin/setenv.sh". So I changed the current JAVA_HOME from "/opt/alfresco-3.4.a/java" to my newly installed "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0".
Ran the following command through commandline.
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/bin/java -jar /opt/alfresco-3.4.a/bin/alfresco-mmt.jar install /opt/alfresco-3.4.a/amps /opt/alfresco-3.4.a/tomcat/webapps/alfresco.war -directory -nobackup
This time the alfresco started fine..

stuow
Champ in-the-making
Champ in-the-making
I ran across this problem too whilst installing on my Ubuntu Lucid system.

The ^M is a Windows line ending. Using the find command I managed to isolate this to the file java/jre/lib/i386/jvm.cfg inside the installation. This file has DOS line endings when opened in a text editor. I assume it should not.

I managed to fix the problem using the 'fromdos' command, which seems to remove the Windows line-endings. I've also used 'dos2unix' to do previously but this doesn't seem to be available on Ubuntu.

cd <your-alfresco-install-dir>
apt-get install tofrodos
fromdos java/jre/lib/i386/jvm.cfg

Once you've done this you will also need to remove the Tomcat PID file that gets left there after Tomcat crashes out the first time. Otherwise Tomcat will refuse to start again.

rm tomcat/temp/catalina.pid

Once you've done this you should be able to re-start Alfresco

alfresco.sh start

Had this exact problem after installing enterprise 3.4a on centos - ran dos2unix on jvm.cfg as described by wabson above and now starts fine.