I am trying to install Jenkins on a Tomcat 7 container.
When I try to open a Jenkins web application, I get the following error:
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.
Before starting Tomcat, I did chmod uog+rwx /home/myuser/jenkins . So, I suppose that Jenkins should be able to create a subdirectory there.
But obviously this is not possible.
How can I fix this problem?
Update 1:
lt -lt returns
drwxrwxrwx 2 root ec2-user 4096 Jun 23 10:25 jenkins
for /home/myuser/jenkins . /home/myuser/jenkins/work does not exist because Jenkins must create it.
Update 2: Just tried creating the work directory and running chmod uog+rwx on it. It did not help.
Update 3 : Additional Information:
- I need Jenkins to
- Perform lengthy tests at night (fast unit tests run before each
mvn install , slow tests run every night) and - over time, maintain software quality indicators (checkstyle, PMD, FindBugs, unit test, etc.).
- I have only one machine for this, and the Tomcat7 container is already installed there.
- At the moment, I do not want to invest extra money in the purchase of new cars.
The machine with the Tomcat7 container (and where I want to install Jenkins) is the Amazon EC2 micro-const (OS version is given below).
$ cat / etc / * - LSB_VERSION release = base-4.0-amd64: base 4.0-noarch: core-4.0-amd64: core-4.0-noarch: print-4.0-amd64: print-4.0-noarch Amazon Linux AMI Release 2013.03
Update 4 (06/29/2013 13:34 MSK): The yum list output does not contain the Jenkins / Hudson package.
source share