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,900 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 14,080 points
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,520 points
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

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

I think this can help you out. Set ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 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

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.