1.27.0 Cabal Update Failure (truncate)

Getting a truncated error during cabal compile.

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.4
$ cabal --version
cabal-install version
compiled using version of the Cabal library

$ cabal configure -O0 -w ghc-8.10.4
Previous HEAD position was 82f4afb Merge pull request #5 from input-output-hk/upgrade-to-cabal-
HEAD is now at 94153b6 Fixed title of haddock page
Previous HEAD position was 0f40934 Merge pull request #215 from input-output-hk/cbor-instances-for-SystemStart
HEAD is now at 47db5b8 Merge pull request #212 from input-output-hk/nfrisby/issue-205-time-conversions-in-EpochInfo
Previous HEAD position was ce8f193 Merge pull request #70 from newhoggy/use-cabal-
HEAD is now at f730793 Merge pull request #69 from newhoggy/add-ghc-8.6.5-and-8.10.2-to-ci
HEAD is now at e8f19bcc9 Merge #2135
Previous HEAD position was fd773f7 Merge pull request #159 from input-output-hk/upgrade-to-cabal-
HEAD is now at bb4ed71 Merge pull request #158 from input-output-hk/nc/drop-strict
HEAD is now at cde90a2 Re-enable support for GHC 8.6.5
HEAD is now at 8bcd3c9 Downgrade cabal file version to 2.4 because 3.0 is incompatible with stack
HEAD is now at 808724f Merge #620
Previous HEAD position was 8d44955af Merge #3066
HEAD is now at 9b279c754 Merge #3036
truncated tar archive

Any ideas?

Great - you can create a separate post with the findings and mark as the solution…

1 Like

The fix was to go into the $HOME/.cabal directory and delete the packages folder, as it must have become corrupted. Re-running $ cabal update recreated the folder and issue resolved.

1 Like

i don’t know the root cause but that work for me…Thanks

1 Like