{"action":"created","issue":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/51","labels_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/51/comments","events_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/51/events","html_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/issues/51","id":104427294,"number":51,"title":"Intermittent clone failures","user":{"login":"kerrmarin","id":2995710,"avatar_url":"https://avatars.githubusercontent.com/u/2995710?v=3","gravatar_id":"","url":"https://api.github.com/users/kerrmarin","html_url":"https://github.com/kerrmarin","followers_url":"https://api.github.com/users/kerrmarin/followers","following_url":"https://api.github.com/users/kerrmarin/following{/other_user}","gists_url":"https://api.github.com/users/kerrmarin/gists{/gist_id}","starred_url":"https://api.github.com/users/kerrmarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerrmarin/subscriptions","organizations_url":"https://api.github.com/users/kerrmarin/orgs","repos_url":"https://api.github.com/users/kerrmarin/repos","events_url":"https://api.github.com/users/kerrmarin/events{/privacy}","received_events_url":"https://api.github.com/users/kerrmarin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-02T08:33:42Z","updated_at":"2015-09-03T11:24:42Z","closed_at":null,"body":"Hi,\r\n\r\nThis plugin intermittently fails with the following error:\r\n\r\n```\r\n09:21:53.108 Interaction with plugin with id 'stash.pr' implementing 'scm' extension failed while requesting for 'checkout'. Reason: [Unsuccessful response from plugin. Plugin returned with code '500' and the following response: '\"clone failed\"']\r\n```\r\n\r\nThe output from `plugin-stash.pr.log`:\r\n\r\n\r\n```\r\n2015-09-02 09:21:53,106  WARN [loopThread] GitHubPRBuildPlugin:67 - checkout: \r\njava.lang.RuntimeException: clone failed\r\n\tat com.tw.go.plugin.jgit.JGitHelper.cloneRepository(JGitHelper.java:67)\r\n\tat com.tw.go.plugin.GitHelper.cloneOrFetch(GitHelper.java:38)\r\n\tat in.ashwanthkumar.gocd.github.GitHubPRBuildPlugin.handleCheckout(GitHubPRBuildPlugin.java:256)\r\n\tat in.ashwanthkumar.gocd.github.GitHubPRBuildPlugin.handle(GitHubPRBuildPlugin.java:90)\r\n\tat com.thoughtworks.go.plugin.infra.DefaultPluginManager$1.execute(DefaultPluginManager.java:172)\r\n\tat com.thoughtworks.go.plugin.infra.DefaultPluginManager$1.execute(DefaultPluginManager.java:167)\r\n\tat com.thoughtworks.go.plugin.infra.FelixGoPluginOSGiFramework.executeActionOnTheService(FelixGoPluginOSGiFramework.java:315)\r\n\tat com.thoughtworks.go.plugin.infra.FelixGoPluginOSGiFramework.doOn(FelixGoPluginOSGiFramework.java:245)\r\n\tat com.thoughtworks.go.plugin.infra.DefaultPluginManager.submitTo(DefaultPluginManager.java:167)\r\n\tat com.thoughtworks.go.plugin.access.PluginRequestHelper.submitRequest(PluginRequestHelper.java:32)\r\n\tat com.thoughtworks.go.plugin.access.scm.SCMExtension.checkout(SCMExtension.java:175)\r\n\tat com.thoughtworks.go.domain.materials.scm.PluggableSCMMaterialAgent.prepare(PluggableSCMMaterialAgent.java:51)\r\n\tat com.thoughtworks.go.remote.work.BuildWork.prepareJob(BuildWork.java:168)\r\n\tat com.thoughtworks.go.remote.work.BuildWork.build(BuildWork.java:136)\r\n\tat com.thoughtworks.go.remote.work.BuildWork.doWork(BuildWork.java:91)\r\n\tat com.thoughtworks.go.agent.JobRunner.run(JobRunner.java:53)\r\n\tat com.thoughtworks.go.agent.AgentController.retrieveWork(AgentController.java:186)\r\n\tat com.thoughtworks.go.agent.AgentController.loop(AgentController.java:132)\r\n\tat sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)\r\n\tat org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)\r\n\tat org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)\r\n\tat java.util.TimerThread.mainLoop(Timer.java:555)\r\n\tat java.util.TimerThread.run(Timer.java:505)\r\nCaused by: org.eclipse.jgit.api.errors.TransportException: Short read of block.\r\n\tat org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139)\r\n\tat org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:193)\r\n\tat org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:133)\r\n\tat com.tw.go.plugin.jgit.JGitHelper.cloneRepository(JGitHelper.java:65)\r\n\t... 25 more\r\nCaused by: org.eclipse.jgit.errors.TransportException: Short read of block.\r\n\tat org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:370)\r\n\tat org.eclipse.jgit.transport.TransportHttp$SmartHttpFetchConnection.doFetch(TransportHttp.java:779)\r\n\tat org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:301)\r\n\tat org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:291)\r\n\tat org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:245)\r\n\tat org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:161)\r\n\tat org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)\r\n\tat org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)\r\n\tat org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)\r\n\t... 28 more\r\nCaused by: java.io.EOFException: Short read of block.\r\n\tat org.eclipse.jgit.util.IO.readFully(IO.java:248)\r\n\tat org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)\r\n\tat org.eclipse.jgit.transport.SideBandInputStream.needDataPacket(SideBandInputStream.java:158)\r\n\tat org.eclipse.jgit.transport.SideBandInputStream.read(SideBandInputStream.java:140)\r\n\tat org.eclipse.jgit.transport.PackParser.fill(PackParser.java:1131)\r\n\tat org.eclipse.jgit.transport.PackParser.access$000(PackParser.java:97)\r\n\tat org.eclipse.jgit.transport.PackParser$InflaterStream.read(PackParser.java:1664)\r\n\tat java.io.InputStream.read(InputStream.java:101)\r\n\tat org.eclipse.jgit.transport.PackParser.whole(PackParser.java:983)\r\n\tat org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:916)\r\n\tat org.eclipse.jgit.transport.PackParser.parse(PackParser.java:487)\r\n\tat org.eclipse.jgit.internal.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:194)\r\n\tat org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448)\r\n\tat org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:762)\r\n\tat org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:363)\r\n\t... 36 more\r\n```\r\n\r\nThe agent is running on a Mac Mini."},"comment":{"url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/comments/137411756","html_url":"https://github.com/ashwanthkumar/gocd-build-github-pull-requests/issues/51#issuecomment-137411756","issue_url":"https://api.github.com/repos/ashwanthkumar/gocd-build-github-pull-requests/issues/51","id":137411756,"user":{"login":"albertpastrana","id":1942336,"avatar_url":"https://avatars.githubusercontent.com/u/1942336?v=3","gravatar_id":"","url":"https://api.github.com/users/albertpastrana","html_url":"https://github.com/albertpastrana","followers_url":"https://api.github.com/users/albertpastrana/followers","following_url":"https://api.github.com/users/albertpastrana/following{/other_user}","gists_url":"https://api.github.com/users/albertpastrana/gists{/gist_id}","starred_url":"https://api.github.com/users/albertpastrana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albertpastrana/subscriptions","organizations_url":"https://api.github.com/users/albertpastrana/orgs","repos_url":"https://api.github.com/users/albertpastrana/repos","events_url":"https://api.github.com/users/albertpastrana/events{/privacy}","received_events_url":"https://api.github.com/users/albertpastrana/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T11:24:42Z","updated_at":"2015-09-03T11:24:42Z","body":"I believe that's the same issue as #49 "}}