An error Unable to create the home directory JENKINS HOME

0 votes
I tried starting Jenkins on another user,

the jenkins war is running on a tomcat, killing the server and restarting after exporting JENKINS_HOME is giving me an error “Unable to create the home directory ‘JENKINS_HOME’”
Jul 19, 2018 in Jenkins by Nilesh
• 7,040 points

1 answer to this question.

0 votes

This is most probably a permission problem.

You can use the following way to start Jenkins on another user

 Set an Environment Variable JENKINS_HOME pointing to the .jenkinsfolder and run the Jenkins command.

The shell should be like

export JENKINS_HOME=/usr/jhon/.jenkins
java -jar jenkins.war

The batch should be like

SET JENKINS_HOME=C:\users\jhon\.jenkins
 java -jar jenkins.war
answered Jul 19, 2018 by Kalgi
• 2,680 points

Related Questions In Jenkins

0 votes
1 answer
+1 vote
2 answers

I'm unable to build my code in Jenkins. Getting the error shown below.

Hi, @Ashutosh, Do you have a pom.xml in ...READ MORE

answered Aug 3, 2020 in Jenkins by Gitika
• 65,950 points
0 votes
2 answers

Unable to start the virtual machine

This means the adapter is trying to ...READ MORE

answered Aug 25, 2020 in Jenkins by Pistle
• 1,000 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
0 votes
2 answers

How can I point Jenkins to another .jenkins home directory?

Here are the options you have: a) Assuming ...READ MORE

answered Aug 7, 2019 in Jenkins by Sirajul
• 59,070 points
0 votes
1 answer

How to rebuild an item on Jenkins pipeline

Yes you can, its pretty simple actually. Go ...READ MORE

answered Jul 10, 2018 in Jenkins by Kalgi
• 2,680 points