<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Alfresco won't start - first run. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-won-t-start-first-run/m-p/168886#M122316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been following &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10" rel="nofollow noopener noreferrer"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Installing Alfresco on Ubuntu 7.10&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt; to install &lt;/SPAN&gt;&lt;STRONG&gt;alfresco-community-tomcat-2.1.0&lt;/STRONG&gt;&lt;SPAN&gt; on an Ubuntu 8.04 server platform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to run it, with &lt;/SPAN&gt;&lt;STRONG&gt;/etc/init.d/alfresco start&lt;/STRONG&gt;&lt;SPAN&gt;, I get this returned:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;: command not foundo: line 5:&lt;BR /&gt;: command not foundo: line 11:&lt;BR /&gt;: command not foundo: line 14:&lt;BR /&gt;: command not foundo: line 15:&lt;BR /&gt;: No such file of directory16: cd: /opt/alfresco&lt;BR /&gt;: command not foundo: line 17:&lt;BR /&gt;'etc/init.d/alfresco: line 21: syntax error near unexpected token '{&lt;BR /&gt;'etc/init.d/alfresco: line 21: 'redirect() {&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked through &lt;/SPAN&gt;&lt;STRONG&gt;/etc/init.d/alfresco&lt;/STRONG&gt;&lt;SPAN&gt;, which is what is given in the howto, but to be honest, I'm not sure what it's referring to as it says "&lt;/SPAN&gt;&lt;STRONG&gt;command not foundo&lt;/STRONG&gt;&lt;SPAN&gt;" (&lt;/SPAN&gt;&lt;EM&gt;foundo??? - I don't know what this is about!&lt;/EM&gt;&lt;SPAN&gt;), as lines 5, 11, 14, 15 and 17 are blank lines, and it seems to ignore other lines later on in the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the file in several editors, just to see if there was any rogue characters which might be invisible in, say, Notepad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000ff;"&gt;EDIT: &lt;/SPAN&gt;&lt;SPAN&gt; In Vim, I removed these lines, run the script and the errors disappeared.&amp;nbsp; Again, in Vim, I replaced the blank lines and the errors reappeared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(The original file was created in Notepad2 for Windows and moved across with SSH.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;: No such file of directory16: cd: /opt/alfresco&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Refers to the entry: &lt;/SPAN&gt;&lt;STRONG&gt;cd "$ALFRESCO_HOME"&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried setting the path manually, but the error stays.&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;/opt/alfresco&lt;/STRONG&gt;&lt;SPAN&gt; does exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:#0000ff;"&gt;EDIT: &lt;/SPAN&gt;&lt;SPAN&gt;I just replaced &lt;/SPAN&gt;&lt;STRONG&gt;cd "$ALFRESCO_HOME"&lt;/STRONG&gt;&lt;SPAN&gt; with &lt;/SPAN&gt;&lt;STRONG&gt;cd /opt/alfresco&lt;/STRONG&gt;&lt;SPAN&gt; and that error has gone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;'etc/init.d/alfresco: line 21: syntax error near unexpected token '{&lt;BR /&gt;'etc/init.d/alfresco: line 21: 'redirect() {&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Not being too familiar with shell scripts, it looks OK to me as, the following entries end with a &lt;/SPAN&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Aug 2008 10:58:04 GMT</pubDate>
    <dc:creator>alloydog</dc:creator>
    <dc:date>2008-08-14T10:58:04Z</dc:date>
    <item>
      <title>Alfresco won't start - first run.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-won-t-start-first-run/m-p/168886#M122316</link>
      <description>I have been following Installing Alfresco on Ubuntu 7.10 to install alfresco-community-tomcat-2.1.0 on an Ubuntu 8.04 server platform.When I try to run it, with /etc/init.d/alfresco start, I get this returned:: command not foundo: line 5:: command not foundo: line 11:: command not foundo: line 14::</description>
      <pubDate>Thu, 14 Aug 2008 10:58:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-won-t-start-first-run/m-p/168886#M122316</guid>
      <dc:creator>alloydog</dc:creator>
      <dc:date>2008-08-14T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco won't start - first run.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-won-t-start-first-run/m-p/168887#M122317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed didn't run the script as root.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing so gives this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;: not found/alfresco: 11:&lt;BR /&gt;: not found/alfresco: 14:&lt;BR /&gt;: not found/alfresco: 15:&lt;BR /&gt;: not found/alfresco: 17:&lt;BR /&gt;: not found/alfresco: 22:&lt;BR /&gt;Redirecting port start to&amp;nbsp; ()&lt;BR /&gt;iptables v1.3.8: unknown protocol `–dport' specified&lt;BR /&gt;Try `iptables -h' or 'iptables –help' for more information.&lt;BR /&gt;iptables v1.3.8: Unknown arg `–dport'&lt;BR /&gt;Try `iptables -h' or 'iptables –help' for more information.&lt;BR /&gt;iptables v1.3.8: Unknown arg `–dport'&lt;BR /&gt;Try `iptables -h' or 'iptables –help' for more information.&lt;BR /&gt;: not found/alfresco: 27: }&lt;BR /&gt;: not found/alfresco: 28:&lt;BR /&gt;: not found/alfresco: 33:&lt;BR /&gt;: Directory nonexistent4: cannot create /proc/sys/net/ipv4/ip_forward&lt;BR /&gt;iptables: No chain/target/match by that name&lt;BR /&gt;: not found/alfresco: 38: {&lt;BR /&gt;: not found/alfresco: 39:&lt;BR /&gt;: not found/alfresco: 41: {&lt;BR /&gt;: not found/alfresco: 42: {&lt;BR /&gt;: not found/alfresco: 43: {&lt;BR /&gt;: not found/alfresco: 44: {&lt;BR /&gt;: not found/alfresco: 45: }&lt;BR /&gt;: not found/alfresco: 46:&lt;BR /&gt;: not found/alfresco: 51:&lt;BR /&gt;: not found/alfresco: 52: }&lt;BR /&gt;: not found/alfresco: 53:&lt;BR /&gt;/etc/init.d/alfresco: 54: Syntax error: word unexpected (expecting "in")&lt;BR /&gt;:~$ javaldx: Could not find a Java Runtime Environment!&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 10:25:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-won-t-start-first-run/m-p/168887#M122317</guid>
      <dc:creator>alloydog</dc:creator>
      <dc:date>2008-08-15T10:25:17Z</dc:date>
    </item>
  </channel>
</rss>

