cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco install on Ubuntu 8.04 doesn't work

irvken
Champ in-the-making
Champ in-the-making
http://wiki.alfresco.com/wiki/Installing_Alfresco_Lab_3_Stable_on_Ubuntu_8.10

I've done this three times now! Everything is OK till I get down to section 7 at which point nothing works!

all activities result in "can't establish a connection to the server at localhost:8080", both apache2 and tomcat are working, plus nothing in their logs. I've seen reference to a "alfresco.log" but there is no such file on the system! Any ideas appreciated.
9 REPLIES 9

irvken
Champ in-the-making
Champ in-the-making
It must be something missing from the install instructions as I've just tried again on a new ubuntu install and got the same problem.

gronfelt
Champ in-the-making
Champ in-the-making
What happens when you run "/opt/Alfresco/alfresco.sh start"?

irvken
Champ in-the-making
Champ in-the-making
me%: sudo /opt/Alfresco/alfresco.sh start
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.1
me%:


that looks like it's started doesn't it?

caffiend
Champ in-the-making
Champ in-the-making
Does

ps ax

show a running java process? If you've been restarting it a few times, there might be an orphaned java process tying things up. Also you can do

netstat -nl

To verify that it is listening on 8080, you might also want to make sure that all java procs are killed and verify that something else is not listening on port 8080.

irvken
Champ in-the-making
Champ in-the-making
Does

ps ax

show a running java process? If you've been restarting it a few times, there might be an orphaned java process tying things up.

I'm not sure, there are a lot of processes there but I don't get anything by grepping the list. I did reboot the server though, which I assume would have cleared any orphan processes

Also you can do

netstat -nl

To verify that it is listening on 8080, you might also want to make sure that all java procs are killed and verify that something else is not listening on port 8080.

This is slightly easier, there is nothing listening on that port as far as I can make out

tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:8180            0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN    
tcp6       0      0 :::8000                 :::*                    LISTEN    
tcp6       0      0 :::22                   :::*                    LISTEN

irvken
Champ in-the-making
Champ in-the-making
Ok, I'm getting a bit further on, a colleague tells me that tomcat is listening on port 8180 rather than 8080,

tcp        0      0 0.0.0.0:8180            0.0.0.0:* LISTEN      5885/jsvc

however all responses are a blank page

http://moodle.voscur.org:8180/share
http://moodle.voscur.org:8180/alfresco

for example. What might be causing that?

j1mmy
Champ in-the-making
Champ in-the-making
Hi,

I've just installed on 8.04 server edition and things are working ok.  I just followed the 8.10 with only one difference.  Instead of setting the path to java to /usr/lib/jvm/java-6-sun-1.6.0.10/ in alfresco.sh, i set it to /usr/lib/jvm/java-6-sun/ instead.

No idea if what I did was right or wrong.  I only started changing things because I thought things weren't working as it takes about 7 minutes from when I reboot the server before I can actually connect to http://192.168.1.3:8080/alfresco

Hope that helps.

nadaoneal
Champ in-the-making
Champ in-the-making
Hi irvken.

I'm wondering:
- Do you have more than one instance of tomcat running on your server?
- Are you running Alfresco under an existing tomcat, or are you using a standalone install?

If you have more than one instance of tomcat running, you need to make sure they're all listening on different ports - you can set Alfresco's tomcat to listen on 8280, for instance. You'll see something like:
    <Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!– A "Connector" using the shared thread pool–>
    <!–
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />

… change the 8080s to 8280s, or any other unused port.

Second, open up a second window as you're starting up Alfresco. Do a tail -f on $alfresco/tomcat/logs/catalina.out . What do you see? Any errors? Post them!

To change the port Alfresco's tomcat is listening on, assuming you're using a standalone install, look in $alfresco/tomcat/conf/server.xml .

gronfelt
Champ in-the-making
Champ in-the-making
Hi irvken.

I'm wondering:
- Do you have more than one instance of tomcat running on your server?
- Are you running Alfresco under an existing tomcat, or are you using a standalone install?

If you have more than one instance of tomcat running, you need to make sure they're all listening on different ports - you can set Alfresco's tomcat to listen on 8280, for instance.

Be aware though that if you do this there are a lot of Alfresco specific config files that need to be changed too. You might also want to set a unique shutdown port for each instance.