cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Unable to create core [master_xyz_xyzProductType_flip] Caused by: Failed to detect instance dir

phoude
Participant
5,404

Hi I am having an error whenever I try to perform a SOLR full index:

org.apache.solr.common.SolrException: Error CREATEing SolrCore 'master_xyz_xyzProductType_flip': Unable to create core [master_xyz_xyzProductType_flip] Caused by: Failed to detect instance dir

Full stack trace available in attachment st.txt. Nothing else shows up in the error.

I am using SAP Commerce 2011 P10.

Accepted Solutions (1)

Accepted Solutions (1)

mansurarisoy
Contributor

Check your solrconfig.xml from configuration. It should contain similar configuration to the following

<restManager>
	<str name="storageIO">de.hybris.platform.solr.rest.IndexAwareStorageIO</str>
	<str name="collectionName">${solr.core.collection:}</str>
	<str name="instanceDir">${solr.core.instanceDir}</str>
</restManager>
Your error may stem from the missing configuration for instanceDir. If it's missing, update it as above. Then restart the solr. This should resolve your issue.
If that's not the case, compare your solrconfig.xml and schema.xml from folder bin/modules/search-and-navigation/solrserver/resources/solr/8.10/server/server/solr/configsets/default Note: The version (8.10 part in the folder path) may differ for your Commerce Version.
phoude
Participant

Thank you so much. You have no idea how much time I spent searching for the root cause. Could not find meaningful documentation or help online.

mansurarisoy
Contributor
0 Kudos

I experienced the same, know the feeling 🙂 Glad to help.

Answers (2)

Answers (2)

gajendranath
Explorer
0 Kudos

I fixed this issue recently in solr 8.11 version by copying configsets directory from the path: /sapcommerce_instance/hybris/config/solr/instances/default/configsets/

into destination path: /var/solr/data

After adding configsets dir to /var/solr/data, full indexing start woking and core created successfully without any error.


Thanks

kamilakotula_kps85
Discoverer
0 Kudos

Hi,

I have the same issue with 2105.11 and Solr version 8.11 (standalone) that was installed on the server directly from hybris\bin\modules\search-and-navigation\solrserver\resources\solr\8.11\server

I checked files and directories permissions also mentioned <str name="instanceDir">${solr.core.instanceDir}</str>

is there in xml. Is this a known issue? Or how that can be fixed?

Thank you and regards,
Kamila Kotula

kamilakotula_kps85
Discoverer
0 Kudos

This issue was resolved by coping ootb Solr solrserver extension from current SAP Commerce version.