cancel
Showing results for 
Search instead for 
Did you mean: 

Ubuntu 8.04

leetcharmer
Champ in-the-making
Champ in-the-making
Has anyone installed Alfresco Enterprise 2.2.0 on Ubuntu 8.04 yet?  I've been trying but here are my errors when I try to run the alfresco script as stated http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10:
administrator@alfresco:~$ sudo /etc/init.d/alfresco start
Starting OpenOffice service …
Setting up iptables …
Redirecting port 21 to 2021 (tcp)
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Redirecting port 445 to 1445 (tcp)
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Redirecting port 139 to 1139 (tcp)
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Bad argument `tcp'
Try `iptables -h' or 'iptables –help' for more information.
Redirecting port 137 to 1137 (udp)
Bad argument `udp'
Try `iptables -h' or 'iptables –help' for more information.
Bad argument `udp'
Try `iptables -h' or 'iptables –help' for more information.
Redirecting port 138 to 1138 (udp)
Bad argument `udp'
Try `iptables -h' or 'iptables –help' for more information.
Bad argument `udp'
Try `iptables -h' or 'iptables –help' for more information.
Starting Alfresco …
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
administrator@alfresco:~$ /usr/lib/openoffice/program/soffice.bin X11 error: Can't open display:
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)

administrator@alfresco:~$ sudo /etc/init.d/alfresco stop
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

In /etc/profile:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), …).

JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.06"; export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH

if [ -d /etc/profile.d ]; then
  for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

if [ "$PS1" ]; then
  if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
        . /etc/bash.bashrc
    fi
  else
    if [ "`id -u`" -eq 0 ]; then
      PS1='# '
    else
      PS1='$ '
    fi
  fi
fi

umask 022
I don't know what to do.
11 REPLIES 11

msntrf
Champ in-the-making
Champ in-the-making
I'm at the same point as ScottThornley.

I battled through the JAVA_HOME problem and finally noticed last section on http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_8.04 which says to add a line exporting JAVA_HOME in /opt/alfresco/tomcat/bin/setenv.sh

Then, to avoid "Bad argument 'udp' " and "Bad argument 'tcp' ", I need to execute


$ sudo su -
# /etc/init.d/alfresco start


I get a small error from openoffice that's something like "Can't open display: Set DISPLAY environment variables…" but I assume that's okay as we're running headless OpenOffice.

Then, when I navigate to http://127.0.0.1:8080/alfresco/ I get "HTTP Status 404… resource is not available".

Has anyone had any success with this?

msntrf
Champ in-the-making
Champ in-the-making
Not sure why I didn't think of this earlier, but I looked at the Alfresco log and found:

Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener…
…custom-repository-context.xml] is invalid;

The problem was that while following the wiki on installing Alfresco on Ubuntu 7, I copied and pasted into custom-repository-context.xml and there was a space at the beginning of that file.  Removing all spaces at the beginning of the file did the trick.

However, now Java us running out of heap space and can't run Alfresco.  Not sure how much memory is needed… I'll have to investigate that.