{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3589","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3589/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3589/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3589/events","html_url":"https://github.com/bundler/bundler/issues/3589","id":70551821,"number":3589,"title":"git sources vs 'error packfile does not match index'","user":{"login":"grosser","id":11367,"avatar_url":"https://avatars.githubusercontent.com/u/11367?v=3","gravatar_id":"","url":"https://api.github.com/users/grosser","html_url":"https://github.com/grosser","followers_url":"https://api.github.com/users/grosser/followers","following_url":"https://api.github.com/users/grosser/following{/other_user}","gists_url":"https://api.github.com/users/grosser/gists{/gist_id}","starred_url":"https://api.github.com/users/grosser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosser/subscriptions","organizations_url":"https://api.github.com/users/grosser/orgs","repos_url":"https://api.github.com/users/grosser/repos","events_url":"https://api.github.com/users/grosser/events{/privacy}","received_events_url":"https://api.github.com/users/grosser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-24T00:41:54Z","updated_at":"2015-10-22T17:11:18Z","closed_at":"2015-10-22T17:11:18Z","body":"since updating bundler a few weeks ago we see these random errors on ci on a fairly regular basis:\r\n\r\n```\r\nUpdating git@github.com:foo/mocha.git\r\nWarning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.\r\nerror: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack does not match index\r\nwarning: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack cannot be accessed\r\nerror: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack does not match index\r\nwarning: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack cannot be accessed\r\nerror: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack does not match index\r\nwarning: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack cannot be accessed\r\nerror: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack does not match index\r\nwarning: packfile ./objects/pack/pack-a63a40f7f6a61ad1ee20d1d46642046057e5fc39.pack cannot be accessed\r\nfatal: bad object 78b6170c61dcca17ad3cb05383aaf3c4dd60f748\r\nerror: github.com:zendesk/mocha.git did not send all necessary objects\r\n\r\nRetrying git fetch --force --quiet --tags 'git@github.com:foo/mocha.git' \"refs/heads/*:refs/heads/*\" due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git@github.com:foo/mocha.git' \"refs/heads/*:refs/heads/*\"` in directory /home/travis/build/foo/foo/vendor/bundle/ruby/2.1.0/cache/bundler/git/mocha-88c3190f481167b157be201d24c768aafa197a8c has failed.\r\n```\r\n\r\nit seems like some git download failed but re-fetching it does not solve it, would it make sense to say something like \"if a fetch failed, try a fresh clone since the repo might be broken\" ?\r\n\r\nany other idea how to avoid these errors or make them retry nicely ? (checking in bundle package --all would help ... but we don't want to do that ...)"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/150293742","html_url":"https://github.com/bundler/bundler/issues/3589#issuecomment-150293742","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3589","id":150293742,"user":{"login":"agis-","id":827224,"avatar_url":"https://avatars.githubusercontent.com/u/827224?v=3","gravatar_id":"","url":"https://api.github.com/users/agis-","html_url":"https://github.com/agis-","followers_url":"https://api.github.com/users/agis-/followers","following_url":"https://api.github.com/users/agis-/following{/other_user}","gists_url":"https://api.github.com/users/agis-/gists{/gist_id}","starred_url":"https://api.github.com/users/agis-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agis-/subscriptions","organizations_url":"https://api.github.com/users/agis-/orgs","repos_url":"https://api.github.com/users/agis-/repos","events_url":"https://api.github.com/users/agis-/events{/privacy}","received_events_url":"https://api.github.com/users/agis-/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T17:11:18Z","updated_at":"2015-10-22T17:11:18Z","body":"Closing this as a non-bundler issue. Anyone that feels we could improve the retry mechanism feel free to open a PR and reference this issue. Thanks :)"}}