title: Jenkins: Unable to start jenkins on an External Hard Drive
body: <p>I have Jenkins running on a Mac Mini. And I recently added an external hard drive and moved my jenkins data to it. So far so good. Everything worked ok.
  BUT yesterday I updated to Catalina and now jenkins will not start. If I move the data back to the mac mini hard drive, it will start no problem. I guess it a rights problem but it seems I have all the necessary rights.</p>
  
  <p>Can anyone help?</p>
  
  <p>Some info...
  - On the mac mini, there is only one user: OLAV
  - Jenkins is started using a plist file in ~/Library/LaunchAgents/  (in the users directory)
  - Jenkins is started as follows: launchctl load ~/Library/LaunchAgents/org.jenkins-launch.plist</p>
  
  <ul>
  <li>The plist file looks like this:</li>
  </ul>
  
  <p></p>
  
  <pre><code>&lt;key&gt;EnvironmentVariables&lt;/key&gt;
  &lt;dict&gt;
      &lt;key&gt;JENKINS_HOME&lt;/key&gt;
      &lt;string&gt;/Volumes/MacMiniEX/.jenkins&lt;/string&gt;
  &lt;/dict&gt;
  &lt;key&gt;Label&lt;/key&gt;
  &lt;string&gt;org.jenkins-launch&lt;/string&gt;
  &lt;key&gt;ProgramArguments&lt;/key&gt;
  &lt;array&gt;
      &lt;string&gt;/usr/libexec/java_home&lt;/string&gt;
      &lt;string&gt;-v&lt;/string&gt;
      &lt;string&gt;1.8&lt;/string&gt;
      &lt;string&gt;--exec&lt;/string&gt;
      &lt;string&gt;java&lt;/string&gt;
      &lt;string&gt;-jar&lt;/string&gt;
      &lt;string&gt;/Applications/jenkins/jenkins.war&lt;/string&gt;
      &lt;string&gt;--httpListenAddress=0.0.0.0&lt;/string&gt;
      &lt;string&gt;--httpPort=7070&lt;/string&gt;
  &lt;/array&gt;
  &lt;key&gt;RunAtLoad&lt;/key&gt;
  &lt;true/&gt;
  &lt;key&gt;UserName&lt;/key&gt;
  &lt;string&gt;Olav&lt;/string&gt;
  &lt;key&gt;StandardOutPath&lt;/key&gt;
  &lt;string&gt;/Users/Olav/desktop/stdout.log&lt;/string&gt;
  &lt;key&gt;StandardErrorPath&lt;/key&gt;
  &lt;string&gt;/Users/Olav/desktop/error.log&lt;/string&gt;
  </code></pre>
  
  <p></p>
  
  <ul>
  <li>And the error I get is as follows:</li>
  </ul>
  
  <blockquote>
    <p>2020-04-16 10:48:43.562+0000
    [id=1]    INFO    org.eclipse.jetty.util.log.Log#initialized: Logging
    initialized @331ms to org.eclipse.jetty.util.log.JavaUtilLog
    2020-04-16 10:48:43.678+0000 [id=1]   INFO    winstone.Logger#logInternal:
    Beginning extraction from war file 2020-04-16 10:48:43.705+0000
    [id=1]    WARNING winstone.Logger#logInternal: Failed to delete dirs
    /Volumes/MacMiniEX/.jenkins/war java.nio.file.FileSystemException:
    /Volumes/MacMiniEX/.jenkins/war: Operation not permitted  at
    sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
      at
    sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      at
    sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      at
    sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
      at
    sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
      at java.nio.file.Files.deleteIfExists(Files.java:1165)  at
    winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:330)
      at winstone.HostConfiguration.getWebRoot(HostConfiguration.java:265)
      at winstone.HostConfiguration.(HostConfiguration.java:84)     at
    winstone.HostGroup.initHost(HostGroup.java:66)    at
    winstone.HostGroup.(HostGroup.java:45)  at
    winstone.Launcher.(Launcher.java:167)   at
    winstone.Launcher.main(Launcher.java:355)     at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)     at
    Main._main(Main.java:375)     at Main.main(Main.java:151)</p>
  </blockquote>