title: Unable to set up my own Stanford CoreNLP server with error "Could not delete shutdown key file"
body: <p>I try to set up my own Stanford CoreNLP server following the <a href="https://stanfordnlp.github.io/CoreNLP/corenlp-server.html" rel="nofollow noreferrer">official guide</a>. However, I am not able to start the server using the following command:</p>
  
  <pre><code>java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
  </code></pre>
  
  <p>I paste the error messages below:</p>
  
  <pre><code>my_server_name$ java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000
  [main] INFO CoreNLP - --- StanfordCoreNLPServer#main() called ---
  [main] INFO CoreNLP - setting default constituency parser
  [main] INFO CoreNLP - warning: cannot find edu/stanford/nlp/models/srparser/englishSR.ser.gz
  [main] INFO CoreNLP - using: edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz instead
  [main] INFO CoreNLP - to use shift reduce parser download English models jar from:
  [main] INFO CoreNLP - http://stanfordnlp.github.io/CoreNLP/download.html
  Exception in thread "main" java.lang.IllegalStateException: Could not delete shutdown key file
  at edu.stanford.nlp.pipeline.StanfordCoreNLPServer.&lt;init&gt;(StanfordCoreNLPServer.java:195)
  at edu.stanford.nlp.pipeline.StanfordCoreNLPServer.main(StanfordCoreNLPServer.java:1323)
  [Thread-0] INFO CoreNLP - CoreNLP Server is shutting down.
  </code></pre>
  
  <p>The main problem is the IllegalSstateException: Could not delete shutdown key file. I just wonder whether the cause of this problem is the sudo access. The official guide doesn't explicitly state this command needs sudo access. </p>
  
  <p>I want to ask 1) whether the above command requires the sudo access and 2) if that command doesn't need sudo access, what could be the potential error for my IllegalSstateException. </p>
  
  <p>Thanks.</p>
  
  <p>PS: I am running on a server with Ubuntu 16.04.3 LTS. </p>