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
• 6,960 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,620 points

Related Questions In Jenkins

0 votes
1 answer

Unable to start the virtual machine

It looks like that Host-Only Adapter is ...READ MORE

answered Dec 19, 2018 in Jenkins by Alan
+4 votes
7 answers

How to set the pipeline name and description for a Jenkinsfile?

You can rename pipeline jobs in jenkins ...READ MORE

answered Oct 11, 2018 in Jenkins by Hannah
• 18,030 points
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,400 points
0 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
• 50,440 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,620 points