cancel
Showing results for 
Search instead for 
Did you mean: 

Bad argument `tcp' starting Alfresco

pcmonk
Champ in-the-making
Champ in-the-making
Could any one here give me a hint as to what may be causing this and how I can fix it?

I am installed on Ubuntu Server.  I have followed the wiki's for 7.10 and 8.04, no good so far.  Smiley Sad

Here are the errors I get…

scotth@alfresco:/opt/alfresco/tomcat/shared/classes/alfresco/extension$ 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 …
Using 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
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
I'm not an Ubuntu expert, so don't have any "magic wand" solution, but do remember seeing posts from other with this same issue.

Could you check these posts for possible solutions? http://forums.alfresco.com/en/search.php?st=0&sk=t&sd=d&keywords=iptables

Thanks,
Mike

pcmonk
Champ in-the-making
Champ in-the-making
Well none of this has worked thus far.  I have removed the iptables errors but the ports are not listening.  I added the required lines to the bottom of the ufw file whic appears to be the firewall startup script. 

Another problem I am having is that the web interface for Alfresco is not working.  Tomcat is working however I can't setup a manager login to see if I can tweak something to get Alfresco working on 8080. 

Also I'll post the log error from the Alfresco log I am currently getting…

11:16:56,488 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneIndexBackupComponent' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection


I have been working on this for the better part of two days.  It should not be this hard.  Linux is never going to be a viable alternative to Windows until people start making installers that don't require a computer science degree (which I have among others) to run!  Granted my usual enviroment is windows but why so many steps to get an Ubuntu install to work?  I have installed Ubunto to filter mail at my network border, setup and configured IPTables firewalls and such but this has me stumped.

Is there a better way than this???   http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10

HELP!!!

nadaoneal
Champ in-the-making
Champ in-the-making
Hi pcmonk, how did you remove the iptables errors? If you just removed the lines that are causing the errors, then you may have removed lines intended to redirect ports. If you post your iptables script here, maybe I or another user can figure out the syntax errors. My guess, not having looked at the script, is that you're missing the "-p " before "tcp".

You probably already fixed the second issue… "GenericJDBCException: Cannot open connection" is probably because you have an hung process still running. You can use "ps auwwx | grep java" to check for hanging alfresco java processes, and kill them before attempting to start up alfresco.