Protocol Error Bad Pack Header
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss fatal: the remote end hung up unexpectedly fatal: protocol error: bad pack header the workings and policies of this site About Us Learn more about
Fatal: Internal Server Error Remote: Internal Server Error Fatal: Protocol Error: Bad Pack Header
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Git Fatal: Internal Server Error
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other.
Gerrit Fatal: Protocol Error: Bad Pack Header
Join them; it only takes a minute: Sign up Git pull fails with bad pack header error up vote 19 down vote favorite 11 git pull fails with following error remote: Counting objects: 146, done. remote: fatal: unable to create thread: Resource temporarily unavailable error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible remote: warning: suboptimal pack - out of memory repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side. fatal: protocol error: bad pack header Any Ideas how to pull successfully ? git share|improve this question asked Sep 9 '11 at 13:53 deimus 4,31573675 possible duplicate of Repack of Git repository fails –Aleksandr Dubinsky Aug 6 '15 at 21:05 add a comment| 2 Answers 2 active oldest votes up vote 41 down vote accepted The lines beginning with remote are output from git running on the remote system. The error: fatal: unable to create thread: Resource temporarily unavailable ... strongly suggests that you've run out of memory on the server, which can happen if you have either: A repository with lots of large files, which can cause re-packing to take a lot of memory. Limited virtual memory - either in general, or just for that account due to the ulimit setting A suggestion here is to limit the amount of memory that packing may take by logging into the remote system (as the u
Starred by 4 users Reported by fredrik....@sonyericsson.com, Jan 19 2010 Back to list Status: Duplicate Merged: issue 390 Owner: ---- Closed: Feb 2010 Priority-Blocker Type-Bug Blocking: issue 390 Sign in to add a comment Affected Version: Gerrit 2.1.1.1 git remote internal server error Environment: Ubuntu 8.10 64 bit, 16GB RAM Date: Around noon, the 18th. The initial report fatal: fetch-pack: unable to fork off sideband demultiplexer from the users is this: Initializing project platform/frameworks/base ... warning: no common commits fatal: internal server error fatal: The remote end hung up git gc error failed to run repack unexpectedly fatal: protocol error: bad pack header error: Cannot fetch platform/frameworks/base This is repeatable, several clients get the same output. On the server, everything looks dandy. To be safe I run a gc: platform/frameworks/base.git$ git gc Counting http://stackoverflow.com/questions/7362709/git-pull-fails-with-bad-pack-header-error objects: 146059, done. Compressing objects: 100% (49024/49024), done. Writing objects: 100% (146059/146059), done. Total 146059 (delta 83409), reused 145995 (delta 83345) platform/frameworks/base.git$ Latest commit according to git log --all Date: Sat Jan 16 16:10:45 2010 +0100 Once git gc has completed, the sync now works as expected! But this doesn't last long, in the same sync I get the same output for another internal git means running git gc once more: $ git gc https://bugs.chromium.org/p/gerrit/issues/detail?id=394 Counting objects: 94, done. Compressing objects: 100% (28/28), done. Writing objects: 100% (94/94), done. Total 94 (delta 44), reused 94 (delta 44) Lasest commit: Date: Fri Dec 18 18:48:37 2009 +0100 This should mean that a lot of gcs has run weekly and sometimes daily since then. And still we get a repack! After very short time a new batch of gits "turn bad". By now patience is over, so I restart the gerrit service. But first some stats: $ ps Tuxa | grep java gerrit2 1039 76.7 52.1 9066324 8473312 pts/1 Sl Jan15 3194:58 GerritCodeReview -Xmx8g -Djavax.net.ssl.trustStore=/some/files - Djavax.net.ssl.trustStorePassword=passwd -jar /srv/gerrit2/bin/gerrit.war daemon -d /srv/gerrit2 -> internal ps shows: Name Max |Object Count | AvgGet |Hit Ratio | Age | Disk Mem Cnt| |Disk Mem Agg | -------------------------+--------------------+----------+--------------+ accounts 90d | 218| | 99%| accounts_byemail 90d | | | | diff 90d | | | | groups 90d | 17| 6.5ms | 0%| ldap_groups 1d | 216| | 99%| ldap_usernames 90d | | | | projects 90d | 321| | 99%| sshkeys 90d | 166| | 98%| web_sessions 12h | | | | JGit Buffer Cache: open files : 15 loaded : 199.99 mb mem% : 2% JVM Heap: max : 7.37 gb inuse : 1.88 gb mem% : 25% Not sure if this gives anything of value, if I could underst
person Affects Status Importance Assigned to Milestone Linaro Infrastructure Misc Edit Fix Released Medium Milo Casagrande Edit Linaro Infrastructure Misc 2013.11 You need to log in to change https://bugs.launchpad.net/bugs/1253139 this bug's status. Affecting: Linaro Infrastructure Misc Filed here by: Paul Sokolovsky When: https://bugs.eclipse.org/bugs/show_bug.cgi?id=396884 2013-11-20 Confirmed: 2013-11-21 Assigned: 2013-11-20 Started work: 2013-11-21 Completed: 2013-11-25 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi Linux nUbuntu PLD Linux Tilix tuXlab Ubuntu Ubuntu Linaro Evaluation Build Ubuntu RTM Package (Find…) Project (Find…) Status Importance Milestone Fix Released Medium Linaro Infrastructure Misc 2013.11 Assigned protocol error to Me Milo Casagrande (milo) Remote Watch None, the status of the bug is updated manually. None, the status of the bug is updated manually. URL: The information about this bug in Launchpad is automatically pulled daily from the remote bug. Comment on this change (optional) Email me about changes to this bug report Also affects project (?) Also affects distribution/package Nominate for bad pack header series Bug Description Following up to meeting with Rob: $ git clone http://staging.git.linaro.org/git/toolchain/gcc.git - works as expected $ git clone --depth=1 http://staging.git.linaro.org/git/toolchain/gcc.git Cloning into 'gcc'... fatal: The remote end hung up unexpectedly fatal: protocol error: bad pack header Add tags Tag help Paul Sokolovsky (pfalcon) on 2013-11-20 Changed in linaro-infrastructure-misc: importance: Undecided → Medium Milo Casagrande (milo) on 2013-11-20 Changed in linaro-infrastructure-misc: assignee: nobody → Milo Casagrande (milo) Milo Casagrande (milo) on 2013-11-21 Changed in linaro-infrastructure-misc: milestone: none → 2013.11 status: New → In Progress Milo Casagrande (milo) wrote on 2013-11-21: #1 So, I took a look at this problem, and found out what's going on. I'm not sure why it started to act like that: the only idea I have is that with recent version of git something changed in the way git commands are run, since previously a clone operation with --depth=1 was working. From Apache log, when trying to clone a repository, we can find this: fatal: Unable to create temporary file '/srv/repositories/lava/lava-server.git/shallow_zjbO0B': Permission denied fatal: The remote end hung up unexpectedly Looking at the process table and their command line, this is the comm
CommunityMarketplaceEventsPlanet EclipseNewsletterVideosParticipateReport a BugForumsMailing ListsWikiIRCHow to ContributeWorking GroupsAutomotiveInternet of ThingsLocationTechLong-Term SupportPolarSysScienceOpenMDM Toggle navigation Bugzilla – Bug396884 bad pack header when trying to fetch/clone jgit.git over git protocol Last modified: 2012-12-20 10:17:36 EST Home | New | Browse | Search | [?] | Reports | Requests | Help | Log In [x] | Forgot Password Login: [x] | Terms of Use | Copyright Agent First Last Prev Next This bug is not in your last search results. Bug396884 - bad pack header when trying to fetch/clone jgit.git over git protocol Summary: bad pack header when trying to fetch/clone jgit.git over git protocol Status: CLOSED DUPLICATE of bug 389101 Product: Community Classification: Eclipse Foundation Component: Git Version: unspecified Hardware: PC Mac OS X Importance: P3 normal (vote) TargetMilestone: --- Assigned To: Eclipse Webmaster QA Contact: URL: Whiteboard: Keywords: Depends on: Blocks: Show dependency tree Reported: 2012-12-18 18:22 EST by Matthias Sohn Modified: 2012-12-20 10:17 EST (History) CC List: 3 users (show) daniel_megert david_williams tomasz.zarna See Also: Attachments Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Matthias Sohn 2012-12-18 18:22:34 EST The jgit.gerrit on sandbox hudson is failing during fetch over git protocol with a bad pack error https://hudson.eclipse.org/sandbox/job/jgit.gerrit/2594/console cloning over git protocol from my laptop also fails: $ git clone git://git.eclipse.org/gitroot/jgit/jgit jgitgit Cloning into 'jgitgit'... fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed but cloning over gerrit's ssh daemon works from my laptop: $ git clone ssh://msohn@git.eclipse.org:29418/jgit/jgit jgitssh Cloning into 'jgitssh'... remote: Counting objects: 33797, done remote: Finding sources: 100% (33797/33797) remote: Total 33797 (delta 14703), reused 30151 (delta 14703) Receiving objects: 100% (33797/33797), 12.35 MiB | 917 KiB/s, done. Resolving deltas: 100% (14703/14703), done. I tried using ssh for the hudson job but this was refused https://hudson.eclipse.org/sandbox/job/jgit.gerrit/2598/console Comment 1 Matthias Sohn 2012-12-18 18:29:45 EST Fetching over git protocol from main Hudson seems to work: https://hudson.eclipse.org/hudson/job/jgit/1235/console Comment 2 Matthias Sohn 2012-12-19 19:44:39 EST we now face the same problem with the jgit-stable job on main Hudson. This blocks creation of r