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

Connection to Kafka failed #490

Closed
MissNanLan opened this issue May 12, 2020 · 2 comments
Closed

Connection to Kafka failed #490

MissNanLan opened this issue May 12, 2020 · 2 comments

Comments

@MissNanLan
Copy link

Checking minimum requirements...
Removing network onpremise_default
Network onpremise_default not found.
Stopping sentry_onpremise_snuba-replacer_1 ...
Stopping sentry_onpremise_snuba-outcomes-consumer_1 ...
Stopping sentry_onpremise_snuba-consumer_1 ...
Stopping sentry_onpremise_snuba-api_1 ...
Stopping sentry_onpremise_memcached_1 ...
Stopping sentry_onpremise_smtp_1 ...
Stopping sentry_onpremise_postgres_1 ...
Stopping sentry_onpremise_symbolicator_1 ...
Stopping sentry_onpremise_kafka_1 ...
Stopping sentry_onpremise_clickhouse_1 ...
Stopping sentry_onpremise_zookeeper_1 ...
Stopping sentry_onpremise_redis_1 ...
Stopping sentry_onpremise_memcached_1 ... done
Stopping sentry_onpremise_smtp_1 ... done
Stopping sentry_onpremise_postgres_1 ... done
Stopping sentry_onpremise_symbolicator_1 ... done
Stopping sentry_onpremise_snuba-api_1 ... done
Stopping sentry_onpremise_snuba-replacer_1 ... done
Stopping sentry_onpremise_snuba-outcomes-consumer_1 ... done
Stopping sentry_onpremise_snuba-consumer_1 ... done
Stopping sentry_onpremise_redis_1 ... done
Stopping sentry_onpremise_clickhouse_1 ... done
Stopping sentry_onpremise_kafka_1 ... done
Stopping sentry_onpremise_zookeeper_1 ... done
Removing sentry_onpremise_web_run_a6223d1a53c1 ...
Removing sentry_onpremise_snuba-replacer_1 ...
Removing sentry_onpremise_snuba-outcomes-consumer_1 ...
Removing sentry_onpremise_snuba-consumer_1 ...
Removing sentry_onpremise_snuba-api_1 ...
Removing sentry_onpremise_memcached_1 ...
Removing sentry_onpremise_smtp_1 ...
Removing sentry_onpremise_postgres_1 ...
Removing sentry_onpremise_symbolicator_1 ...
Removing sentry_onpremise_kafka_1 ...
Removing sentry_onpremise_clickhouse_1 ...
Removing sentry_onpremise_zookeeper_1 ...
Removing sentry_onpremise_redis_1 ...
Removing sentry_onpremise_symbolicator_1 ... done
Removing sentry_onpremise_snuba-replacer_1 ... done
Removing sentry_onpremise_clickhouse_1 ... done
Removing sentry_onpremise_snuba-consumer_1 ... done
Removing sentry_onpremise_redis_1 ... done
Removing sentry_onpremise_postgres_1 ... done
Removing sentry_onpremise_snuba-outcomes-consumer_1 ... done
Removing sentry_onpremise_snuba-api_1 ... done
Removing sentry_onpremise_zookeeper_1 ... done
Removing sentry_onpremise_web_run_a6223d1a53c1 ... done
Removing sentry_onpremise_memcached_1 ... done
Removing sentry_onpremise_smtp_1 ... done
Removing sentry_onpremise_kafka_1 ... done
Removing network sentry_onpremise_default

Creating volumes for persistent storage...
Created sentry-data.
Created sentry-postgres.
Created sentry-redis.
Created sentry-zookeeper.
Created sentry-kafka.
Created sentry-clickhouse.
Created sentry-symbolicator.

Creating sentry/sentry.conf.py...
Creating sentry/config.yml...
Creating sentry/requirements.txt...

Generating secret key...
Secret key written to sentry/config.yml

Fetching and updating Docker images...

Some service image(s) must be built from source by running:
docker-compose build ingest-consumer snuba-cleanup worker post-process-forwarder web symbolicator-cleanup sentry-cleanup cron
latest: Pulling from getsentry/sentry
Digest: sha256:08e3f9bd6a62f0a9cc2f5382ba63f1b21f76b3a1b796f9ace63d26b9baefb461
Status: Image is up to date for getsentry/sentry:latest
docker.io/getsentry/sentry:latest

Building and tagging Docker images...

Building web
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
---> 6b092ea521b4
Step 3/4 : COPY . /usr/src/sentry
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Successfully tagged sentry-onpremise-local:latest
smtp uses an image, skipping
memcached uses an image, skipping
redis uses an image, skipping
postgres uses an image, skipping
zookeeper uses an image, skipping
kafka uses an image, skipping
clickhouse uses an image, skipping
snuba-api uses an image, skipping
snuba-consumer uses an image, skipping
snuba-outcomes-consumer uses an image, skipping
snuba-replacer uses an image, skipping
symbolicator uses an image, skipping
relay uses an image, skipping
nginx uses an image, skipping
Building snuba-cleanup ...
Building symbolicator-cleanup ...
Building web ...
Building cron ...
Building worker ...
Building ingest-consumer ...
Building post-process-forwarder ...
Building sentry-cleanup ...
Building web
Building ingest-consumer
Building symbolicator-cleanup
Building snuba-cleanup
Building worker
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> a4d6b4880dd5
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
---> 6b092ea521b4
Step 3/4 : COPY . /usr/src/sentry
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Successfully tagged sentry-onpremise-local:latest
Building ingest-consumer ... done
Building post-process-forwarder
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> 62f20c2c6a56
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
---> Using cache
---> 746b3451c44e
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> Using cache
---> e11e7e4fdf2c
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> d54e3ad93819

Successfully built d54e3ad93819
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
Successfully tagged symbolicator-cleanup-onpremise-local:latest
---> 6b092ea521b4
Building symbolicator-cleanup ... done
Step 3/4 : COPY . /usr/src/sentry
Building sentry-cleanup
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Successfully tagged sentry-onpremise-local:latest
Building worker ... done
Building cron
---> Running in 1d8632791155
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
---> 6b092ea521b4
Step 3/4 : COPY . /usr/src/sentry
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Successfully tagged sentry-onpremise-local:latest
Building web ... done
Step 1/5 : ARG BASE_IMAGE
Step 2/5 : FROM ${BASE_IMAGE}
---> 8d0cc60ca6f0
Step 3/5 : RUN apt-get update && apt-get install -y --no-install-recommends cron && rm -r /var/lib/apt/lists/*
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
---> Using cache
---> e073613e1581
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> 6b092ea521b4
Step 3/4 : COPY . /usr/src/sentry
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> bebed9a1fb0f
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Step 1/4 : ARG SENTRY_IMAGE
Step 2/4 : FROM ${SENTRY_IMAGE:-getsentry/sentry:latest}
---> Using cache
---> a39d45b05087

Successfully built a39d45b05087
---> 6b092ea521b4
Step 3/4 : COPY . /usr/src/sentry
Successfully tagged sentry-onpremise-local:latest
Building post-process-forwarder ... done
Successfully tagged sentry-cleanup-onpremise-local:latest
Building sentry-cleanup ... done
---> Using cache
---> c9cea1b26bf9
Step 4/4 : RUN if [ -s /usr/src/sentry/requirements.txt ]; then pip install -r /usr/src/sentry/requirements.txt; fi
---> Using cache
---> 8d0cc60ca6f0

Successfully built 8d0cc60ca6f0
Successfully tagged sentry-onpremise-local:latest
Building cron ... done
Get:1 http://deb.debian.org/debian buster InRelease [121 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [49.3 kB]
Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7905 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [197 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7380 B]
Fetched 8345 kB in 5s (1620 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
sensible-utils
Suggested packages:
anacron logrotate checksecurity
Recommended packages:
default-mta | mail-transport-agent
The following NEW packages will be installed:
cron sensible-utils
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 115 kB of archives.
After this operation, 333 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster/main amd64 sensible-utils all 0.0.12 [15.8 kB]
Get:2 http://deb.debian.org/debian buster/main amd64 cron amd64 3.0pl1-134+deb10u1 [99.0 kB]
�[91mdebconf: delaying package configuration, since apt-utils is not installed
�[0mFetched 115 kB in 1s (195 kB/s)
Selecting previously unselected package sensible-utils.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6849 files and directories currently installed.)
Preparing to unpack .../sensible-utils_0.0.12_all.deb ...
Unpacking sensible-utils (0.0.12) ...
Selecting previously unselected package cron.
Preparing to unpack .../cron_3.0pl1-134+deb10u1_amd64.deb ...
Unpacking cron (3.0pl1-134+deb10u1) ...
Setting up sensible-utils (0.0.12) ...
Setting up cron (3.0pl1-134+deb10u1) ...
Adding group `crontab' (GID 101) ...
Done.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Removing intermediate container 1d8632791155
---> d2cd575a15bb
Step 4/5 : COPY entrypoint.sh /entrypoint.sh
---> 0609f5f94952
Step 5/5 : ENTRYPOINT ["/entrypoint.sh"]
---> Running in 7b570c1d07b2
Removing intermediate container 7b570c1d07b2
---> 04bc0c92614b

Successfully built 04bc0c92614b
Successfully tagged snuba-cleanup-onpremise-local:latest
Building snuba-cleanup ... done

Docker images built.
Bootstrapping Snuba...
Creating network "sentry_onpremise_default" with the default driver
Creating sentry_onpremise_zookeeper_1 ...
Creating sentry_onpremise_clickhouse_1 ...
Creating sentry_onpremise_redis_1 ...
Creating sentry_onpremise_clickhouse_1 ... done
Creating sentry_onpremise_zookeeper_1 ... done
Creating sentry_onpremise_kafka_1 ...
Creating sentry_onpremise_redis_1 ... done
Creating sentry_onpremise_kafka_1 ... done

  • '[' b = - ']'
  • snuba bootstrap --help
  • set -- snuba bootstrap --force
  • set gosu snuba snuba bootstrap --force
  • exec gosu snuba snuba bootstrap --force
    2020-05-12 06:43:38,683 Connection to Kafka failed (attempt 0)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:40,695 Connection to Kafka failed (attempt 1)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:42,699 Connection to Kafka failed (attempt 2)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:44,668 Connection to Kafka failed (attempt 3)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:46,670 Connection to Kafka failed (attempt 4)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:48,673 Connection to Kafka failed (attempt 5)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:50,678 Connection to Kafka failed (attempt 6)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:52,683 Connection to Kafka failed (attempt 7)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:54,686 Connection to Kafka failed (attempt 8)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:56,691 Connection to Kafka failed (attempt 9)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:43:58,695 Connection to Kafka failed (attempt 10)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:00,698 Connection to Kafka failed (attempt 11)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:02,703 Connection to Kafka failed (attempt 12)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:04,708 Connection to Kafka failed (attempt 13)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:06,711 Connection to Kafka failed (attempt 14)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:08,716 Connection to Kafka failed (attempt 15)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:10,720 Connection to Kafka failed (attempt 16)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:12,728 Connection to Kafka failed (attempt 17)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:14,697 Connection to Kafka failed (attempt 18)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:16,701 Connection to Kafka failed (attempt 19)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:18,704 Connection to Kafka failed (attempt 20)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:20,707 Connection to Kafka failed (attempt 21)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:22,711 Connection to Kafka failed (attempt 22)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:24,716 Connection to Kafka failed (attempt 23)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:26,720 Connection to Kafka failed (attempt 24)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:28,725 Connection to Kafka failed (attempt 25)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:30,729 Connection to Kafka failed (attempt 26)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:32,734 Connection to Kafka failed (attempt 27)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:34,743 Connection to Kafka failed (attempt 28)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:36,747 Connection to Kafka failed (attempt 29)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:38,754 Connection to Kafka failed (attempt 30)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:40,759 Connection to Kafka failed (attempt 31)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:42,764 Connection to Kafka failed (attempt 32)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:44,734 Connection to Kafka failed (attempt 33)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:46,736 Connection to Kafka failed (attempt 34)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:48,740 Connection to Kafka failed (attempt 35)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:50,745 Connection to Kafka failed (attempt 36)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:52,750 Connection to Kafka failed (attempt 37)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:54,755 Connection to Kafka failed (attempt 38)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:56,760 Connection to Kafka failed (attempt 39)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:44:58,763 Connection to Kafka failed (attempt 40)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:00,769 Connection to Kafka failed (attempt 41)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:02,773 Connection to Kafka failed (attempt 42)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:04,780 Connection to Kafka failed (attempt 43)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:06,786 Connection to Kafka failed (attempt 44)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:08,791 Connection to Kafka failed (attempt 45)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:10,798 Connection to Kafka failed (attempt 46)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:12,802 Connection to Kafka failed (attempt 47)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:14,771 Connection to Kafka failed (attempt 48)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:16,775 Connection to Kafka failed (attempt 49)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:18,778 Connection to Kafka failed (attempt 50)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:20,783 Connection to Kafka failed (attempt 51)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:22,789 Connection to Kafka failed (attempt 52)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:24,796 Connection to Kafka failed (attempt 53)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:26,799 Connection to Kafka failed (attempt 54)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:28,804 Connection to Kafka failed (attempt 55)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:30,809 Connection to Kafka failed (attempt 56)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:32,815 Connection to Kafka failed (attempt 57)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:34,819 Connection to Kafka failed (attempt 58)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    2020-05-12 06:45:36,824 Connection to Kafka failed (attempt 59)
    Traceback (most recent call last):
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    Traceback (most recent call last):
    File "/usr/local/bin/snuba", line 11, in
    load_entry_point('snuba', 'console_scripts', 'snuba')()
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 722, in call
    return self.main(*args, **kwargs)
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File "/usr/local/lib/python3.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
    File "/usr/src/snuba/snuba/cli/bootstrap.py", line 56, in bootstrap
    client.list_topics(timeout=1)
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str="Failed to get metadata: Local: Broker transport failure"}
    Cleaning up...

I don't understand what's going on? Can you help me check out ? Thanks

@ChibangLW
Copy link

Have a look at #472 . There are two workarounds posted.

@BYK
Copy link
Collaborator

BYK commented May 18, 2020

Duplicate of #472.

Also, please put more effort into the issues you create next time such as wrapping log output in code blocks or providing that as an external file in a gist or something. This makes is very hard to see where the logs start and where you describe the issue.

@BYK BYK closed this as completed May 18, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants