SOLR4 not saving on new drive F:

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

SOLR4 not saving on new drive F:

Good day All,

I moved my ALFRESCO/alf_data away from my drive C: to a new drive F: which is an external HDD but i noticed that the SOLR4 indexing is still saving on drive C: instead of the new drive F: even though my contentstore and all others are saving on the new drive F:. Please what could the problem be and how can i resolve it. Urgent please..

7 Replies
Highlighted
Master

Re: SOLR4 not saving on new drive F:

Your configuration inside the solrHome folder needs to be adapted to point to the correct location. Specifically the paths configured in the solrcore.properties files for the alfresco/archive SOLR core need to be adjusted. You may also have to adjust configuration in the SOLR 4 context XML inside the tomcat/conf/Catalina/localhost folder if you have moved any of the locations listed in that file.

Highlighted
Customer

Re: SOLR4 not saving on new drive F:

Hi:

An example for Axel's comment:

- Configuring contentstore and SOLR indices in Alfresco 5 - zylk 

Regards.

--C.

Highlighted
Member II

Re: SOLR4 not saving on new drive F:

Hi Axel,

After executing the above, Alfresco Tomcat server still does not move the SOLR4 to the new external HDD drive F:.

Instead i am getting the errors below when i check my error logs:

Could not load conf for core collection1:Error loading solr config from solr/collection1\conf\solrconfig.xml 

 

2017-10-23 10:13:44,131 ERROR [org.apache.solr.servlet.SolrDispatchFilter] [http-bio-8443-exec-3] nullSmiley Surprisedrg.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load core configuration for core collection1

            at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:753)

            at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307)

            at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)

            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)

            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)

            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

            at java.lang.Thread.run(Unknown Source)

Caused by: org.apache.solr.common.SolrException: Could not load core configuration for core collection1

            at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)

            at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)

            at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)

            at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)

            at java.util.concurrent.FutureTask.run(Unknown Source)

            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

            at java.util.concurrent.FutureTask.run(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            ... 1 more

Caused by: org.apache.solr.common.SolrException: Error loading solr config from F:/Alfresco/solr4\collection1\solrconfig.xml

            at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:148)

            at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:79)

            at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)

            ... 9 more

Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or 'F:\Alfresco\solr4\collection1\conf'

            at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)

            at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)

            at org.apache.solr.core.Config.<init>(Config.java:116)

            at org.apache.solr.core.Config.<init>(Config.java:86)

            at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:161)

            at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:144)

            ... 11 more

 Please what can i do next. This installation is on a windows platform.

Highlighted
Member II

Re: SOLR4 not saving on new drive F:

Hi Ceaser,

After executing the above, Alfresco Tomcat server still does not move the SOLR4 to the new external HDD drive F:.

Instead i am getting the errors below when i check my error logs:

 

 

Could not load conf for core collection1:Error loading solr config from solr/collection1\conf\solrconfig.xml 

 

2017-10-23 10:13:44,131 ERROR [org.apache.solr.servlet.SolrDispatchFilter] [http-bio-8443-exec-3] nullSmiley Surprisedrg.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load core configuration for core collection1

            at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:753)

            at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:307)

            at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)

            at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:613)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

            at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)

            at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)

            at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)

            at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

            at java.lang.Thread.run(Unknown Source)

Caused by: org.apache.solr.common.SolrException: Could not load core configuration for core collection1

            at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:66)

            at org.apache.solr.core.CoreContainer.create(CoreContainer.java:554)

            at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)

            at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)

            at java.util.concurrent.FutureTask.run(Unknown Source)

            at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

            at java.util.concurrent.FutureTask.run(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

            ... 1 more

Caused by: org.apache.solr.common.SolrException: Error loading solr config from F:/Alfresco/solr4\collection1\solrconfig.xml

            at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:148)

            at org.apache.solr.core.ConfigSetService.createSolrConfig(ConfigSetService.java:79)

            at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:61)

            ... 9 more

Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or 'F:\Alfresco\solr4\collection1\conf'

            at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)

            at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)

            at org.apache.solr.core.Config.<init>(Config.java:116)

            at org.apache.solr.core.Config.<init>(Config.java:86)

            at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:161)

            at org.apache.solr.core.SolrConfig.readFromResourceLoader(SolrConfig.java:144)

            ... 11 more

 Please what can i do next. This installation is on a windows platform

Highlighted
Advanced II

Re: SOLR4 not saving on new drive F:

Also being discussed at Google Groups 

Highlighted
Advanced II

Re: SOLR4 not saving on new drive F:

Please, share the content of all the files you edited.

We can take a look and try to find what is wrong.

Highlighted
Member II

Re: SOLR4 not saving on new drive F:

Good day All,

Please find attached the contents of the all the files edited:

SOLRCORE_WORKSPACE-SPACESTORE.PROPERTIES:

#

  1. solrcore.properties - used in solrconfig.xml

#

  1. data is in ${data.dir.root}/${data.dir.store}

data.dir.root=F:/Alfresco/alf_data/solr4/index

data.dir.store=workspace/SpacesStore

enable.alfresco.tracking=true

#

  1. Alfresco version

#

alfresco.version=5.0.0

#

  1. Properties loaded during alfresco tracking

#

alfresco.host=localhost

alfresco.port=8282

alfresco.port.ssl=8443

alfresco.baseUrl=/alfresco

alfresco.cron=0/15 * * * * ? *

alfresco.stores=workspace://SpacesStore

#alfresco.index.transformContent=false

#alfresco.ignore.datatype.1=d:content

alfresco.lag=1000

alfresco.hole.retention=3600000

  1. alfresco.hole.check.after is not used yet

  2. It will reduce the hole checking load

alfresco.hole.check.after=300000

alfresco.batch.count=1000

  1. encryption

  1. none, https

alfresco.secureComms=https

  1. ssl

alfresco.encryption.ssl.keystore.type=JCEKS

alfresco.encryption.ssl.keystore.provider=

alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore

alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties

alfresco.encryption.ssl.truststore.type=JCEKS

alfresco.encryption.ssl.truststore.provider=

alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore

alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties

  1. Tracking

alfresco.corePoolSize=8

alfresco.maximumPoolSize=-1

alfresco.keepAliveTime=120

alfresco.threadPriority=5

alfresco.threadDaemon=true

alfresco.workQueueSize=-1

  1. HTTP Client

alfresco.maxTotalConnections=200

alfresco.maxHostConnections=200

alfresco.socketTimeout=360000

  1. SOLR caching

solr.filterCache.size=256

solr.filterCache.initialSize=128

solr.queryResultCache.size=1024

solr.queryResultCache.initialSize=1024

solr.documentCache.size=1024

solr.documentCache.initialSize=1024

solr.queryResultMaxDocsCached=2048

solr.authorityCache.size=128

solr.authorityCache.initialSize=64

solr.pathCache.size=256

solr.pathCache.initialSize=128

solr.ownerCache.size=128

solr.ownerCache.initialSize=64

solr.readerCache.size=128

solr.readerCache.initialSize=64

solr.deniedCache.size=128

solr.deniedCache.initialSize=64

  1. SOLR

solr.maxBooleanClauses=10000

  1. Batch fetch

alfresco.transactionDocsBatchSize=500

alfresco.nodeBatchSize=100

alfresco.changeSetAclsBatchSize=500

alfresco.aclBatchSize=100

alfresco.contentReadBatchSize=4000

alfresco.contentUpdateBatchSize=1000

  1. Warming

solr.filterCache.autowarmCount=32

solr.authorityCache.autowarmCount=4

solr.pathCache.autowarmCount=32

solr.deniedCache.autowarmCount=0

solr.readerCache.autowarmCount=0

solr.ownerCache.autowarmCount=0

solr.queryResultCache.autowarmCount=4

solr.documentCache.autowarmCount=512

solr.queryResultWindowSize=512

#

  1. TODO

#

  1. cross language support

  2. locale expansion

  3. logging check report ....

#

#

alfresco.doPermissionChecks=true

#

  1. Metadata pulling control

#

alfresco.metadata.skipDescendantDocsForSpecificTypes=false

alfresco.metadata.ignore.datatype.0=cmSmiley Tongueerson

alfresco.metadata.ignore.datatype.1=app:configurations

alfresco.metadata.skipDescendantDocsForSpecificAspects=false

#alfresco.metadata.ignore.aspect.0=

alfresco.topTermSpanRewriteLimit=1000

#

  1. Suggestions

#

solr.suggester.enabled=true

  1. -1 to disable suggester build throttling

solr.suggester.minSecsBetweenBuilds=3600

#

  1. Limit the maximum text size of transformed content sent to the index - in

bytes

#

alfresco.contentStreamLimit=10000000

SOLCORE_ARCHIVE-SPACESTORE.PROPERTIES:

#

  1. solrcore.properties - used in solrconfig.xml

#

  1. data is in ${data.dir.root}/${data.dir.store}

data.dir.root=F:/Alfresco/alf_data/solr4/index

data.dir.store=archive/SpacesStore

enable.alfresco.tracking=true

#

  1. Alfresco version

#

alfresco.version=5.0.0

#

  1. Properties loaded during alfresco tracking

#

alfresco.host=localhost

alfresco.port=8282

alfresco.port.ssl=8443

alfresco.baseUrl=/alfresco

alfresco.cron=0/15 * * * * ? *

alfresco.stores=archive://SpacesStore

#alfresco.index.transformContent=false

#alfresco.ignore.datatype.1=d:content

alfresco.lag=1000

alfresco.hole.retention=3600000

  1. alfresco.hole.check.after is not used yet

  2. It will reduce the hole checking load

alfresco.hole.check.after=300000

alfresco.batch.count=1000

  1. encryption

  1. none, https

alfresco.secureComms=https

  1. ssl

alfresco.encryption.ssl.keystore.type=JCEKS

alfresco.encryption.ssl.keystore.provider=

alfresco.encryption.ssl.keystore.location=ssl.repo.client.keystore

alfresco.encryption.ssl.keystore.passwordFileLocation=ssl-keystore-passwords.properties

alfresco.encryption.ssl.truststore.type=JCEKS

alfresco.encryption.ssl.truststore.provider=

alfresco.encryption.ssl.truststore.location=ssl.repo.client.truststore

alfresco.encryption.ssl.truststore.passwordFileLocation=ssl-truststore-passwords.properties

  1. Tracking

alfresco.corePoolSize=1

alfresco.maximumPoolSize=-1

alfresco.keepAliveTime=120

alfresco.threadPriority=5

alfresco.threadDaemon=true

alfresco.workQueueSize=-1

  1. HTTP Client

alfresco.maxTotalConnections=200

alfresco.maxHostConnections=200

alfresco.socketTimeout=360000

  1. SOLR caching

solr.filterCache.size=256

solr.filterCache.initialSize=128

solr.queryResultCache.size=1024

solr.queryResultCache.initialSize=1024

solr.documentCache.size=1024

solr.documentCache.initialSize=1024

solr.queryResultMaxDocsCached=2048

solr.authorityCache.size=128

solr.authorityCache.initialSize=64

solr.pathCache.size=256

solr.pathCache.initialSize=128

solr.ownerCache.size=128

solr.ownerCache.initialSize=64

solr.readerCache.size=128

solr.readerCache.initialSize=64

solr.deniedCache.size=128

solr.deniedCache.initialSize=64

  1. SOLR

solr.maxBooleanClauses=10000

  1. Batch fetch

alfresco.transactionDocsBatchSize=100

alfresco.nodeBatchSize=10

alfresco.changeSetAclsBatchSize=100

alfresco.aclBatchSize=10

alfresco.contentReadBatchSize=4000

alfresco.contentUpdateBatchSize=1000

  1. Warming

solr.filterCache.autowarmCount=32

solr.authorityCache.autowarmCount=4

solr.pathCache.autowarmCount=32

solr.deniedCache.autowarmCount=0

solr.readerCache.autowarmCount=0

solr.ownerCache.autowarmCount=0

solr.queryResultCache.autowarmCount=4

solr.documentCache.autowarmCount=512

solr.queryResultWindowSize=512

#

  1. TODO

#

  1. cross language support

  2. locale expansion

  3. logging check report ....

#

#

alfresco.doPermissionChecks=true

#

  1. Metadata pulling control

#

alfresco.metadata.skipDescendantDocsForSpecificTypes=false

alfresco.metadata.ignore.datatype.0=cmSmiley Tongueerson

alfresco.metadata.ignore.datatype.1=app:configurations

alfresco.metadata.skipDescendantDocsForSpecificAspects=false

#alfresco.metadata.ignore.aspect.0=

#

  1. Suggestions

#

solr.suggester.enabled=false

  1. -1 to disable suggester build throttling

solr.suggester.minSecsBetweenBuilds=3600

#

  1. Limit the maximum text size of transformed content sent to the index - in

bytes

#

alfresco.contentStreamLimit=10000000

SOLR4.XML:

Kindly take note that the new drive F: is an external HDD, could that be

affecting it.

BR,

Ejike Chiboka

08166516400; 08022224537

BlueFlame Engineering Ltd

www.blueflameengineering.com