cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco binary install and Ubuntu

danderson
Champ in-the-making
Champ in-the-making
I was running the Alfresco 1.4 binary installer on Ubuntu 6.05 and everything was working great. I upgraded Ubuntu to 6.10 and now the start up script fails. I am getting:

/usr/local/alfresco$ sudo sh ./alf_start.sh
export: 11: -Xmx512m: bad variable name

Any help would be greatly appreciated.
7 REPLIES 7

danderson
Champ in-the-making
Champ in-the-making
Thought maybe I needed JDK instead of JRE for some reason, no such luck. Still experiencing the same problem. I tested trying to install it on a second PC at home running Ubuntu 6.10 and I get the exact same results.

Any help is greatly appreciated.

danderson
Champ in-the-making
Champ in-the-making
There is not a single other person out there that has experienced the same problem I am experiencing by moving from Ubuntu 6.05  to Ubuntu 6.10 while trying to run Alfresco 1.4?

Anyone, with some insight to why I might be experiencing the problem I am?

/usr/local/alfresco$ sudo sh ./alf_start.sh
export: 11: -Xmx512m: bad variable name

matre
Champ in-the-making
Champ in-the-making
I am seeing the same problem as well with Ubuntu 6.10 Desktop install with the latest packaged Sun 1.5 JDK installed.  Am also very interested in a solution to this issue if anyone has any ideas?

Rgds,

Matt

matre
Champ in-the-making
Champ in-the-making
Okay,

Got it working.  I didnt install the binary package by the way but download the tomcat.tar.gz version.  Also I startup using $>alfresco.sh start rather than your script however I definately see the same issue. 

So if I look at the original alfresco.sh you see the following lines:
# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx512m -server'
# Following only needed for Sun JVMs before to 1.5 update 8
export JAVA_OPTS=$JAVA_OPTS '-XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:
CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions'

I have installed the sun jdk 1.5_08 so the comment jumps out.  Comment out the second export line and it starts up fine.  I also tried just for fun moving everything into one export JAVA_OPTS like so…

export JAVA_OPTS='-Xms128m -Xmx512m -server -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions'

This works as well.  Hope the above works in your case given your binary install.

Rgds,

Matt

danderson
Champ in-the-making
Champ in-the-making
I honestly swear that I tried just that (comment out the above stated section) but could not get the server to start. It seems to be working now with that section commented out. I don't really follow your post though. If you comment out that section, why do we need to put all the commands into a single command?

matre
Champ in-the-making
Champ in-the-making
cool, glad to hear it worked. 

To clear up the confusion you didn't say what JVM you were using so commenting out the second export JAVA_OPTS may not have been the correct solution (if you JVM is < 1.5.0_08).  The second part was just another possible solution which solved the problem being to put everything into one line instead of building the JAVA_OPTS property in 2 separate operations.

Rgds,

Matt

danderson
Champ in-the-making
Champ in-the-making
Ahhh - I got ya now. Thanks for the response.