I have on my machine a copy of the repository for work, another for maintenance, and a third for resolving merge requests conflicts. The external repository is located at link
In the conflict resolution copy, I got the following while giving git fetch
:
$ git fetch
remote: Counting objects: 4339, done.
remote: Compressing objects: 100% (2008/2008), done.
error: inflate: data stream error (unknown compression method)
error: unable to unpack e68ba06d6fc973e561ea7663cd46a6563e4db00a header
fatal: SHA1 COLLISION FOUND WITH e68ba06d6fc973e561ea7663cd46a6563e4db00a !
fatal: index-pack failed
Has anyone ever had this SHA1 COLLISION FOUND
problem? Does running a more aggressive GC solve? Or should I give a fetch forced (if it exists)? And why do I get this inflate error: data stream error (unknown compression method)?
In my other two copies git fetch
simply works.
I followed the tip of @ Wéllingthon M. de Souza and I went after the answers to this question in SOen .
I tried to follow the two highest scoring answers right now ( 1 and 2 ).
The first thing I did was to follow the question, fsck
:
$ git fsck --full
error: inflate: data stream error (unknown compression method)
error: unable to unpack 0df41c704c7ab987a2a87f5487ba94b11fee5651 header
error: inflate: data stream error (unknown compression method)
fatal: loose object 0df41c704c7ab987a2a87f5487ba94b11fee5651 (stored in .git/objects/0d/f41c704c7ab987a2a87f5487ba94b11fee5651) is corrupt
I could not even follow the first steps of the solutions, which involve moving the files stored in .git/objects/pack
:
$ mv ../.git/objects/pack/* ./
mv: cannot move ‘../.git/objects/pack/pack-2ef12a374f233953f4fd8a15aa389cd156ee21ab.pack’ to ‘./pack-2ef12a374f233953f4fd8a15aa389cd156ee21ab.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-31eb069000dfed9dc33627cf36ee2197458ad82e.pack’ to ‘./pack-31eb069000dfed9dc33627cf36ee2197458ad82e.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-3b3cf3cbadf5413a348678edcd3ad5aae1dc2c16.pack’ to ‘./pack-3b3cf3cbadf5413a348678edcd3ad5aae1dc2c16.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-635a59f8711f44b67a4507a411a0a0c0285c0ca7.pack’ to ‘./pack-635a59f8711f44b67a4507a411a0a0c0285c0ca7.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-6886cb0119bfd4643b98c4f501f10e629ab74e9c.pack’ to ‘./pack-6886cb0119bfd4643b98c4f501f10e629ab74e9c.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-6e052067c769830ca129a0e8c7bfc4d44764fe15.pack’ to ‘./pack-6e052067c769830ca129a0e8c7bfc4d44764fe15.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-752d7c35962f8a2ea4e822513fb2c556905c00d7.pack’ to ‘./pack-752d7c35962f8a2ea4e822513fb2c556905c00d7.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-7f33b3a5474a3e1e6fe6aaa803b6350d2e042eb4.pack’ to ‘./pack-7f33b3a5474a3e1e6fe6aaa803b6350d2e042eb4.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-a80982d4620dd4cef6f81e3be901cae4c69fde35.pack’ to ‘./pack-a80982d4620dd4cef6f81e3be901cae4c69fde35.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-b434b91b1a0a7320412e2cbca96037f8299ef2ac.pack’ to ‘./pack-b434b91b1a0a7320412e2cbca96037f8299ef2ac.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-ba586b682318e5d28720392029682881c15a94bc.pack’ to ‘./pack-ba586b682318e5d28720392029682881c15a94bc.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-bbf1e8e462d030724464eda227311152a1514afd.pack’ to ‘./pack-bbf1e8e462d030724464eda227311152a1514afd.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-c01218c7abd55796907a9d3bc495a181bde71eaf.pack’ to ‘./pack-c01218c7abd55796907a9d3bc495a181bde71eaf.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-c1a7902d592bd9fd1aea549bbd005caaffbee33f.pack’ to ‘./pack-c1a7902d592bd9fd1aea549bbd005caaffbee33f.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-c91ad861113299d4dab0881b1d6486f30e9bf1b4.pack’ to ‘./pack-c91ad861113299d4dab0881b1d6486f30e9bf1b4.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-d48093c898ed05e058c3a9c892ec0609069ad60d.pack’ to ‘./pack-d48093c898ed05e058c3a9c892ec0609069ad60d.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-da0630673a62d977df8ffbbc50fd61df1569e6a3.pack’ to ‘./pack-da0630673a62d977df8ffbbc50fd61df1569e6a3.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/pack-eda963306885c442497749083b08dc217a91567a.pack’ to ‘./pack-eda963306885c442497749083b08dc217a91567a.pack’: Device or resource busy
mv: cannot move ‘../.git/objects/pack/tmp_pack_TnUODc’ to ‘./tmp_pack_TnUODc’: Device or resource busy
I just tried to copy the files, which worked, and then call the git unpack-objects -r
for each file copied. It took a while, but git
returned saying it was a success. However, running git fsck
still gives the same error.
I also can not run a git gc
...
$ git gc
error: bad ref for refs/remotes/origin/hotfix-{nome-do-branch 3}
error: refs/remotes/interno/feateure-{nome do branch 2} does not point to a valid object!
error: refs/remotes/interno/rc-4.12 does not point to a valid object!
error: refs/remotes/origin/feateure-{nome do branch 2} does not point to a valid object!
error: refs/remotes/origin/feature-{nome do branch 1} does not point to a valid object!
error: refs/remotes/origin/rc-4.12 does not point to a valid object!
error: refs/tags/v4.12.0 does not point to a valid object!
error: refs/tags/v4.12.0-RC5 does not point to a valid object!
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 265cde674ee719afc8b113702111a2daff917bf4
error: Could not read 9949bd269ca9a170d63bb7a966f61f0ba2fa8bbf
error: Could not read a3c9b85a5edbafcb21b9bc545235563696e9b0a7
error: Could not read dd0511454dbb98fe63245c8b892e6f0598896ed7
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
error: Could not read d44b9b39c8a1780debb2e4eaebfe3183eda5822d
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+17 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+2 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+5 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+4 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+3 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+8 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 9949bd269ca9a170d63bb7a966f61f0ba2fa8bbf
(+1 linhas idênticas)
error: Could not read a3c9b85a5edbafcb21b9bc545235563696e9b0a7
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read dd0511454dbb98fe63245c8b892e6f0598896ed7
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
(+1 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+29 linhas idênticas)
error: Could not read d44b9b39c8a1780debb2e4eaebfe3183eda5822d
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+86 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+6 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+9 linhas idênticas)
error: Could not read d44b9b39c8a1780debb2e4eaebfe3183eda5822d
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+2 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+2 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+5 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+4 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read dd0511454dbb98fe63245c8b892e6f0598896ed7
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+8 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 9949bd269ca9a170d63bb7a966f61f0ba2fa8bbf
(+1 linhas idênticas)
error: Could not read a3c9b85a5edbafcb21b9bc545235563696e9b0a7
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read dd0511454dbb98fe63245c8b892e6f0598896ed7
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
(+1 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 7dc587d4ac10c48d3b104c32eb3a5c6b46d2c3d3
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read 4399cd6fbed8a44b269a60b63abf1dcd599312ad
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+4 linhas idênticas)
error: Could not read dbbfbdf73be8a9f38e26b85e74db1847cfd05bf4
(+2 linhas idênticas)
error: Could not read dd0511454dbb98fe63245c8b892e6f0598896ed7
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+33 linhas idênticas)
error: Could not read d44b9b39c8a1780debb2e4eaebfe3183eda5822d
error: Could not read 25085f5de31daf24cb5313259f4a8141377b8f92
(+19 linhas idênticas)
fatal: bad object refs/remotes/interno/feateure-{nome-branch-4}
error: failed to run repack