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

Error: Remote host not found on spago build inside container #196

Closed
ericbmerritt opened this issue May 13, 2019 · 9 comments · Fixed by #199
Closed

Error: Remote host not found on spago build inside container #196

ericbmerritt opened this issue May 13, 2019 · 9 comments · Fixed by #199
Milestone

Comments

@ericbmerritt
Copy link
Contributor

Versions:

  • + spago@0.7.7
  • + purescript@0.12.5

Problem:

I am attempting to run spago build installed via npm inside of a container. When I do that on an empty project after running spago init I get the following error. The same command run on the host (mac osx) works fine. Also running curl https://raw.githubusercontent.com/purescript/package-sets/psc-0.12.5-20190427/src/mkPackage.dhall in the host container works just fine. That seems to indicate that the problem lies in how spago is resolving the host.

$> npx spago build
spago: 
↳ ./packages.dhall
  ↳ https://raw.githubusercontent.com/purescript/package-sets/psc-0.12.5-20190427/src/mkPackage.dhall sha256:0b197efa1d397ace6eb46b243ff2d73a3da5638d8d0ac8473e8e4a8fc528cf57

Error: Remote host not found


      https://raw.githubusercontent.com/purescript/package-sets/psc-0.12.5-20190427/src/mkPackage.dhall sha256:0b197efa1d397ace6eb46b243ff2d73a3da5638d8d0ac8473e8e4a8fc528cf57


/iogine/packages.dhall:112:7
@f-f
Copy link
Member

f-f commented May 13, 2019

Hi @ericbmerritt! Would it be possible to share a Dockerfile that replicates the issue?

@ericbmerritt
Copy link
Contributor Author

Dockerfile and related stuff is located here: https://gitlab.com/metadrift/iogine/tree/feature/migrate-to-purescript/tooling.

You can pull the image directly here: https://gitlab.com/metadrift/iogine/container_registry. The tag is latest

@f-f
Copy link
Member

f-f commented May 13, 2019

@ericbmerritt I pulled the image (with docker pull registry.gitlab.com/metadrift/iogine/iogine-ci:latest) but it doesn't have npm nor spago installed, in order to be able to replicate I'd need to know how you installed them

Also did you take a look at #192?

@f-f
Copy link
Member

f-f commented May 13, 2019

Update: I built the image off your branch and installed spago with npm install -g --unsafe-perm spago, and I can replicate your issue, looking into it

@f-f
Copy link
Member

f-f commented May 13, 2019

@ericbmerritt works for me after apt install netbase as per snoyberg/http-client#292

@f-f
Copy link
Member

f-f commented May 14, 2019

I think this is solved, so I'll go ahead and mark this as a thing to document for the upcoming 0.8

@f-f f-f added this to the 0.8 milestone May 14, 2019
@ericbmerritt
Copy link
Contributor Author

That solved my problem. Thank you very much.

@f-f
Copy link
Member

f-f commented May 14, 2019

You're welcome! 🙂

I'll reopen this so we can mark it as fixed once we document it

@f-f f-f reopened this May 14, 2019
ericbmerritt added a commit to ericbmerritt/spago that referenced this issue May 14, 2019
In the case of networking issues that don't make sense as described:
purescript#196, you may need to
install netbase. This adds a note about that to the `Installation`
section of the readme
@ericbmerritt
Copy link
Contributor Author

#199 - may not be in the right form/layout, but hope it helps.

ericbmerritt added a commit to ericbmerritt/spago that referenced this issue May 14, 2019
In the case of networking issues that don't make sense as described
in purescript#196, you may need to install netbase. This adds a FAQ entry about
that to the `FAQ` section of the readme
ericbmerritt added a commit to ericbmerritt/spago that referenced this issue May 14, 2019
In the case of networking issues that don't make sense as described
in purescript#196, you may need to install netbase. This adds a FAQ entry about
that to the `FAQ` section of the readme
@f-f f-f closed this as completed in #199 May 15, 2019
f-f pushed a commit that referenced this issue May 15, 2019
* Minor spelling corrections and grammar changes to the README.md

* Add a FAQ entry relating to the host not found error

In the case of networking issues that don't make sense as described
in #196, you may need to install netbase. This adds a FAQ entry about
that to the `FAQ` section of the readme
elliotdavies pushed a commit to elliotdavies/spago that referenced this issue Jul 1, 2019
* Minor spelling corrections and grammar changes to the README.md

* Add a FAQ entry relating to the host not found error

In the case of networking issues that don't make sense as described
in purescript#196, you may need to install netbase. This adds a FAQ entry about
that to the `FAQ` section of the readme
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.

2 participants