{"id":2006,"date":"2017-12-07T07:55:05","date_gmt":"2017-12-07T07:55:05","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2006"},"modified":"2021-02-27T09:30:34","modified_gmt":"2021-02-27T09:30:34","slug":"git-polling-log-java-io-ioexception-error2-no-such-file-or-director","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/","title":{"rendered":"Git Polling Log java.io.IOException: error=2, No such file or director"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Git Polling Log java.io.IOException: error=2, No such file or director<\/strong><br \/>\nError<br \/>\nStarted on Sep 15, 2015 9:57:00 AM<br \/>\nUsing strategy: Default<br \/>\n[poll] Last Built Revision: Revision 2c06c1d705f61e2654d7f30131d8205d6b755d09 (refs\/remotes\/origin\/master)<br \/>\n> \/mnt\/jenkins\/git\/2.3.1\/bin\/git &#8211;version # timeout=10<br \/>\n> \/mnt\/jenkins\/git\/2.3.1\/bin\/git ls-remote -h server.com\/repo-provisioning.git master # timeout=10<br \/>\nFATAL: hudson.plugins.git.GitException: Error performing command: \/mnt\/jenkins\/git\/2.3.1\/bin\/git ls-remote -h replica.int.devsnc.com\/devsnc-provisioning.git master<br \/>\nhudson.util.IOException2: hudson.plugins.git.GitException: Error performing command: \/mnt\/jenkins\/git\/2.3.1\/bin\/git ls-remote -h http:\/\/server\/repo-provisioning.git master<br \/>\nat hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:527)<br \/>\nat hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:384)<br \/>\nat hudson.scm.SCM.poll(SCM.java:401)<br \/>\nat hudson.model.AbstractProject._poll(AbstractProject.java:1433)<br \/>\nat hudson.model.AbstractProject.poll(AbstractProject.java:1336)<br \/>\nat hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:515)<br \/>\nat hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:544)<br \/>\nat hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)<br \/>\nat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)<br \/>\nat java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<br \/>\nat java.util.concurrent.FutureTask.run(FutureTask.java:138)<br \/>\nat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)<br \/>\nat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)<br \/>\nat java.lang.Thread.run(Thread.java:662)<br \/>\nCaused by: hudson.plugins.git.GitException: Error performing command: \/mnt\/jenkins\/git\/2.3.1\/bin\/git ls-remote -h http:\/\/server\/repo-provisioning.git master<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1464)<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1245)<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1143)<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1134)<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2139)<br \/>\nat hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:576)<br \/>\nat hudson.plugins.git.GitSCM.compareRemoteRevisionWith(GitSCM.java:525)<br \/>\n&#8230; 13 more<br \/>\nCaused by: java.io.IOException: Cannot run program &#8220;\/mnt\/jenkins\/git\/2.3.1\/bin\/git&#8221;: java.io.IOException: error=2, No such file or directory<br \/>\nat java.lang.ProcessBuilder.start(ProcessBuilder.java:470)<br \/>\nat hudson.Proc$LocalProc.<init>(Proc.java:244)<br \/>\nat hudson.Proc$LocalProc.<init>(Proc.java:216)<br \/>\nat hudson.Launcher$LocalLauncher.launch(Launcher.java:803)<br \/>\nat hudson.Launcher$ProcStarter.start(Launcher.java:381)<br \/>\nat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1453)<br \/>\n&#8230; 19 more<br \/>\nCaused by: java.io.IOException: java.io.IOException: error=2, No such file or directory<br \/>\nat java.lang.UNIXProcess.<init>(UNIXProcess.java:148)<br \/>\nat java.lang.ProcessImpl.start(ProcessImpl.java:65)<br \/>\nat java.lang.ProcessBuilder.start(ProcessBuilder.java:452)<br \/>\n&#8230; 24 more<br \/>\nDone. Took 21 ms<br \/>\nNo changes<\/p>\n<p>Solution &#8211;<br \/>\nA work around of adding the &#8220;Force polling using workspace&#8221; as an &#8220;Additional behaviour&#8221; in your git SCM definition of the windows job.<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ twitter.com\/RajeshKumarIn<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Git Polling Log java.io.IOException: error=2, No such file or director Error Started on Sep 15, 2015 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[428],"tags":[160],"class_list":["post-2006","post","type-post","status-publish","format-standard","hentry","category-jenkins-build-management-tools","tag-git"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"rajeshkumar created the topic: Git Polling Log java.io.IOException: error=2, No such file or director Error Started on Sep 15, 2015 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-07T07:55:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:30:34+00:00\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Git Polling Log java.io.IOException: error=2, No such file or director\",\"datePublished\":\"2017-12-07T07:55:05+00:00\",\"dateModified\":\"2021-02-27T09:30:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/\"},\"wordCount\":452,\"commentCount\":0,\"keywords\":[\"git\"],\"articleSection\":[\"Jenkins\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/\",\"name\":\"Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"datePublished\":\"2017-12-07T07:55:05+00:00\",\"dateModified\":\"2021-02-27T09:30:34+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git Polling Log java.io.IOException: error=2, No such file or director\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/","og_locale":"en_US","og_type":"article","og_title":"Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy","og_description":"rajeshkumar created the topic: Git Polling Log java.io.IOException: error=2, No such file or director Error Started on Sep 15, 2015 [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/","og_site_name":"scmGalaxy","article_published_time":"2017-12-07T07:55:05+00:00","article_modified_time":"2021-02-27T09:30:34+00:00","author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Git Polling Log java.io.IOException: error=2, No such file or director","datePublished":"2017-12-07T07:55:05+00:00","dateModified":"2021-02-27T09:30:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/"},"wordCount":452,"commentCount":0,"keywords":["git"],"articleSection":["Jenkins"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/","name":"Git Polling Log java.io.IOException: error=2, No such file or director - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"datePublished":"2017-12-07T07:55:05+00:00","dateModified":"2021-02-27T09:30:34+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/git-polling-log-java-io-ioexception-error2-no-such-file-or-director\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Git Polling Log java.io.IOException: error=2, No such file or director"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=2006"}],"version-history":[{"count":1,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":2007,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/2006\/revisions\/2007"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}