cancel
Showing results for 
Search instead for 
Did you mean: 

Hardy Heron Install Woes: IP Tables Error(s)

linuxlearner
Champ in-the-making
Champ in-the-making
Hi All,

First post here … I'm stuck with getting a working install.  I tried (I thought successfully) to get through this (I'm on Ubuntu Hardy):
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10
AND
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_8.04

Which gets me the following error message when I start Alfresco:

—————————————–
nws1@nws1:~$ sudo /etc/init.d/alfresco start

[sudo] password for nws1:

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

———————————————————–

I use firestarter as a front-end to IP tables (or at least that's what I think it is anyway) …  Does anyone have any idea how I can get this install working/finished.  At the moment when I try http://localhost:8080/alfresco I get an Apache Tomcat/5.5.23 404 error (so this seems to imply Tomcat is working fine, as is apache, and that the problem lays somewhere with the above?!?!

Any help truly appreciated. 

Sincerely,

LinuxLearner
3 REPLIES 3

odomok
Champ in-the-making
Champ in-the-making
This may be barking up the wrong tree, but I had a similar sounding problem with the install on Hardy a few days ago,  I traced the iptable problems to my copy/paste of the init script from a windows browser to a linux system.  Doing this with correct cr/lf conversion solved this problem.

linuxlearner
Champ in-the-making
Champ in-the-making
Hi Friend,

Well I think you may have been right …  I was copying it from a Windows XP machine via synergy2 onto the Ubuntu machine.  Copying direct from Firefox on the Ubuntu machine itself seems to have definitely done something!  I am no longer getting that error message at all! 

Unfortunately, I still don't have a working install.  Smiley Sad

I am still pulling up a 404 on either

http://localhost:8080/alfresco
*and*
http://localhost:8080/alfresco/webdav

I have been through all the configs like 10 x's now …. And am completely out of ideas.  The exact 404/tomcat/apache message reads:
———————————–
HTTP Status 404 - /alfresco/

Type  Status Report
Message /alfresco/
description The requested resource (/alfresco/) is not available

Apache Tomcat/5.5.23

———————————–

Any ideas anyone - like - at all …  I'm completely stuck now with what even to try next/where to look etc?!  {umph}  It just seems from the above error message that apache cannot pull /alfresco/ - a.k.a. 'not available'.  The only bit I got a bit stuck with in the config. instructions was this bit:

<START>

To configure the CIFS server to use non-privileged ports use the following in either file-servers.xml or file-servers-custom.xml configuration file (whichever is present), in the section <config evaluator="string-compare" condition="CIFS Server">:

     <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
     <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>

If this section is missing (it is not in file-servers-custom.xml in my install), add it, so that you have:

<alfresco-config area="file-servers">
   <config evaluator="string-compare" condition="CIFS Server">
      <serverEnable enabled="true"/>
      <host name="${localname}_A"/>
      <comment>Alfresco CIFS Server</comment>
      <broadcast>255.255.255.255</broadcast>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
      <hostAnnounce interval="5"/>
      <sessionDebug flags="Negotiate,Socket"/>
   </config>

at the start of the file-servers-custom.xml file.

</END>

This gives me what I think the above means …. i.e. what follows is what I have put in the file-servers-custom.xml:

——————
<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="CIFS Server">

      <serverEnable enabled="true"/>

      <host name="${localname}_A"/>

      <comment>Alfresco CIFS Server</comment>

      <broadcast>255.255.255.255</broadcast>

      <tcpipSMB platforms="linux,solaris,macosx"/>

      <netBIOSSMB platforms="linux,solaris,macosx"/>

      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>

      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>

      <hostAnnounce interval="5"/>

      <sessionDebug flags="Negotiate,Socket"/>

   </config>



<alfresco-config area="file-servers">



   <!– To override the default Alfresco filesystem use replace="true", to –>

   <!– add additional filesystems remove the replace="true" attribute     –>

  

   <config evaluator="string-compare" condition="Filesystems" replace="true">

      <filesystems>



         <filesystem name="Alfresco">

            <store>workspace://SpacesStore</store>

            <rootPath>/app:company_home</rootPath>



            <!– Add a URL file to each folder that links back to the web client –>

            <urlFile>

               <filename>__Alfresco.url</filename>

               <webpath>http://${localname}:8080/alfresco/</webpath>

            </urlFile>



            <!– Mark locked files as offline –>

            <offlineFiles/>



            <!– Desktop actions –>



            <desktopActions>

               <global>

                  <path>alfresco/desktop/Alfresco.exe</path>

                  <webpath>http://${localname}:8080/alfresco/</webpath>

               </global>

               <action>

                  <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>

                  <name>CheckInOut</name>

                  <filename>__CheckInOut.exe</filename>

               </action>

               <action>

                  <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>

                  <name>JavaScriptURL</name>

                  <filename>__ShowDetails.exe</filename>

                  <script>alfresco/desktop/showDetails.js</script>

                  <attributes>anyFiles</attributes>

                  <preprocess>copyToTarget</preprocess>

               </action>



            </desktopActions>



<!–

            <accessControl default="Write">

               <user name="admin" access="Write"/>

               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>

            </accessControl>

–>

         </filesystem>

       

       <!– AVM virtualization view of all stores/versions for WCM –>

         <avmfilesystem name="AVM">

            <virtualView/>

         </avmfilesystem>

       

      </filesystems>

   </config>



</alfresco-config>

——————

As you can see from the above I've literally pasted it in *ABOVE* the content that was already there.  I am not sure if it should have appeared *inside* the existing content above though … Any ideas anyone?

LinuxLearner

mikewaters
Champ in-the-making
Champ in-the-making
The 404 error is from tomcat and means that tomcat is running but the alfresco webapp may not have started up correctly.

The first thing to do is check for errors in the logs. There are various places to look - try the files in /opt/alfresco/tomcat/logs and /var/log/alfresco/tomcat

That should give you some clues…

-mike