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

carbonapi exposed but unreachable #19

Open
tredeske opened this issue Apr 5, 2021 · 2 comments
Open

carbonapi exposed but unreachable #19

tredeske opened this issue Apr 5, 2021 · 2 comments

Comments

@tredeske
Copy link

tredeske commented Apr 5, 2021

The carbonapi port (8081) is exposed, but unreachable, even if mapped at runtime.

Mapping the port at runtime with -p 8081:8081 appears to work, but when you connect to the port, you get

connection reset by peer

The issue is that the carbonapi server binds to 127.0.0.1 instead of 0.0.0.0.

Please have carbonapi bind to 0.0.0.0 by default. This will enable mapping 8081 at runtime to work.

@deniszh
Copy link
Member

deniszh commented Apr 5, 2021

Hmm, looks like image was not properly rebuilt after merging last commits. Config says "0.0.0.0:8081" but inside image I still see "localhost:8081". I will rebuild image, but you can easy fix that using env variables, like -e CARBONAPI_LISTEN=0.0.0.0:8081

@deniszh
Copy link
Member

deniszh commented Apr 5, 2021

I refreshed versions a bit, let's see if it triggers proper build. Also, please note that you need only carbonapi - we have https://hub.docker.com/r/gographite/carbonapi which updating automatically after every new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants