cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Installation on Ubuntu

nigelevans
Champ in-the-making
Champ in-the-making
Hi Folks

I'm trying (well, failing, mostly) to install Alfresco on Ubuntu. I've spent 2 days scouring web & forums for fixes, and have now got to the point where I don't get any error messages in any of the Alfresco/Tomcat logs when I do
sudo ./alfresco.sh start
from /opt/alfresco. But when I try and access alfresco from my browser at "http:\\<serverIpAddress>:8080\alfresco" the browser times out.

I am using Ubuntu 8.04, and "alfresco-community-tomcat-2.9.0B.tar.gz". I have followed the installation guide in the forums for installing on Ubuntu 7 [and 8], so I am using MySQL.

After trying to access "http:\\<serverIpAddress>:8080\alfresco" I get the following errors reported in catalina.out…
INFO: Deploying web application archive alfresco.war
13:33:48,498 User:System WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
13:33:55,923 User:System ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
        … 57 more
13:33:55,950 User:System ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to
listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
        … 57 more
13:33:55,959 User:System ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to
listener instance of class org.alfresco.web.app.ContextListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'usageQuotaProtector' defined in
class path resource [alfresco/usage-services-context.xml]: Invocation of init method failed; nested exception is
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction;
nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for
transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
. . .
        … 57 more
29-Jun-2008 13:33:55 org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
29-Jun-2008 13:33:55 org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
29-Jun-2008 13:34:01 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
29-Jun-2008 13:34:02 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
29-Jun-2008 13:34:02 org.apache.catalina.startup.Catalina start
INFO: Server startup in 63292 ms
I'd be very grateful if anyone could suggest a solution to get alfresco working on my system.

Kind regards,
Nigel
(Linux newbie)
34 REPLIES 34

mikeh
Star Contributor
Star Contributor
Does it still not work? That start-up sequence looks ok for testing purposes.

20:46:33,279 User:System WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 381.063MB is less than recommended 512MB
…indicates that yes, 512MB is really pushing the lower limits.

Regards,
Mike

nigelevans
Champ in-the-making
Champ in-the-making
Hi Mike

I still get a connection timeout at localhost:8080/alfresco.
I'll upgrade the RAM in the server & see if that helps.
What about the
20:46:32,753  ERROR [smb.protocol.mailslot] HostAnnouncer error
java.io.IOException: Operation not permitted
That sounds bad to me!

Kind regards, Nigel

nigelevans
Champ in-the-making
Champ in-the-making
OK, I've upgraded the server RAM to 1GB. Now I get this in catalina.out…
21-Aug-2008 11:04:18 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
21-Aug-2008 11:04:18 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2711 ms
21-Aug-2008 11:04:18 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
21-Aug-2008 11:04:18 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
21-Aug-2008 11:04:18 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
21-Aug-2008 11:04:20 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
11:05:10,195 User:System WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
11:05:20,942 User:System INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
11:05:22,707 User:System INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
11:05:29,913 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
11:05:30,018 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
11:05:29,913 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
11:05:30,018 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
11:05:31,662 User:System INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
11:05:37,097 User:System ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
11:05:37,098 User:System ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
11:05:37,739  ERROR [smb.protocol.mailslot] HostAnnouncer error
java.io.IOException: Operation not permitted
        at java.net.PlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:612)
        at org.alfresco.filesys.netbios.NetBIOSDatagramSocket.sendDatagram(NetBIOSDatagramSocket.java:160)
        at org.alfresco.filesys.netbios.NetBIOSDatagram.SendDatagram(NetBIOSDatagram.java:396)
        at org.alfresco.filesys.smb.mailslot.TcpipNetBIOSHostAnnouncer.sendAnnouncement(TcpipNetBIOSHostAnnouncer.java:215)
        at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
        at org.alfresco.filesys.smb.mailslot.TcpipNetBIOSHostAnnouncer.sendAnnouncement(TcpipNetBIOSHostAnnouncer.java:215)
        at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
11:05:37,788  ERROR [smb.protocol.mailslot]  Check <broadcast> setting in file-servers.xml
11:05:38,174 User:System WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
11:05:38,204 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_06-b02; maximum heap size 508.063MB
11:05:38,206 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116
21-Aug-2008 11:05:50 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
21-Aug-2008 11:05:51 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
21-Aug-2008 11:05:51 org.apache.catalina.startup.Catalina start
INFO: Server startup in 93128 ms
The low memory warnings have gone. But I still get a server timeout at port :8080/alfresco, and I still don't get the TomCat banner at port :8080.

Kind regards, Nigel

nigelevans
Champ in-the-making
Champ in-the-making
Success (well kinda)  Smiley Very Happy .
Having disabled the server firewall (yikes), and rebooted, I now get this in catalina.out…
21-Aug-2008 11:43:21 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
21-Aug-2008 11:43:21 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2717 ms
21-Aug-2008 11:43:21 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
21-Aug-2008 11:43:21 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
21-Aug-2008 11:43:21 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
21-Aug-2008 11:43:23 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
11:44:12,800 User:System WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
11:44:23,553 User:System INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
11:44:25,306 User:System INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
11:44:32,685 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
11:44:32,789 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
11:44:32,685 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
11:44:32,789 User:System INFO  [admin.patch.PatchExecuter] Checking for patches to apply …
11:44:34,228 User:System INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
11:44:34,679 User:System ERROR [alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
11:44:34,679 User:System ERROR [alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
11:44:35,704 User:System WARN  [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
11:44:35,736 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_06-b02; maximum heap size 508.063MB
11:44:35,738 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116
21-Aug-2008 11:44:48 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
21-Aug-2008 11:44:48 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
21-Aug-2008 11:44:49 org.apache.catalina.startup.Catalina start
INFO: Server startup in 87567 ms
INFO: Server startup in 87567 ms
I can now see the TomCat banner page at :8080, and YES, I get "My Alfresco Dashboard" at :8080/alfresco. Hooray!

I guess there are a couple of things I need to clear up: (1) get the firewall working with Alfresco, and (2) I think my hostname isn't set properly.

Kind regards,

Nigel

dsadowski
Champ in-the-making
Champ in-the-making
in 2.2 it's worth disabling link checker. It solved time out/mem heap problems and made my alfresco instance much more stable.

I tried a work around by adding an extra parameter -XX:MaxPermSize=256m in alfresco.sh startup script  which helped get rid of the mem heap errors and time outs but eventually turned link checker off until issues are resolved.

export JAVA_OPTS='-Xms128m -Xmx512m -XX:MaxPermSize=256m -server'

To disable link checker:
go to tomcat\webapps\alfresco\WEB-INF\classes\alfresco\linkvalidation-service-context.xml
set pollInterval to 0 (default is 5000)

JIRA link checker problem info
https://issues.alfresco.com/jira/browse/ETWOONE-106
https://issues.alfresco.com/jira/browse/ETWOTWO-135

Regards,
David