AnsweredAssumed Answered

Alfresco won't start - first run.

Question asked by alloydog on Aug 14, 2008
Latest reply on Aug 15, 2008 by alloydog
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:
: command not foundo: line 15:
: No such file of directory16: cd: /opt/alfresco
: command not foundo: line 17:
'etc/init.d/alfresco: line 21: syntax error near unexpected token '{
'etc/init.d/alfresco: line 21: 'redirect() {

I have checked through /etc/init.d/alfresco, which is what is given in the howto, but to be honest, I'm not sure what it's referring to as it says "command not foundo" (foundo??? - I don't know what this is about!), as lines 5, 11, 14, 15 and 17 are blank lines, and it seems to ignore other lines later on in the script.
I checked the file in several editors, just to see if there was any rogue characters which might be invisible in, say, Notepad.
EDIT: In Vim, I removed these lines, run the script and the errors disappeared.  Again, in Vim, I replaced the blank lines and the errors reappeared.
(The original file was created in Notepad2 for Windows and moved across with SSH.)

: No such file of directory16: cd: /opt/alfresco
Refers to the entry: cd "$ALFRESCO_HOME".
I have tried setting the path manually, but the error stays.  /opt/alfresco does exist.
EDIT: I just replaced cd "$ALFRESCO_HOME" with cd /opt/alfresco and that error has gone.

'etc/init.d/alfresco: line 21: syntax error near unexpected token '{
'etc/init.d/alfresco: line 21: 'redirect() {
Not being too familiar with shell scripts, it looks OK to me as, the following entries end with a }.

Outcomes