cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco on startup in Lunix

jaec
Champ in-the-making
Champ in-the-making
Hi all.

I've put alfresco startup script in my fedora core boot scripts services directory, alfresco seems to be started when the computer starts but an excepcion is thrown, the exception is related to the database connection, i have a clue about what happened, the pool isn't created but I don't know why, the mysql service is supossed to be started after alfresco, that's why i don't know what to do.

This is the stack trace:
10:27:40,709 ERROR [org.hibernate.util.JDBCExceptionReporter] Communications link failure due to underlying exception:

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.SocketException: Network is unreachable

STACKTRACE:

java.net.SocketException: java.net.SocketException: Network is unreachable
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
    at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
    at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)

Anybody can put me in the right direction?

Best regards.
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
The mysql service needs to start BEFORE alfresco.

jaec
Champ in-the-making
Champ in-the-making
The mysql service needs to start BEFORE alfresco.
Sorry, I'm not an english native-speaker. The mysql service is started before, that's why I don't know what's happening.

Best regards.

gavinc
Champ in-the-making
Champ in-the-making
Ok.

Have a read of the following post: http://forums.alfresco.com/viewtopic.php?t=55

It has some information about half way down regarding the MYSQLD_OPTIONS="–skip-networking" configuration setting in /etc/sysconfig/mysqld

Hope that helps

jaec
Champ in-the-making
Champ in-the-making
Ok.

Have a read of the following post: http://forums.alfresco.com/viewtopic.php?t=55

It has some information about half way down regarding the MYSQLD_OPTIONS="–skip-networking" configuration setting in /etc/sysconfig/mysqld

Hope that helps
I will chek it, but my problem is a little bit different, when I start alfresco manually, it works, only fails when I try tu run at startup, I know this is more an OS config issue but i wanted to know if someone had a similar problem.

Best regards.

miguel_gil_mart
Champ in-the-making
Champ in-the-making
I have this same problem. I added alfrescoctl.sh to System V init system, but it does not work.

Anybody succeeded with this topic?