title: Jenkins installation - Unable to create the home directory despite its existence and writeability
body: <p>I'm trying to install Jenkins on a Tomcat 7 container.</p>
  
  <p>When I try to open the Jenkins web app I get following error:</p>
  
  <pre><code>Unable to create the home directory '/home/myuser/jenkins/work'. This is most 
  likely a permission problem.
  
  To change the home directory, use JENKINS_HOME environment variable or set 
  the JENKINS_HOME system property. See Container-specific documentation for 
  more details of how to do this.
  </code></pre>
  
  <p>Before starting Tomcat, I did <code>chmod uog+rwx /home/myuser/jenkins</code>. So, I suppose that Jenkins should be able to create a subdirectory there.</p>
  
  <p>But obviously it can't.</p>
  
  <p>How can I fix this problem?</p>
  
  <p><strong>Update 1:</strong></p>
  
  <p><code>lt -lt</code> returns </p>
  
  <p><code>drwxrwxrwx 2 root     ec2-user    4096 Jun 23 10:25 jenkins</code></p>
  
  <p>for <code>/home/myuser/jenkins</code>. <code>/home/myuser/jenkins/work</code> doesn't exist because Jenkins is supposed to create it.</p>
  
  <p><strong>Update 2:</strong> Just tried to create the <code>work</code> directory and to run <code>chmod uog+rwx</code> on it. It didn't help.</p>
  
  <p><strong>Update 3</strong>: Additional information:</p>
  
  <ol>
  <li>I need Jenkins in order to
  <ol>
  <li>run lengthy tests in the night (fast unit tests are run before every <code>mvn install</code>, slow tests are executed every night) and</li>
  <li>save software quality metrics (checkstyle, PMD, FindBugs, unit test coverage etc.) over time.</li>
  </ol></li>
  <li>I have only one machine available for that and there is a Tomcat7 container installed there already.</li>
  <li>At the moment, I don't want to invest additional money into buying new machines.</li>
  <li><p>The machine with the Tomcat7 container (and where I want Jenkins to be installed) is an Amazon EC2 microinstance (OS version is given below).</p>
  
  <p>$ cat /etc/*-release
  LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
  Amazon Linux AMI release 2013.03</p></li>
  </ol>
  
  <p><strong>Update 4 (29.06.2013 13:34 MSK):</strong> The output of <code>yum list</code> does not contain any Jenkins/Hudson package.</p>