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,060 points
3,534 views

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,770 points
5,642 views
0 votes
0 answers

I am unable to install packages on jenkins it was showing "An error occurred during installation: Forbidden"

Please let me know how to fix ...READ MORE

Dec 9, 2021 in Jenkins by anonymous
• 120 points
1,963 views
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
915 views
+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
4,035 views
+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,230 points
5,005 views
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
4,268 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP