{"id":422,"date":"2015-04-04T10:21:36","date_gmt":"2015-04-04T04:51:36","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=422"},"modified":"2015-04-04T10:22:13","modified_gmt":"2015-04-04T04:52:13","slug":"jenkins-configuration-issue","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=422","title":{"rendered":"Jenkins Configuration Issue"},"content":{"rendered":"<p>I was trying to setup Jenkins web app inside the Tomcat server and it continuously gave me this error:<br \/>\n<code><br \/>\nSEVERE: Failed to initialize Jenkins<br \/>\nhudson.util.NoHomeDir<br \/>\n<\/code><\/p>\n<p>This I fixed by creating the folder &#8216;\/usr\/share\/tomcat7\/.jenkins&#8217;<br \/>\n<code><br \/>\nmkdir \/usr\/share\/tomcat7\/.jenkins<br \/>\n<\/code><\/p>\n<p>On redeploying Jenkins I again noticed the following error.<br \/>\n<code><br \/>\nWARNING: Failed to record boot attempts<br \/>\njava.io.FileNotFoundException: \/usr\/share\/tomcat7\/.jenkins\/failed-boot-attempts.txt (Permission denied)<br \/>\n<\/code><\/p>\n<p>I fixed this issue by giving full access to this folder.<br \/>\n<code><br \/>\nsudo chmod 777 \/usr\/share\/tomcat7\/.jenkins<br \/>\n<\/code><\/p>\n<p>I believe 777 is not a good approach in a production environment, but for development perspective it looks ok.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to setup Jenkins web app inside the Tomcat server and it continuously gave me this error: SEVERE: Failed to initialize Jenkins hudson.util.NoHomeDir This I fixed by creating the folder &#8216;\/usr\/share\/tomcat7\/.jenkins&#8217; mkdir \/usr\/share\/tomcat7\/.jenkins On redeploying Jenkins I again noticed the following error. WARNING: Failed to record boot attempts java.io.FileNotFoundException: \/usr\/share\/tomcat7\/.jenkins\/failed-boot-attempts.txt (Permission denied) I [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,27],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-java","category-linux-os"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=422"}],"version-history":[{"count":1,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":423,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/422\/revisions\/423"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}