0

I have set up a docker-compose stack on a server.

One of its services is jaeger collector and is configured as follows:

  collector:
    image: jaegertracing/jaeger-collector:1.8
    environment:
      - SPAN_STORAGE_TYPE=elasticsearch
      - ES_SERVER_URLS=http://some-elk-address:9200
    ports:
      - "14269"
      - "14268:14268"
      - "14267"
      - "14250"
      - "9411:9411"

From my machine:

$ nc -zv -w 2 server-hostname 9411
nc: connect to server-hostname port 9411 (tcp) failed: Connection refused

However, from within that server:

# ss -tula | grep 9411
tcp    LISTEN     0      128    :::9411                 :::*    
  • I think that should this was a firewall issue, I would get a time out, rather than a Connection refused – pkaramol Dec 27 '18 at 12:07
  • Iptables can do either, depending on the rules in place and the policies of the sysadmin. – stolenmoment Dec 27 '18 at 12:12
  • you are right; it is just a fresh ubuntu 16.04 installation with no messing of iptables whatsoever – pkaramol Dec 27 '18 at 12:19
1

The problem is most likely related to (as the ss output above clearly hints) that the service is only listening for IPv6 connections

root@server-hostname:~/# ss -tula -4 | grep 9411
root@server-hostname:~/# ss -tula -6 | grep 9411
tcp    LISTEN     0      128    :::9411                 :::*                    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.