{"id":428,"date":"2015-09-02T15:32:25","date_gmt":"2015-09-02T15:32:25","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/09\/02\/jenkins-troubleshooting\/"},"modified":"2021-11-19T07:00:34","modified_gmt":"2021-11-19T07:00:34","slug":"jenkins-troubleshooting","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/jenkins-troubleshooting\/","title":{"rendered":"Jenkins Troubleshooting Guide"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3369 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/09\/jenkins-troubleshooting.png\" alt=\"jenkins-troubleshooting\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/09\/jenkins-troubleshooting.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2015\/09\/jenkins-troubleshooting-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Jenkins Troubleshooting<\/strong><\/p>\n<p>Jenkins is one of the important CI tools which many organization used as part of their Build and DevOps infrasture. I am going to consolidate all the troubshooting techniques which can be used in order to find any issues related in jenkins.<\/p>\n<p><strong>Step 1.<\/strong> Take a look at Log generated by the jenkins and plugins via <a href=\"http:\/\/jenkins-master\/log\">http:\/\/jenkins-master\/log<\/a><\/p>\n<p>Note: Here you can also create your own logger and and set your custom log levels such as (severe, warning, info, config, file, finer, finest, all)<\/p>\n<p><strong>Step 2<\/strong>. Also, you can look at \/var\/log\/jenkins\/jenkins.log via doing &#8220;tail -f \/var\/log\/jenkins\/jenkins.log&#8221; and check carefully whats breaking it.<\/p>\n<p>Log file in windows &#8211;&nbsp;jenkins.err.log &amp;&nbsp;jenkins.out.log<\/p>\n<p>Slave log file in windows &#8211;&nbsp;logs\\slaves<\/p>\n<p><strong>Step 3.<\/strong> Check the system log file<\/p>\n<p>Step 4. Few Jenkins plugins which can you help you<br>\n<a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Monitoring\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Monitoring<\/a><\/p>\n<p><strong>Step 4.<\/strong> Make sure your Jenkins &amp; installed plugins version is installed with most uptodate stable release.<\/p>\n<p><strong>Some Common issues:<\/strong><br>\nIssues 1. If Jenkins hangs, follow <a href=\"http:\/\/jenkins-master\/log\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Jenkins+is+hanging<\/a><\/p>\n<p>Issues 2 Site is down with no 404 messages<br>\nCause- Jenkins had an Out of Memory (OOM) error causing the server to kill the jenkins instance<br>\nSolution: Restart server; Review heap logs to identify root cause of error<\/p>\n<p>Issues 3 Site is up however no jobs are displayed<br>\nCause 1: AWS Server rebooted but data volume did not mount properly<br>\nSolution: mount &lt;device&gt; &lt;path&gt; on the instance<\/p>\n<p>Issues 4 &#8211;&nbsp;java.lang.outofmemoryerror permgen space issues<\/p>\n<p>Solution &#8211;&nbsp;<a href=\"scm\/build-workflow-management\/jenkins\/jenkins-java-lang-outofmemoryerror-permgen-space-issues.html\">http:\/\/www.scmgalaxy.com\/scm\/build-workflow-management\/jenkins\/jenkins-java-lang-outofmemoryerror-permgen-space-issues.html<\/a><\/p>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_87653\"><iframe loading=\"lazy\"  id=\"_ytid_40698\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_87653\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Jenkins Troubleshooting Jenkins is one of the important CI tools which many organization used as part of their Build and DevOps infrasture. I am going to consolidate all the troubshooting&#8230; <\/p>\n","protected":false},"author":1,"featured_media":3369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[145,1505,1516,1512,1514,1513,1515,1510,293,1511],"class_list":["post-428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jenkins","tag-jenkins","tag-jenkins-error","tag-jenkins-error-solutions","tag-jenkins-issues","tag-jenkins-issues-solutions","tag-jenkins-problems","tag-jenkins-problems-solutions","tag-jenkins-troubleshooting","tag-troubleshooting","tag-troubleshooting-jenkins"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":25812,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/428\/revisions\/25812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/3369"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}