cancel
Showing results for 
Search instead for 
Did you mean: 

Issue of set dir.root to a mounted NAS space

lesoft
Champ in-the-making
Champ in-the-making
Hi -

When we set dir.root to a local directory (eg: dir.root=/opt/alfresco/alf_data), Alfresco startup just fine. But, when we change dir.root to a mounted NAS storage (eg: dir.root=/alf_data_cluster), it error out during Alfresco startup. The mounted NAS storage directory is readable and writable by alfresco UNIX user.

Here's the error message

2009-08-11 17:15:33,949 INFO  [STDOUT] 17:15:33,949 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /alf_data_cluster
2009-08-11 17:15:33,983 INFO  [STDOUT] 17:15:33,983 User:System ERROR [repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
2009-08-11 17:15:33,983 INFO  [STDOUT] 17:15:33,983 User:System ERROR [repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
2009-08-11 17:15:33,988 INFO  [STDOUT] 17:15:33,986 User:System ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.
        at org.alfresco.repo.admin.ConfigurationChecker.check (ConfigurationChecker.java:312)
        at org.alfresco.repo.admin.ConfigurationChecker.access$000 (ConfigurationChecker.java:72)
        at org.alfresco.repo.admin.ConfigurationChecker$1.execute (ConfigurationChecker.java:178)
        at org.alfresco.repo.transaction.RetryingTransactionHelper. doInTransaction(RetryingTransactionHelper.java:322)
        at org.alfresco.repo.transaction.RetryingTransactionHelper. doInTransaction(RetryingTransactionHelper.java:248)
        at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap (ConfigurationChecker.java:182)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent (AbstractLifecycleBean.java:62)
        at org.springframework.context.event. SimpleApplicationEventMulticaster$1.run (SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute (SyncTaskExecutor.java:49)
        at org.springframework.context.event. SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support. AbstractApplicationContext.publishEvent (AbstractApplicationContext.java:246)

Our environment:
OS: SuSE 10 SP2
AS: JBoss 4.3
DM: Alfresco 3.1
JDK: Sun JDK 1.6 U15
DB: Oracle

Appreciate any tips you can provide.

Thanks,
Tuan
1 REPLY 1

pmonks
Star Contributor
Star Contributor
If you've previously started Alfresco it will have populated the alf_data directory with some default content.  If you then subsequently move the alf_data directory to another location, you must either:
  1. Copy over the contents of the old alf_data directory to the new alf_data directory.
  2. OR
  3. Wipe the alfresco database.
The database and alf_data directory are two sides of a coin, so changing one without the other (in any way) will be detected by Alfresco as a fatal error (the persisted repository is not valid).

Cheers,
Peter
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.