Hello,
I am trying to upgrade SOLR from version 8.11.1 to 9.0.0. When I try to create 
a new index on Solr 9, I'm getting an Read access denied error.

We are storing the core data on a shared drive mount under systems D:\ drive as 
D:\SolrHomeDrive\ [created via mlink pointing to 
\\206.XXX.XXX.XXX\\SearchData1<file://206.XXX.XXX.XXX/SearchData1>]. This is 
done as Solr 8 onwards UNC path is note supported.
Have set SOLR_OPTS=%SOLR_OPTS% -Dsolr.allowPaths=* to allow any Drive letter to 
be used.

I have validated to make sure the user account under which the Solr Java 
process runs, has Administrator rights on the servers and File Control 
permissions on the folders (D drive & the shared drive).

Index creation for _default configset:
Request:
http://localhost:8983/solr/admin/cores?action=CREATE&name=tech_default&configSet=_default

Response:

   {

  "responseHeader":{

    "status":400,

    "QTime":1385},

  "error":{

    "metadata":[

      "error-class","org.apache.solr.common.SolrException",

      "root-error-class","java.security.AccessControlException"],

    "msg":"Error CREATEing SolrCore 'tech_default': Unable to create core 
[tech_default] Caused by: access denied (\"java.io.FilePermission\" 
\"\\\\206.XXX.XXX.XXX\\SearchData1\\Master\\tech_default\\data\\snapshot_metadata\<file://206.XXX.XXX.XXX/SearchData1/Master/tech_default/data/snapshot_metadata/>"
 \"read\")",

    "code":400}}

               Observation:

·        Even though the request fails, the core folders 
"tech_default\data\snapshot_metadata" is still created under the mount path.

·        Also on the error message, the Drive path is interpreted as the UNC 
path.

My local setup:
               OS: Windows 10
               Solr Start up --> solr start -p 8983 -s D:\SolrHomeDrive\Master 
-m 2g -a "-Denable.master=true -Ddisable.configEdit=true"
                              Note: D:\SolrHomeDrive folder is the shared mount 
"\\206.XXX.XXX.XXX\SearchData1\<file://206.XXX.XXX.XXX/SearchData1/>"

If I change the storage to a local drive folder, the index creation works fine, 
but not when on shared mount. Also, this issue is not observed with 8.11.1 
version even on shared mount.

Your kind assistance will be greatly appreciated!!

-Santosh

Reply via email to