Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing error-message "thread blocked indefinitely in an MVar operation" when downloading tarball fails #3387

Closed
hvr opened this issue May 2, 2016 · 1 comment · Fixed by #3630

Comments

@hvr
Copy link
Member

hvr commented May 2, 2016

when download a source-tarball fails due to missing file we currently get a somewhat unfortunate error message:

$ cabal new-build -j1 exe:cabal -v3
File monitor 'improved-plan' unchanged.
In order, the following will be built:
HTTP-4000.3.3 (lib:HTTP) (requires download & build)
cabal-install-1.24.0.0 (exe:cabal) (configuration changed)
creating /stuff3/work/GitHub/cabal/dist-newstyle/build
creating /stuff3/work/GitHub/cabal/dist-newstyle/tmp
Downloading HTTP-4000.3.3...
writing
/home/hvr/.cabal/packages/hackage.haskell.org/HTTP/4000.3.3/HTTP-4000.3.3.tar.gz
Ready to install HTTP-4000.3.3
Selected mirror http://hackage.haskell.org/
Waiting for install task to finish...
Waiting for download of HTTP-4000.3.3 to finish
Downloading package HTTP-4000.3.3
Sending:
GET /package/HTTP-4000.3.3.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.24.0.0 (linux; x86_64)
Cache-Control: no-transform

Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 404 Not Found
Server: nginx/1.10.0 (Ubuntu)
Date: Mon, 02 May 2016 09:23:40 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive

Exception Unexpected response 404for
http://hackage.haskell.org/package/HTTP-4000.3.3.tar.gz when using mirror
http://hackage.haskell.org/
Selected mirror http://ftp.osuosl.org/pub/hackage
Downloading package HTTP-4000.3.3
Sending:
GET /pub/hackage/package/HTTP-4000.3.3.tar.gz HTTP/1.1
Host: ftp.osuosl.org
User-Agent: cabal-install/1.24.0.0 (linux; x86_64)
Cache-Control: no-transform

Creating new connection to ftp.osuosl.org
Received:
HTTP/1.1 404 Not Found
Date: Mon, 02 May 2016 09:24:35 GMT
Server: Apache
Content-Length: 302
Content-Type: text/html; charset=iso-8859-1

thread blocked indefinitely in an MVar operation

/cc @dcoutts

@dcoutts
Copy link
Contributor

dcoutts commented May 11, 2016

Related to #3416

dcoutts added a commit to dcoutts/cabal that referenced this issue Jul 26, 2016
Download errors are now put into the residual install plan, like other
build errors.

Fixes issue haskell#3387
dcoutts added a commit to dcoutts/cabal that referenced this issue Jul 26, 2016
Download errors are now put into the residual install plan, like other
build errors.

Fixes issue haskell#3387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants