cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco won't start - first run.

alloydog
Champ in-the-making
Champ in-the-making
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 }.
1 REPLY 1

alloydog
Champ in-the-making
Champ in-the-making
I noticed didn't run the script as root.

Doing so gives this:
: not found/alfresco: 11:
: not found/alfresco: 14:
: not found/alfresco: 15:
: not found/alfresco: 17:
: not found/alfresco: 22:
Redirecting port start to  ()
iptables v1.3.8: unknown protocol `–dport' specified
Try `iptables -h' or 'iptables –help' for more information.
iptables v1.3.8: Unknown arg `–dport'
Try `iptables -h' or 'iptables –help' for more information.
iptables v1.3.8: Unknown arg `–dport'
Try `iptables -h' or 'iptables –help' for more information.
: not found/alfresco: 27: }
: not found/alfresco: 28:
: not found/alfresco: 33:
: Directory nonexistent4: cannot create /proc/sys/net/ipv4/ip_forward
iptables: No chain/target/match by that name
: not found/alfresco: 38: {
: not found/alfresco: 39:
: not found/alfresco: 41: {
: not found/alfresco: 42: {
: not found/alfresco: 43: {
: not found/alfresco: 44: {
: not found/alfresco: 45: }
: not found/alfresco: 46:
: not found/alfresco: 51:
: not found/alfresco: 52: }
: not found/alfresco: 53:
/etc/init.d/alfresco: 54: Syntax error: word unexpected (expecting "in")
:~$ javaldx: Could not find a Java Runtime Environment!