cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 1.4 + Ubuntu Installation Error

melkor_kp
Champ in-the-making
Champ in-the-making
I tried to install Alfresco 1.4.
I installed the jdk 1.5 and defined the system path to java and
the JAVA_HOME varible.
I installed alfresco using ./AlfrescoCommunity-1.4-Linux-x86-Install 
and when I start the alfresco service ./alfresco.sh start the following
message appeared and I do not know the reason.

export: 11: -Xmx512m: bad variable name
8 REPLIES 8

melkor_kp
Champ in-the-making
Champ in-the-making
Using the following /usr/local/alfresco/alfresco.sh file the problem is solved.

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
ALF_HOME=/usr/local/alfresco
cd "$ALF_HOME"
APPSERVER="$ALF_HOME"/tomcat
export JAVA_HOME=/usr/lib/j2sdk1.5-sun/
export JAVA_OPTS="-Xms128m -Xmx512m -server"
export JAVA_OPTS="$JAVA_OPTS -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBod
y -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndex
es -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDele
tions"

if [ "$1" = "start" ]; then
  "$APPSERVER"/bin/startup.sh
  if [ -r "$ALF_HOME"/start_oo.sh ]; then
    sh "$ALF_HOME"/start_oo.sh
  fi
elif [ "$1" = "stop" ]; then
  "$APPSERVER"/bin/shutdown.sh
  if [ -r "$ALF_HOME"/start_oo.sh ]; then
    killall soffice.bin
  fi
fi

melkor_kp
Champ in-the-making
Champ in-the-making
After solving this error I received an image magick error. This program failed
to use the convert command.

I solved it installing image magick
apt-get install imagemagick

After that I received an SocketOpenOfficeConection received
which in the alfresco forums was solved using

ulimit 4096

Next  I typed the following program
cp -r /usr/local/alfresco/tomcat/webapps/alfesco /usr/local/alfresco/tomcat/webapps/ROOT/


Then I started with:
 /usr/local/alfresco.sh start

I removed the copied directory with:
 rm -r /usr/local/alfresco/tomcat/webapps/ROOT/

When I started alfresco again it was working on
 http://localhost:8080/alfresco/

with the HSQL database

melkor_kp
Champ in-the-making
Champ in-the-making
The following link explains how to change the database from HSQL to
Mysql in Ubuntu or a debian based distro.

http://forums.alfresco.com/viewtopic.php?t=5325

nunomp
Champ in-the-making
Champ in-the-making
i have the same error after installing AlfrescoCommunity-1.4-Linux-x86-Install

export: 11: -Xmx512m: bad variable name

I have tried to edit the alfresco.sh script but the error persists … any suggestions?

thanks

melkor_kp
Champ in-the-making
Champ in-the-making
You should just paste the file that I posted. I solved the problem just with that.
This is explained in a french alfresco forum.

heckle
Champ in-the-making
Champ in-the-making
Did you happen to get transformations working?

melkor_kp
Champ in-the-making
Champ in-the-making
I did not try this feature.
Sorry. Which it consists?

heckle
Champ in-the-making
Champ in-the-making
This is the feature for converting, for example, microsoft docs to pdfs automatically. It seems that on most debian based systems I tried, the answer is to launch openoffice as a service BEFORE launching tomcat/alfresco. This held true in Debian etch and Ubuntu edgy. However, it did not work on Ubuntu dapper SERVER LTS.
(and yes, I did install xvfb and launched office just fine.)