AnsweredAssumed Answered

Is possible to change the Default data folder?

Question asked by subemontes on Oct 14, 2008
Latest reply on Oct 15, 2008 by subemontes
Good day to all:
looking at custom.repository.properties file, I have seen the dir.root element…

Was wondering if changing the "default" filesystem for ALL alfresco was as easy as change that line. :shock:

I changed the C:/alfresco by \\server\share … but it trows and exception :x
12:38:36,201 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
12:38:38,310 WARN  [org.alfresco.repo.node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.
12:38:38,310 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: \172.16.1.103alfresco$alf_data
12:38:38,404 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 5 stores.
12:38:38,404 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
12:38:38,404 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
12:38:38,404 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
12:38:38,404 ERROR [org.springframework.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)

Seems that he "deleted" the \ in the share… so i changed it to // and still didnt work.
So I just "escaped" the \ to \\\\IP\\share/alf_data
And here's the log (after copying the files from c:)
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1.doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeDeletions
14-oct-2008 12:52:05 org.apache.coyote.http11.Http11AprProtocol init
INFO: Inicializando Coyote HTTP/1.1 en puerto http-80
14-oct-2008 12:52:05 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 734 ms
14-oct-2008 12:52:05 org.apache.catalina.core.StandardService start
INFO: Arrancando servicio Catalina
14-oct-2008 12:52:05 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
14-oct-2008 12:52:05 org.apache.catalina.core.StandardHost start
INFO: Desactivada la validaci=n XML
14-oct-2008 12:52:05 org.apache.catalina.startup.HostConfig deployWAR
INFO: Despliegue del archivo alfresco.war de la aplicaci=n web
20.954: [GC 393216K->21641K(983040K), 0.0890036 secs]
12:52:26,627 User:System WARN  [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating
new one
22.957: [GC 52391K->22791K(983040K), 0.0735908 secs]
23.031: [Full GC 22791K->22510K(983040K), 0.3859800 secs]
12:52:30,502 User:System INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.alfresco
.repo.domain.hibernate.dialect.AlfrescoSQLServerDialect.
12:52:34,455 User:System INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
12:52:37,018 User:System INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root')
is: \\172.16.1.103\alfresco$\alf_data
12:52:37,065 User:System INFO  [admin.patch.PatchExecuter] Comprobando si hay parches para aplicar …
12:52:37,627 User:System INFO  [repo.module.ModuleServiceImpl] Found 0 module(s).
12:52:38,237 User:System INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum he
ap size 960,000MB
12:52:38,237 User:System INFO  [service.descriptor.DescriptorService] Alfresco started (Community Network): Cu
rrent version 2.9.0 (B 683) schema 116 - Installed version 2.9.0 (B 683) schema 116
14-oct-2008 12:52:43 org.apache.coyote.http11.Http11AprProtocol start
INFO: Arrancando Coyote HTTP/1.1 en puerto http-80
14-oct-2008 12:52:43 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
14-oct-2008 12:52:43 org.apache.catalina.startup.Catalina start
INFO: Server startup in 38375 ms

So, in the result, seems that scaping the \ works fine.

¿ Anyone can confirm me if that work for them and what's the real mean of what I have done ?

Outcomes