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

ipfs-cluster docker container is not reachable #1094

Closed
pontiyaraja opened this issue Apr 27, 2020 · 9 comments
Closed

ipfs-cluster docker container is not reachable #1094

pontiyaraja opened this issue Apr 27, 2020 · 9 comments
Labels
kind/support A question or request for support

Comments

@pontiyaraja
Copy link

pontiyaraja commented Apr 27, 2020

Additional information:

  • OS: Ubuntu 18.04
  • IPFS Cluster version: docker pull ipfs/ipfs-cluster:latest
  • Installation method: docker hub

Describe the bug:

**> The API configuration in service.json file is not updating the REST API Listner to 0.0.0.0/tcp/9094

its updating to 127.0.0.1/tcp/9094**

@hsanjuan

@hsanjuan
Copy link
Collaborator

hsanjuan commented Apr 27, 2020

Hello,

you need to set environment variable: CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS=/ip4/0.0.0.0/tcp/9094 . Did you read somewhere that the rest api listener would be updated to 0.0.0.0?

It did this in the past, but since everything is controllable with env vars, we don't do it anymore.

@hsanjuan hsanjuan added the kind/support A question or request for support label Apr 27, 2020
@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

Thank you @hsanjuan but, better to handle it from a script like ipfs

@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

what about proxy and swarm endpoints ?

@hsanjuan
Copy link
Collaborator

hsanjuan commented Apr 27, 2020

Thank you @hsanjuan but, better to handle it from a script like ipfs

IPFS does it in a script because it cannot understand env vars. It is much better to do env vars, particularly for any kind of cloud deployment. You can nevertheless replace the entrypoint with whatever script you like. The proxy and swarm endpoints work the same way with env vars: https://cluster.ipfs.io/documentation/reference/configuration/#using-environment-variables-to-overwrite-configuration-values

@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

@hsanjuan I tried it by setting ENV variables

ENV IPFS_CLUSTER_RESTAPI_HTTPLISTENMULTIADDRESS /ip4/0.0.0.0/tcp/9094 ENV IPFS_CLUSTER_IPFSPROXY_LISTENMULTIADDRESS /ip4/0.0.0.0/tcp/9095

still its failing to connect

@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

I'm suing Kubernetes node port service type

@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

@hsanjuan why that environment variable not set in docker https://github.com/ipfs/ipfs-cluster/blob/master/Dockerfile

@hsanjuan
Copy link
Collaborator

hsanjuan commented Apr 27, 2020

Please ask in discuss.ipfs.io. This is not an issue with the codebase and I tried myself and things work as expected with Docker -e 'envname=value and -p 9094:9094. I don't know much about Kubernetes myself so I can't help there.

@pontiyaraja
Copy link
Author

pontiyaraja commented Apr 27, 2020

its not a discussion @hsanjuan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants