cancel
Showing results for 
Search instead for 
Did you mean: 

Problem installing on Ubuntu 7.10

a_weed096
Champ in-the-making
Champ in-the-making
I am having some trouble installing 2.1.0 on my Ubuntu 7.10 system. I would like to start off by saying that I am new to both Alfresco and Linux. I am in Highschool and I am trying to get this to run for a school project.

I found the guide on wiki.alfresco.com for installing Alfresco the "linux way", and I did my best to follow it. I got all the applications downloaded and installed, added the java line, created the alfresco user and group, i ran tar -xzf alfresco-community-tomcat-2.1.0.tar.gz in the opt folder, ran the commands in the mysql command line, created the directories and changed the owners, and I created and changed the files in the extension folder. I followed everything to the letter up until this point. After this, I had trouble with the directions however.

I could not find where in files-servers-custom.xml to configure what I was told to configure. I was able to remove the /opt/alfresco/tomcat/logs and linked the other two files. After this however I was unable to find the file to configure the Alfresco logging. I then wrote and got the init file in place. When I tried to run the init file, the terminal gave me a lot of negative feedback and I was not able to browse to http://localhost:8080/alfresco.

I am not sure whether or not the steps I missed would effect the program dramatically enough to keep it from running. Any insight on how to get the program running would be appreciated.

I would like to add that I found a different guide on wiki.alfresco that told me an easier way to install. I had to use Alfresco 1.3 to get this method to work. I did get 1.3 to boot the first time, but after that the program would no longer run. I don't know if that helps or not, but I thought I would throw it out there.
18 REPLIES 18

claudio_martins
Champ in-the-making
Champ in-the-making
Can you post the exact error message you're seeing at the console?


Cheers, CM.

a_weed096
Champ in-the-making
Champ in-the-making
This is everything I try to do from when I open the terminal to closing it.

andrew@Heritage:~$ sudo /etc/init.d/alfresco start|stop|restart|zap [tail]
stop: missing job name
Try `stop –help' for more information.
[sudo] password for andrew:The program 'zap' can be found in the following packages:
* libxbase2.0-bin
* libxdb-dev
Try: sudo apt-get install <selected package>
bash: zap: command not found
bash: restart: command not found


[1]+  Stopped                 sudo /etc/init.d/alfresco start | stop | restart | zap [tail]
andrew@Heritage:~$ ndrew
bash: ndrew: command not found
andrew@Heritage:~$

I copied the command from http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10. It is the last step. After this if I try to go to http://localhost:8080/alfresco, I get an error saying that there was a problem connecting to the server at localhost:8080. Thanks for any help and your time.

claudio_martins
Champ in-the-making
Champ in-the-making
The problem here is that you SHOULD provide the action that you want to execute on the alfresco script:

sudo /etc/init.d/alfresco start|stop|restart|zap [tail] ‍

This line tells you that you have the following actions available:

- start
- stop
- restart
- zip
- tail

you should type just one.

For example, to start the Alfresco server:

sudo /etc/init.d/alfresco start‍

The others are pretty much the same.


Hope that helps, CM.

a_weed096
Champ in-the-making
Champ in-the-making
I think we are getting closer, but it still isn't working. I have two things I tried, and both failed.

First I put in the command with just start.

andrew@Heritage:/etc/init.d$ ./alfresco start [tail]
touch: cannot touch `/var/run/alfresco': Permission denied
Starting OpenOffice service …
Setting up iptables …
./alfresco: line 33: /proc/sys/net/ipv4/ip_forward: Permission denied
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Redirecting port 21 to 2021 (tcp)
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Redirecting port 445 to 1445 (tcp)
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Redirecting port 139 to 1139 (tcp)
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Redirecting port 137 to 1137 (udp)
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Redirecting port 138 to 1138 (udp)
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
WARNING: Error inserting x_tables (/lib/modules/2.6.22-14-server/kernel/net/netfilter/x_tables.ko): Operation not permitted
FATAL: Error inserting ip_tables (/lib/modules/2.6.22-14-server/kernel/net/ipv4/netfilter/ip_tables.ko): Operation not permitted
iptables v1.3.6: can't initialize iptables table `nat': Permission denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.
Starting Alfresco …
./alfresco: line 67: /var/log/alfresco/alfresco.log: Permission denied
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-1.6.0.00
andrew@Heritage:/etc/init.d$ [Java framework] Error in function createSettingsDocument (elements.cxx).javaldx failed!
[Java framework] Error in function createSettingsDocument (elements.cxx).


Then I went back and put a "sudo" in front of it and got this.

andrew@Heritage:/etc/init.d$ sudo ./alfresco start [tail]
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-1.6.0.00
andrew@Heritage:/etc/init.d$ Xvfb failed to start
bash: Setting: command not found
andrew@Heritage:/etc/init.d$ Redirecting port 21 to 2021 (tcp)
bash: syntax error near unexpected token `('
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ 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.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Redirecting port 139 to 1139 (tcp)
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Redirecting port 137 to 1137 (udp)
bash: syntax error near unexpected token `('
andrew@Heritage:/etc/init.d$ Bad argument `udp'
> Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `udp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ 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.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ 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-1.6.0.00
> andrew@Heritage:/etc/init.d$ Xvfb failed to start
> andrew@Heritage:/etc/init.d$ sudo ./alfresco start [tail]
> Starting OpenOffice service …
> Setting up iptables …
> Redirecting port 21 to 2021 (tcp)
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Redirecting port 445 to 1445 (tcp)
bash: syntax error near unexpected token `('
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ 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.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Redirecting port 137 to 1137 (udp)
> Bad argument `udp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `udp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Redirecting port 138 to 1138 (udp)
bash: syntax error near unexpected token `('
andrew@Heritage:/etc/init.d$ Bad argument `udp'
> Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `udp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ 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-1.6.0.00
> andrew@Heritage:/etc/init.d$ Xvfb failed to start
> andrew@Heritage:/etc/init.d$ sudo ./alfresco start [tail]
> Starting OpenOffice service …
> Setting up iptables …
> Redirecting port 21 to 2021 (tcp)
> Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 13: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Redirecting port 445 to 1445 (tcp)
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Redirecting port 139 to 1139 (tcp)
bash: syntax error near unexpected token `('
andrew@Heritage:/etc/init.d$ Bad argument `tcp'
> Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `tcp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ 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.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 4: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Bad argument `udp'
> Try `iptables -h' or 'iptables –help' for more information.
> Redirecting port 138 to 1138 (udp)
> Bad argument `udp'
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Bad: command not found
andrew@Heritage:/etc/init.d$ Try `iptables -h' or 'iptables –help' for more information.
> Bad argument `udp'
> Try `iptables -h' or 'iptables –help' for more information.
bash: command substitution: line 1: unexpected EOF while looking for matching `''
bash: command substitution: line 3: syntax error: unexpected end of file
bash: Try: command not found
andrew@Heritage:/etc/init.d$ Starting Alfresco …
bash: Starting: command not found
andrew@Heritage:/etc/init.d$ Using CATALINA_BASE:   /opt/alfresco/tomcat
bash: Using: command not found
andrew@Heritage:/etc/init.d$ Using CATALINA_HOME:   /opt/alfresco/tomcat
bash: Using: command not found
andrew@Heritage:/etc/init.d$ Using CATALINA_TMPDIR: /opt/alfresco/tomcat/temp
bash: Using: command not found
andrew@Heritage:/etc/init.d$ Using JRE_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.00
bash: Using: command not found
andrew@Heritage:/etc/init.d$ andrew@Heritage:/etc/init.d$ Xvfb failed to start
bash: andrew@Heritage:/etc/init.d$: No such file or directory

Again I hope this helps you out. Thanks for your help and time.

a_weed096
Champ in-the-making
Champ in-the-making
I tried the sudo /etc/init.d/alfresco start [tail] command again, only this time I left off the [tail] part. The terminal told me that Alfresco was already running, however when I browsed to localhost:8080 I got the same problem loading page error I was getting before. I don't know what I am doing wrong.

I also scanned for open ports, and there is no activity on 8080 or 21. I even went back and put the [tail] on it, and it still tells me Alfresco is already running and the browser still can not connect.

claudio_martins
Champ in-the-making
Champ in-the-making
You have to run with the stop action first, so it can delete the pid file.

Later run the start action.

The tail action SHOULD NOT be inside the []. These symbols means that the tail action is OPTIONAL.


Cheers, CM.

a_weed096
Champ in-the-making
Champ in-the-making
Alright, I think we are getting close lol.

I can browse to localhost:8080/ but I can't make it too localhost:8080/alfresco. When I go to /alfresco I get a 404 error. I hope this sparks something for you. Thanks for all your help and time.

claudio_martins
Champ in-the-making
Champ in-the-making
You're having issues with deployment, thus Tomcat is not initializing the context /alfresco.

I suggest you get a Java book first, read some tutorials about Java, Tomcat and Web Development, since without a basic knowledge you're going to kick your head on the wall all the time.


Cheers, CM.

mikeh
Star Contributor
Star Contributor
Hi

Well, we'd hope we can get you up and running without having to take a trip to the local bookshop!

It's not clear to me exactly what's going wrong with the startup script, other than the iptables redirection commands being very unhappy! I suspect it might be a copy/paste problem from either our wiki or a document perhaps, as some of those apostrophes look suspect in the output.

Could you post what you've done so far please (i.e. if there's anything you've manually edited). Perhaps posting the alfresco script would also help, as would the contents of the Alfresco.log file, if one is created.

Thanks,
Mike