04-29-2008 11:08 AM
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
# /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.
04-29-2008 01:12 PM
iptables -h
? You should be able to see if the command in the script is not valid anymore.echo $JAVA_HOME
04-30-2008 03:40 AM
04-30-2008 10:52 AM
Have you tried? You should be able to see if the command in the script is not valid anymore.iptables -h
Looks like java home isn't set up properley? What happens when you runecho $JAVA_HOME
Rob
administrator@alfresco:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun-1.6.0.06
#
# Alfresco init script for Ubuntu
# 2 nov 2007 Joost Horward
#
export ALFRESCO_HOME=/opt/alfresco
export CATALINA_BASE=/opt/alfresco/tomcat
export CATALINA_HOME=/opt/alfresco/tomcat
export PIDFILE=/var/run/alfresco
export LOGFILE=/var/log/alfresco/alfresco.log
# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'
cd "$ALFRESCO_HOME"
#
# redirect FROM TO PROTOCOL
# setup port redirect using iptables
redirect() {
echo "Redirecting port $1 to $2 ($3)"
iptables -t nat -A OUTPUT -d localhost -p $3 –dport $1 -j REDIRECT –to-ports $2
iptables -t nat -A PREROUTING -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to-ports $2
iptables -t nat -A OUTPUT -d $HOSTNAME -p $3 –dport $1 -j REDIRECT –to-ports $2
}
#
# setup_iptables
# setup iptables for redirection of CIFS and FTP
setup_iptables () {
echo "1" >/proc/sys/net/ipv4/ip_forward
# Clear NATing tables
iptables -t nat -F
# FTP NATing
redirect 21 2021 tcp
# CIFS NATing
redirect 445 1445 tcp
redirect 139 1139 tcp
redirect 137 1137 udp
redirect 138 1138 udp
}
#
# start_openoffice
#
start_openoffice(){
sudo -H -u alfresco xvfb-run /usr/lib/openoffice/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &
}
case $1 in
start)
if [ -f $PIDFILE ] ; then
echo "Alfresco is already running!"
exit 1
fi
touch $PIDFILE
echo "Starting OpenOffice service …"
start_openoffice
echo "Setting up iptables …"
setup_iptables
echo "Starting Alfresco …"
echo -e "\n\n\n\n\n\n\n\n\n\n`date` Starting Alfresco …" >>$LOGFILE
sudo chown alfresco:alfresco $LOGFILE
sudo -H -u alfresco sh $CATALINA_HOME/bin/startup.sh
;;
stop)
sudo -H -u alfresco sh $CATALINA_HOME/bin/shutdown.sh
killall -w -u alfresco
echo -e "`date` Stopping Alfresco …" >>$LOGFILE
rm $PIDFILE
;;
restart)
rm $PIDFILE
sudo -H -u alfresco sh $CATALINA_HOME/bin/shutdown.sh
killall -w -u alfresco
echo -e "\n\n\n\n\n\n\n\n\n`date` Restarting Alfresco …" >>$LOGFILE
sudo -H -u alfresco sh $CATALINA_HOME/bin/startup.sh
touch $PIDFILE
;;
zap)
echo "Zapping $PIDFILE …"
rm $PIDFILE
;;
*)
echo "Usage: alfresco [start|stop|restart|zap] [tail]"
exit 1
;;
esac
case $2 in
tail)
tail -f $LOGFILE
;;
esac
exit 0
04-30-2008 04:19 PM
05-01-2008 10:23 AM
05-01-2008 10:40 AM
05-05-2008 09:32 AM
05-05-2008 10:43 AM
06-19-2008 07:59 PM
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
lines in both /etc/profile and /etc/environment (the French version)$ sudo /etc/init.d/alfresco start
I get the same iptables and "Neither JAVA_HOME nor the "JRE_HOME"…. error messages as posted above. When I execute$ sudo su -
# /etc/init.d/alfresco start
$ sudo /opt/alfresco/alfresco.sh start
, the process does not throw any error messages, just the normalUsing 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-6-sun
$ ps -ef | grep alfresco
shows the process running. So I point browser to port 8080/alfresco, which just gives a 404 error:
HTTP Status 404 - /alfresco/
type Status report
message /alfresco/
description The requested resource (/alfresco/) is not available.
Apache Tomcat/5.5.23
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.