Hi,

after updating my Solr test installation from version 8.11.1 to 9.0.0 I am 
unable to start the Solr service when I am setting a custon temporary 
directory. I'm doing this by changing

-Djava.io.tmpdir="%SOLR_SERVER_DIR%\tmp"

to

-Djava.io.tmpdir="C:\Temp\Solr"

in the file 'solr.cmd'.

Regarding to the Process Monitor tool, there might be a bug with creating the 
path to the temporary folder, as the following output shows:
cmd.exe    7448    QueryDirectory    C:\Solr\server\tmp    NO SUCH FILE
cmd.exe    7448    CreateFile    C:\Solr\server\tmp    ACCESS DENIED
java.exe    7872    CreateFile    C:\Solr\server\-Djava.io.tmpdir=C:\Temp\    
NAME INVALID
java.exe    7872    CreateFile    C:\Solr\server\-Djava.io.tmpdir=C:\Temp\Solr  
  NAME INVALID

The StandardError output includes a corresponding message:
2022-06-21 09:39:20.112: java.lang.SecurityException: Unable to create 
temporary file or directory

When I'm creating the folder C:\Solr\server\tmp and allowing the service user 
write access, then the service is starting and using this folder as the 
temporary directory.

Am I doing something wrong or is this indeed a bug?

Best regards
Daniel

Reply via email to