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

Docker run blocked when starting HTTP server #96

Closed
Diak opened this issue Apr 6, 2020 · 1 comment
Closed

Docker run blocked when starting HTTP server #96

Diak opened this issue Apr 6, 2020 · 1 comment

Comments

@Diak
Copy link

Diak commented Apr 6, 2020

Hi,

I run the container as you describe it and all is ok only the HTTP server is not starting.
The logs when i run the container are :

INFO[0000] Starting openstack exporter version (version=1.0.0, branch=HEAD, revision=e6224ef4a069a9f7b0616ed4ee21bfc622382943) for cloud: horizon.dfp.ovh  source="main.go:47"
INFO[0000] Build context (go=go1.13.9, user=root@fd8bce58a223, date=20200327-21:44:22)  source="main.go:48"
...
INFO[0002] Adding metric: limits_vcpus_used to exporter: nova  source="exporter.go:132"
INFO[0002] Adding metric: limits_memory_max to exporter: nova  source="exporter.go:132"
INFO[0002] Adding metric: limits_memory_used to exporter: nova  source="exporter.go:132"
INFO[0002] Enabled exporter for service: compute         source="main.go:64"
INFO[0002] Adding metric: images to exporter: glance     source="exporter.go:132"
INFO[0002] Enabled exporter for service: image           source="main.go:64"
INFO[0002] Starting HTTP server on :9180                 source="main.go:88"

And it stays blocked at this line.

When i check the processes running i see the docker :
[xxx@xxx ~]# ps aux | grep openstack

cloud-u+ 30763  0.0  3.3 787196 63252 pts/0    Sl+  12:28   0:00 docker run -v /home/cloud-user/.config/openstack/clouds.yaml:/etc/openstack/clouds.yaml -it quay.io/niedbalski/openstack-exporter-linux-amd64:v1.0.0 horizon.dfp.ovh
root     30794  0.1  0.8 114156 15580 pts/0    Ssl+ 12:28   0:00 /bin/openstack-exporter horizon.dfp.ovh
root     30845  0.0  0.0 221900  1056 pts/1    S+   12:30   0:00 grep --color=auto openstack

When i check with netstat command (netstat -tanpu | grep LISTEN | grep 9180) i don't see 9180 port listening.

How can I check why the HTTP server is not starting plz ?

OS : RHEL 8.1
Docker version : 19.03.8, build afacb8b

@Diak
Copy link
Author

Diak commented Apr 7, 2020

Ok there was no problème. It's how docker run seems to work.
I used docker create et docker start with port forwarding and it works.
I close the issue.

@Diak Diak closed this as completed Apr 7, 2020
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

1 participant