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

Can't connect to Kafka #25

Closed
broonu opened this issue Jun 16, 2020 · 2 comments
Closed

Can't connect to Kafka #25

broonu opened this issue Jun 16, 2020 · 2 comments

Comments

@broonu
Copy link

broonu commented Jun 16, 2020

Hello,

I have installed containers openbmp/collector and openbmp_kafka following instructions, all in same host but openbmp/postgres can't connect to Kafka.
What's wrong?

I'm running with:

docker run -d \
	--name=openbmp_collector -e KAFKA_FQDN=localhost \
	--sysctl net.ipv4.tcp_keepalive_intvl=30 \
	--sysctl net.ipv4.tcp_keepalive_probes=5 \
	--sysctl net.ipv4.tcp_keepalive_time=180 \
	-p 5000:5000 \
	openbmp/collector

docker run -d \
	--name=openbmp_kafka \
	-e KAFKA_FQDN=localhost \
	-v /var/openbmp/kafka:/data/kafka \
	-p 2181:2181 -p 9092:9092 \
	openbmp/kafka

docker run -d \
	--name openbmp_psql \
	-h obmp-psql \
	-e ENABLE_RPKI=1 \
	-e ENABLE_IRR=1 \
	-e KAFKA_FQDN=kafka.domain \
	--add-host kafka.domain:172.17.0.1 \
	-e MEM=16 \
	--shm-size=512m \
	-v /var/openbmp/config:/config \
	-v /var/openbmp/postgres/main:/data/main \
	-v /var/openbmp/postgres/ts:/data/ts \
	-p 5432:5432 -p 9005:9005 -p 8080:8080 \
	openbmp/postgres
===> Updating /etc/hosts
===> Performing Kafka check
===> Checking Kafka bootstrap server connection
%3|1592348056.977|FAIL|rdkafka#producer-1| localhost:9092/0: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
Metadata for all topics (from broker -1: kafka.domain:9092/bootstrap):
 1 brokers:
  broker 0 at localhost:9092
===> Checking if we can successfully consume messages
%3|1592348057.025|FAIL|rdkafka#producer-1| kafka.domain:9092/bootstrap: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
% ERROR: Local: Broker transport failure: kafka.domain:9092/bootstrap: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
% ERROR: Local: All broker connections are down: 1/1 brokers are down: terminating
%3|1592348057.072|FAIL|rdkafka#consumer-1| localhost:9092/0: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
% ERROR: Local: Broker transport failure: localhost:9092/0: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
@broonu broonu closed this as completed Jun 16, 2020
@broonu broonu reopened this Jun 16, 2020
@broonu
Copy link
Author

broonu commented Jun 16, 2020

Close accidentally,

@broonu broonu closed this as completed Jun 17, 2020
@netyook
Copy link

netyook commented Sep 7, 2020

Hi @broonu how could solve that problem?

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