on 2022 Apr 01 2:30 PM
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.
Request clarification before answering.
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.You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Here is some official upgrade doc on the topic: https://help.sap.com/docs/SAP_COMMERCE/a74589c3a81a4a95bf51d87258c0ab15/fc4a470a49cd4070ba08c7f31b8e...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.