apache / pulsar

Apache Pulsar - distributed pub-sub messaging system
https://pulsar.apache.org/
Apache License 2.0
14.23k stars 3.58k forks source link

[Bug] finishConnect(..) failed: Connection refused: #22060

Open tomasantunes opened 8 months ago

tomasantunes commented 8 months ago

Search before asking

Version

Ubuntu 20.04.6 Apache Pulsar 3.2.0

Minimal reproduce step

Use the following command to start a docker container:

docker run --detach -p 6650:6650 -p 3072:8080 --restart unless-stopped --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:3.2.0 bin/pulsar standalone

What did you expect to see?

No errors.

What did you see instead?

I get the following error on docker log:

2024-02-16T10:32:41,590+0000 [pulsar-io-18-11] ERROR org.apache.bookkeeper.proto.PerChannelBookieClient - C         ould not connect to bookie: [id: 0xaa72b664, L:/172.17.0.6:58520]/172.17.0.7:40643, current state CONNECTIN         G :
io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: /         172.17.0.7:40643
Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused

Anything else?

No response

Are you willing to submit a PR?

lhotari commented 8 months ago

I tried reproducing with Ubuntu 22.04 and I couldn't find a problem. I wonder if you have a firewall (sudo ufw status?) enabled that blocks the traffic?