haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.63k stars 696 forks source link

Temporary failure to download package fails install #3073

Open kolmodin opened 8 years ago

kolmodin commented 8 years ago

I tried to install some packages with a lot of dependencies.

As seen in the log below, it started to download http-conduit but never reached to do "Configure". I suspect that the download failed, and there is no retry functionality.

The log file cabal-install refers to doesn't exist. Retrying solved the problem.

It seems that Cabal should retry downloads when they fail, and if they still fail it needs to be a more accurate log error saying exactly what went wrong.

kolmodin@ikra:~/.config/sublime-text-3/Packages/SublimeHaskell$ cabal install stack ghc-mod haskell-src-exts haddock-api haddock-library Cabal 
Resolving dependencies...
Notice: installing into a sandbox located at
/home/kolmodin/.config/sublime-text-3/Packages/SublimeHaskell/.cabal-sandbox
Configuring Cabal-1.22.6.0...
Configuring ansi-terminal-0.6.2.3...
Configuring SHA-1.6.4.2...
Configuring auto-update-0.1.3...
Building ansi-terminal-0.6.2.3...
Building auto-update-0.1.3...
Building SHA-1.6.4.2...
Installed auto-update-0.1.3
Configuring base16-bytestring-0.1.1.6...
Building base16-bytestring-0.1.1.6...
Configuring base-orphans-0.5.0...
Installed base16-bytestring-0.1.1.6
Building base-orphans-0.5.0...
Configuring base64-bytestring-1.0.0.1...
Installed ansi-terminal-0.6.2.3
Building base64-bytestring-1.0.0.1...
Configuring byteable-0.1.1...
Installed base64-bytestring-1.0.0.1
Building byteable-0.1.1...
Configuring cereal-0.5.1.0...
Installed base-orphans-0.5.0
Configuring cmdargs-0.10.13...
Installed byteable-0.1.1
Building cereal-0.5.1.0...
Building cmdargs-0.10.13...
Configuring bytestring-builder-0.10.6.0.0...
Installed cereal-0.5.1.0
Building bytestring-builder-0.10.6.0.0...
Configuring data-default-class-0.0.1...
Installed bytestring-builder-0.10.6.0.0
Building data-default-class-0.0.1...
Configuring dlist-0.7.1.2...
Installed data-default-class-0.0.1
Building dlist-0.7.1.2...
Configuring file-embed-0.0.9.1...
Installed dlist-0.7.1.2
Configuring filelock-0.1.0.1...
Installed cmdargs-0.10.13
Building file-embed-0.0.9.1...
Building filelock-0.1.0.1...
Configuring ghc-paths-0.1.0.9...
Installed file-embed-0.0.9.1
Configuring gitrev-1.2.0...
Installed filelock-0.1.0.1
Building gitrev-1.2.0...
Configuring generics-sop-0.2.0.0...
Installed gitrev-1.2.0
Building generics-sop-0.2.0.0...
Building ghc-paths-0.1.0.9...
Configuring haddock-library-1.2.1...
Installed ghc-paths-0.1.0.9
Building haddock-library-1.2.1...
Building Cabal-1.22.6.0...
Configuring extra-1.4.3...
Installed haddock-library-1.2.1
Configuring hinotify-0.3.8.1...
Installed generics-sop-0.2.0.0
Building extra-1.4.3...
Building hinotify-0.3.8.1...
Configuring hourglass-0.2.9...
Installed hinotify-0.3.8.1
Configuring memory-0.11...
Installed extra-1.4.3
Building hourglass-0.2.9...
Building memory-0.11...
Configuring mmorph-1.0.5...
Installed memory-0.11
Building mmorph-1.0.5...
Configuring monad-loops-0.4.3...
Installed mmorph-1.0.5
Building monad-loops-0.4.3...
Configuring ieee754-0.7.8...
Installed hourglass-0.2.9
Configuring mtl-2.2.1...
Installed monad-loops-0.4.3
Building ieee754-0.7.8...
Building mtl-2.2.1...
Configuring hscolour-1.23...
Installed ieee754-0.7.8
Configuring network-2.6.2.1...
Installed mtl-2.2.1
Downloading fclabels-2.0.2.4...
Downloading pipes-4.1.8...
Building hscolour-1.23...
Building network-2.6.2.1...
Configuring network-info-0.2.0.8...
Installed hscolour-1.23
Configuring old-locale-1.0.0.7...
Installed network-2.6.2.1
Building network-info-0.2.0.8...
Building old-locale-1.0.0.7...
Configuring prelude-extras-0.4.0.3...
Installed old-locale-1.0.0.7
Configuring primitive-0.6.1.0...
Installed network-info-0.2.0.8
Building prelude-extras-0.4.0.3...
Building primitive-0.6.1.0...
Configuring refact-0.3.0.2...
Installed prelude-extras-0.4.0.3
Configuring safe-0.3.9...
Installed primitive-0.6.1.0
Building refact-0.3.0.2...
Building safe-0.3.9...
Configuring split-0.2.3...
Installed safe-0.3.9
Configuring stm-2.4.4.1...
Installed refact-0.3.0.2
Building split-0.2.3...
Building stm-2.4.4.1...
Configuring silently-1.2.5...
Installed split-0.2.3
Configuring syb-0.6...
Installed SHA-1.6.4.2
Building silently-1.2.5...
Configuring random-1.1...
Installed stm-2.4.4.1
Building syb-0.6...
Configuring tagged-0.8.2...
Installed silently-1.2.5
Building random-1.1...
Building tagged-0.8.2...
Configuring tar-0.5.0.1...
Installed syb-0.6
Configuring time-locale-compat-0.1.1.1...
Installed tagged-0.8.2
Building tar-0.5.0.1...
Building time-locale-compat-0.1.1.1...
Configuring transformers-compat-0.4.0.4...
Installed time-locale-compat-0.1.1.1
Configuring unexceptionalio-0.3.0...
Installed random-1.1
Building transformers-compat-0.4.0.4...
Building unexceptionalio-0.3.0...
Configuring text-1.2.2.0...
Installed transformers-compat-0.4.0.4
Configuring unix-compat-0.4.1.4...
Installed unexceptionalio-0.3.0
Building text-1.2.2.0...
Building unix-compat-0.4.1.4...
Configuring utf8-string-1.0.1.1...
Installed unix-compat-0.4.1.4
Building utf8-string-1.0.1.1...
Configuring word8-0.1.2...
Installed tar-0.5.0.1
Building word8-0.1.2...
Configuring zlib-0.6.1.1...
Installed word8-0.1.2
Installed utf8-string-1.0.1.1
Building zlib-0.6.1.1...
Configuring ansi-wl-pprint-0.6.7.3...
Building ansi-wl-pprint-0.6.7.3...
Configuring cryptohash-0.11.6...
Installed ansi-wl-pprint-0.6.7.3
Building cryptohash-0.11.6...
Configuring asn1-types-0.3.2...
Installed zlib-0.6.1.1
Building asn1-types-0.3.2...
Configuring djinn-lib-0.0.1.2...
Installed asn1-types-0.3.2
Building djinn-lib-0.0.1.2...
Configuring pem-0.2.2...
Installed cryptohash-0.11.6
Building pem-0.2.2...
Configuring fclabels-2.0.2.4...
Installed pem-0.2.2
Building fclabels-2.0.2.4...
Configuring pipes-4.1.8...
Installed djinn-lib-0.0.1.2
Building pipes-4.1.8...
Configuring cryptonite-0.10...
Installed fclabels-2.0.2.4
Building cryptonite-0.10...
Configuring socks-0.5.4...
Installed pipes-4.1.8
Building socks-0.5.4...
Configuring old-time-1.1.0.3...
Installed socks-0.5.4
Building old-time-1.1.0.3...
Configuring StateVar-1.1.0.3...
Installed old-time-1.1.0.3
Building StateVar-1.1.0.3...
Configuring vector-0.11.0.0...
Installed StateVar-1.1.0.3
Building vector-0.11.0.0...
Configuring async-2.1.0...
Installed text-1.2.2.0
Building async-2.1.0...
Configuring ghc-syb-utils-0.2.3...
Installed async-2.1.0
Building ghc-syb-utils-0.2.3...
Configuring stm-chans-3.0.0.4...
Installed ghc-syb-utils-0.2.3
Building stm-chans-3.0.0.4...
Configuring edit-distance-0.2.2.1...
Installed cryptonite-0.10
Configuring MonadRandom-0.4.2.2...
Installed stm-chans-3.0.0.4
Building edit-distance-0.2.2.1...
Building MonadRandom-0.4.2.2...
Configuring exceptions-0.8.2.1...
Installed MonadRandom-0.4.2.2
Building exceptions-0.8.2.1...
Configuring transformers-base-0.4.4...
Installed edit-distance-0.2.2.1
Building transformers-base-0.4.4...
Configuring errors-2.1.1...
Installed exceptions-0.8.2.1
Downloading path-0.5.3...
Downloading retry-0.7.1...
Configuring distributive-0.5.0.2...
Installed transformers-base-0.4.4
Building errors-2.1.1...
Installed errors-2.1.1
Configuring asn1-encoding-0.9.3...
Building asn1-encoding-0.9.3...
Building distributive-0.5.0.2...
Configuring optparse-applicative-0.12.1.0...
Installed distributive-0.5.0.2
Building optparse-applicative-0.12.1.0...
Configuring blaze-builder-0.4.0.1...
Installed asn1-encoding-0.9.3
Building blaze-builder-0.4.0.1...
Configuring fast-logger-2.4.1...
Installed blaze-builder-0.4.0.1
Downloading blaze-markup-0.7.0.3...
Downloading cookie-0.4.1.6...
Downloading streaming-commons-0.1.15...
Building fast-logger-2.4.1...
Configuring mime-types-0.1.0.6...
Installed optparse-applicative-0.12.1.0
Configuring parsec-3.1.9...
Installed fast-logger-2.4.1
Building mime-types-0.1.0.6...
Building parsec-3.1.9...
Configuring path-pieces-0.2.1...
Installed mime-types-0.1.0.6
Building path-pieces-0.2.1...
Configuring hashable-1.2.4.0...
Installed parsec-3.1.9
Building hashable-1.2.4.0...
Configuring http-api-data-0.2.2...
Installed Cabal-1.22.6.0
Configuring text-binary-0.2.1...
Installed path-pieces-0.2.1
Configuring polyparse-1.11...
Installed hashable-1.2.4.0
Building http-api-data-0.2.2...
Building text-binary-0.2.1...
Building polyparse-1.11...
Configuring djinn-ghc-0.0.2.3...
Installed text-binary-0.2.1
Building djinn-ghc-0.0.2.3...
Configuring fsnotify-0.2.1...
Installed djinn-ghc-0.0.2.3
Building fsnotify-0.2.1...
Configuring retry-0.7.1...
Installed http-api-data-0.2.2
Configuring path-0.5.3...
Installed fsnotify-0.2.1
Building retry-0.7.1...
Building path-0.5.3...
Configuring monad-control-1.0.0.4...
Installed path-0.5.3
Configuring temporary-1.2.0.3...
Installed retry-0.7.1
Building monad-control-1.0.0.4...
Installed vector-0.11.0.0
Configuring asn1-parse-0.9.4...
Building temporary-1.2.0.3...
Building asn1-parse-0.9.4...
Configuring hastache-0.6.1...
Installed polyparse-1.11
Configuring cookie-0.4.1.6...
Installed monad-control-1.0.0.4
Configuring blaze-markup-0.7.0.3...
Installed temporary-1.2.0.3
Downloading cabal-helper-0.6.3.1...
Installed asn1-parse-0.9.4
Configuring streaming-commons-0.1.15...
Downloading x509-1.6.3...
Building hastache-0.6.1...
Building cookie-0.4.1.6...
Building blaze-markup-0.7.0.3...
Building streaming-commons-0.1.15...
Configuring network-uri-2.6.0.3...
Installed cookie-0.4.1.6
Building network-uri-2.6.0.3...
Configuring haddock-api-2.16.1...
Installed blaze-markup-0.7.0.3
Downloading blaze-html-0.8.1.1...
Building haddock-api-2.16.1...
Configuring case-insensitive-1.2.0.5...
Installed streaming-commons-0.1.15
Building case-insensitive-1.2.0.5...
Configuring unordered-containers-0.2.6.0...
Installed network-uri-2.6.0.3
Configuring uuid-types-1.0.2...
Installed hastache-0.6.1
Building unordered-containers-0.2.6.0...
Installed case-insensitive-1.2.0.5
Downloading http-types-0.9...
Configuring mwc-random-0.13.3.2...
Building uuid-types-1.0.2...
Building mwc-random-0.13.3.2...
Installed uuid-types-1.0.2
Configuring scientific-0.3.4.4...
Downloading uuid-1.3.11...
Building scientific-0.3.4.4...
Configuring vector-binary-instances-0.2.1.0...
Installed unordered-containers-0.2.6.0
Installed scientific-0.3.4.4
Configuring resource-pool-0.2.3.2...
Building vector-binary-instances-0.2.1.0...
Building resource-pool-0.2.3.2...
Configuring cpphs-1.19.3...
Installed vector-binary-instances-0.2.1.0
Configuring lifted-base-0.2.3.6...
Installed resource-pool-0.2.3.2
Building cpphs-1.19.3...
Building lifted-base-0.2.3.6...
Installed lifted-base-0.2.3.6
Configuring cabal-helper-0.6.3.1...
Downloading resourcet-1.1.7...
Building cabal-helper-0.6.3.1...
Configuring x509-1.6.3...
Installed haddock-api-2.16.1
Installed cpphs-1.19.3
Configuring blaze-html-0.8.1.1...
Building x509-1.6.3...
Building blaze-html-0.8.1.1...
Configuring http-types-0.9...
Installed mwc-random-0.13.3.2
Building http-types-0.9...
Configuring uuid-1.3.11...
Installed x509-1.6.3
Downloading x509-store-1.6.1...
Building uuid-1.3.11...
Installed http-types-0.9
Downloading http-client-0.4.27...
Configuring uniplate-1.6.12...
Configuring semigroups-0.18.0.1...
Installed cabal-helper-0.6.3.1
Building uniplate-1.6.12...
Configuring attoparsec-0.13.0.1...
Installed uuid-1.3.11
Building semigroups-0.18.0.1...
Building attoparsec-0.13.0.1...
Configuring enclosed-exceptions-1.0.1.1...
Installed blaze-html-0.8.1.1
Configuring resourcet-1.1.7...
Installed uniplate-1.6.12
Building enclosed-exceptions-1.0.1.1...
Configuring haskell-src-exts-1.17.1...
Installed semigroups-0.18.0.1
Downloading dlist-instances-0.1...
Building resourcet-1.1.7...
Configuring vector-algorithms-0.7.0.1...
Installed enclosed-exceptions-1.0.1.1
Building haskell-src-exts-1.17.1...
Building vector-algorithms-0.7.0.1...
Configuring x509-store-1.6.1...
Installed resourcet-1.1.7
Downloading conduit-1.2.6.1...
Building x509-store-1.6.1...
Installed x509-store-1.6.1
Downloading x509-system-1.6.3...
Configuring http-client-0.4.27...
Downloading x509-validation-1.6.3...
Building http-client-0.4.27...
Configuring void-0.7.1...
Installed attoparsec-0.13.0.1
Building void-0.7.1...
Configuring dlist-instances-0.1...
Installed void-0.7.1
Downloading contravariant-1.4...
Building dlist-instances-0.1...
Installed dlist-instances-0.1
Configuring conduit-1.2.6.1...
Building conduit-1.2.6.1...
Installed http-client-0.4.27
Configuring x509-system-1.6.3...
Building x509-system-1.6.3...
Configuring x509-validation-1.6.3...
Installed x509-system-1.6.3
Building x509-validation-1.6.3...
Configuring contravariant-1.4...
Installed x509-validation-1.6.3
Downloading tls-1.3.4...
Configuring aeson-0.10.0.0...
Installed conduit-1.2.6.1
Downloading conduit-extra-1.1.9.2...
Building contravariant-1.4...
Building aeson-0.10.0.0...
Installed contravariant-1.4
Downloading comonad-5...
Configuring conduit-extra-1.1.9.2...
Building conduit-extra-1.1.9.2...
Configuring tls-1.3.4...
Installed conduit-extra-1.1.9.2
Downloading cryptohash-conduit-0.1.1...
Downloading monad-logger-0.3.17...
Downloading project-template-0.2.0...
Building tls-1.3.4...
Installed vector-algorithms-0.7.0.1
Configuring cryptohash-conduit-0.1.1...
Building cryptohash-conduit-0.1.1...
Configuring comonad-5...
Installed cryptohash-conduit-0.1.1
Building comonad-5...
Configuring monad-logger-0.3.17...
Installed comonad-5
Downloading bifunctors-5.2...
Building monad-logger-0.3.17...
Configuring project-template-0.2.0...
Installed monad-logger-0.3.17
Building project-template-0.2.0...
Installed project-template-0.2.0
Configuring bifunctors-5.2...
Installed tls-1.3.4
Downloading connection-0.2.5...
Configuring connection-0.2.5...
Building bifunctors-5.2...
Building connection-0.2.5...
Installed connection-0.2.5
Downloading http-client-tls-0.2.2...
Configuring http-client-tls-0.2.2...
Installed aeson-0.10.0.0
Downloading aeson-compat-0.3.0.0...
Downloading binary-tagged-0.1.3.0...
Configuring binary-tagged-0.1.3.0...
Downloading persistent-2.2.4...
Downloading yaml-0.8.15.3...
Building http-client-tls-0.2.2...
Building binary-tagged-0.1.3.0...
Installed http-client-tls-0.2.2
Downloading http-conduit-2.1.8...
Configuring aeson-compat-0.3.0.0...
Building aeson-compat-0.3.0.0...
Configuring persistent-2.2.4...
Installed binary-tagged-0.1.3.0
Configuring yaml-0.8.15.3...
Installed bifunctors-5.2
Downloading profunctors-5.2...
Downloading semigroupoids-5.0.1...
Installed aeson-compat-0.3.0.0
Configuring profunctors-5.2...
Building persistent-2.2.4...
Failed to install http-conduit-2.1.8
Build log ( /home/kolmodin/.config/sublime-text-3/Packages/SublimeHaskell/.cabal-sandbox/logs/http-conduit-2.1.8.log ):
cabal:
/home/kolmodin/.config/sublime-text-3/Packages/SublimeHaskell/.cabal-sandbox/logs/http-conduit-2.1.8.log:
does not exist
$ cabal --version
cabal-install version 1.22.7.0
using version 1.22.5.0 of the Cabal library 
23Skidoo commented 8 years ago

I think I also encountered this. Agreed that the error message is quite bad.

Blaisorblade commented 8 years ago

Dup of #1914, a classic bewildering error on Travis (travis-ci/travis-ci#2761).

Blaisorblade commented 8 years ago

As we figured in #1914, this is blocked on https://github.com/haskell/HTTP/issues/68, still undiagnosed.