cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco won't run after server loses power

statman99
Champ in-the-making
Champ in-the-making
Alfresco-3.4.d
MySQL
CentOS

Alfresco was running fine but when our server lost power, after the system was brought back up, Alfresco wouldn’t run.

The Share page error after attempting to login is

"The remote server may be unavailable or your authentication details have not been recognized"

and the alfresco page gives a 404 error the requested source () is not available.

A check of host:8080 showed that Tomcat is running.

From the command line, MySQL is running and I ran mysqlcheck on the alfresco database and it checked out OK.

Errors in the log file are:

11:07:10,245 WARN  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
11:07:10,545 WARN  [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent]     Index for avm store sitestore is out of date
11:07:10,928 WARN  [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent]     Index for avm store @paramount@sitestore is out of date
11:07:11,154 WARN  [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent]     Index for avm store @warnerbros@sitestore is out of date
11:07:11,768 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /mnt/nas/alfresco/alf_data
11:07:12,131 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 7 stores.
11:07:12,131 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
11:07:12,131 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
11:07:12,131 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
11:07:12,135 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 05160014 Ensure that the 'dir.root' property is pointing to the correct data location.

And

11:07:56,068 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50500; nested exception is:
        java.net.BindException: Address already in use


in
<alfresco>/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

I gave the direct location
#dir.root=./alf_data
dir.root=/mnt/nas/alfresco/alf_data

and set
index.recovery.mode=AUTO

And alfresco still won’t run.

The only thing that is a bit out ot the ordinary is that I am running multi-tenancy.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
This is the error you need to worry about.

11:07:56,068 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRemoteService' defined in class path resource [alfresco/remote-services-context.xml]: Invocation of init method failed; nested exception is java.rmi.server.ExportException: Port already in use: 50500; nested exception is:
java.net.BindException: Address already in use

Usually it happens because you are trying to run two instances of alfresco at once.   It can also happen if something else grabs that port.   Either find out what's using it and shut it down or move alfresco.

Also please note that you should not be hacking files witin WEB-INF that may be the cause of your other configuration errors.

statman99
Champ in-the-making
Champ in-the-making
I rebooted the system and used

ps -e

to see if there were any other instances of Alfresco. There was only one java CMD with PID 2444 running so that must be Alfresco.

I tried netstat to see if another program is using 50500.

tcp        0      0 ::ffff:127.0.0.1:50500      :::*                        LISTEN      2444/java

2444 is Alfresco's pid so I assume Alfresco does have port 50500?

The error messages themselves state

You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.

I tried both FULL and AUTO from the default VALIDATE

and

Ensure that the 'dir.root' property is pointing to the correct data location.

So i changed it to an explicit location

I've tried it with the original settings as well and the error messages are the same. I only went into the WEB-INF files when Alfresco wasn't working and did the editing as per the suggestions of error messages themselves.

jamil
Champ in-the-making
Champ in-the-making

I'm using windows. For linux, you may find similar commands.
1. In MS-DOS, send command "netstat -ao". You can get network information for all processes.
2. Find out the one using port 1098, get the PID.
3. Find out the process with the PID you just run this(3660 is example PID) command "taskkill /F /PID 3660".