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

Can't use Haskell stack to create a new project on Ubuntu #39296

Closed
bbarker opened this issue Apr 21, 2018 · 5 comments
Closed

Can't use Haskell stack to create a new project on Ubuntu #39296

bbarker opened this issue Apr 21, 2018 · 5 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: haskell

Comments

@bbarker
Copy link
Contributor

bbarker commented Apr 21, 2018

Issue description

There appears to be a network issue of some sort, and due to past experiences with e.g., curl, I wonder if it is SSL related (though it doesn't appear to be):

$ stack new LearningHaskell
Downloading template "new-template" to create project "LearningHaskell" in LearningHaskell/ ...

Warning: Retry number 0 after a total delay of 0 us
         If you see this warning and stack fails to download, but running the command again solves the problem, please report here:
         https://github.com/commercialhaskell/stack/issues/3510

Warning: Retry number 1 after a total delay of 100000 us
         If you see this warning and stack fails to download, but running the command again solves the problem, please report here:
         https://github.com/commercialhaskell/stack/issues/3510

Warning: Retry number 2 after a total delay of 200000 us
         If you see this warning and stack fails to download, but running the command again solves the problem, please report here:
         https://github.com/commercialhaskell/stack/issues/3510

Warning: Retry number 3 after a total delay of 300000 us
         If you see this warning and stack fails to download, but running the command again solves the problem, please report here:
         https://github.com/commercialhaskell/stack/issues/3510
HttpExceptionRequest Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/commercialhaskell/stack-templates/master/new-template.hsfiles"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.BSD.getProtocolByName: does not exist (no such protocol name: tcp))

Steps to reproduce

I just installed stack using nix-env, see above for how to reproduce.

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.13.0-38-generic, Ubuntu, 16.04.3 LTS (Xenial Xerus)
  • multi-user?: no
  • sandbox: no
  • version: nix-env (Nix) 1.11.16
  • channels(brandon): "nixpkgs-18.09pre137305.d91caac6c3e, nixos-18.09pre134828.62dc989963c"
  • nixpkgs: /nix/var/nix/profiles/per-user/brandon/channels/nixpkgs
 $ stack --version | head
Version 1.6.5 x86_64
Compiled with:
- Cabal-2.0.1.0
- Glob-0.9.2
- HUnit-1.6.0.0
- QuickCheck-2.10.1
- StateVar-1.1.0.4
- aeson-1.2.4.0
- aeson-compat-0.3.7.1
- annotated-wl-pprint-0.7.0
@ryantm ryantm changed the title Can't use Haskell stack to create a new project Can't use Haskell stack to create a new project on Ubuntu Aug 23, 2018
@ryantm
Copy link
Member

ryantm commented Aug 23, 2018

This works for me on NixOS. I'll try my Ubuntu VM later.

@bbarker
Copy link
Contributor Author

bbarker commented Sep 10, 2018

After running into this again elsewhere, I saw haskell/wreq#5 (comment)

The workaround is to install apt install netbase; not sure what the equivalent nixos package is yet.

@zimbatm
Copy link
Member

zimbatm commented Nov 5, 2018

The nixos-equivalent is iana-etc

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@cdepillabout
Copy link
Member

Sounds like this was fixed, I'll go ahead and close. If this is still an issue, leave a comment and we can re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: haskell
Projects
None yet
Development

No branches or pull requests

4 participants