New install fails on Ubuntu 20.04 - kafta errors

BTW what’s the issue you are you really trying to solve? Just random kafka-errors during install? If it’s just that you can probably just ignore them.

@Alexander if you actually read the thread you would know that its about Relay and Snuba not being able to connect to kafka at all.

I have read the thread, several times. Either Im blind or theres not much more than errors from the install-log.

Just did another fresh install

Ubuntu 20.04 + sentry onpremise and get the same error.

Has anyone got sentry working on Ubuntu 20.04 ?

Very happy to share a login to the server - if helpful.

dave@staging:~/onpremise$ pwd
/home/dave/onpremise
dave@staging:~/onpremise$ docker -v
Docker version 19.03.8, build afacb8b7f0
dave@staging:~/onpremise$ docker-version -v
docker-version: command not found
dave@staging:~/onpremise$ docker-compose -v
docker-compose version 1.25.0, build unknown
dave@staging:~/onpremise$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
dave@staging:~/onpremise$ ls -lt
total 164
-rw-rw-r-- 1 dave dave 19233 Dec 22 12:55 sentry_install_log-2020-12-22_12-54-21.txt
-rw-rw-r-- 1 dave dave 37332 Dec 22 12:53 sentry_install_log-2020-12-22_12-48-59.txt
drwxrwxr-x 2 dave dave 4096 Dec 22 12:53 geoip
drwxrwxr-x 2 dave dave 4096 Dec 22 12:53 relay
drwxrwxr-x 2 dave dave 4096 Dec 22 12:49 sentry
drwxrwxr-x 2 dave dave 4096 Dec 22 12:49 symbolicator
-rw-rw-r-- 1 dave dave 310 Dec 22 12:48 sentry_install_log-2020-12-22_12-48-23.txt
-rw-rw-r-- 1 dave dave 141 Dec 22 12:47 sentry_install_log-2020-12-22_12-47-17.txt
-rw-rw-r-- 1 dave dave 4733 Dec 22 12:46 LICENSE
-rw-rw-r-- 1 dave dave 5560 Dec 22 12:46 README.md
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 clickhouse
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 cron
-rw-rw-r-- 1 dave dave 9111 Dec 22 12:46 docker-compose.yml
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 install
-rwxrwxr-x 1 dave dave 14277 Dec 22 12:46 install.sh
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 nginx
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 scripts
-rwxrwxr-x 1 dave dave 4311 Dec 22 12:46 test.sh
drwxrwxr-x 2 dave dave 4096 Dec 22 12:46 zookeeper
dave@staging:~/onpremise$

How do I upload the install .txt log files to here ?

The upload option only appears to support image formats

This is the critical error - no connection to kafka


  • snuba bootstrap --help^M
  • set – snuba bootstrap --no-migrate --force^M
  • set gosu snuba snuba bootstrap --no-migrate --force^M
  • exec gosu snuba snuba bootstrap --no-migrate --force^M
    %3|1608641422.211|FAIL|rdkafka#producer-1| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.18.0.5:9092 failed: Connection refused (after 2ms in state CONNECT)^M
    2020-12-22 12:50:23,209 Connection to Kafka failed (attempt 0)^M
    Traceback (most recent call last):^M
    File “/usr/src/snuba/snuba/cli/bootstrap.py”, line 55, in bootstrap^M
    client.list_topics(timeout=1)^M
    cimpl.KafkaException: KafkaError{code=_TRANSPORT,val=-195,str=“Failed to get metadata: Local: Broker transport failure”}^M
    %3|1608641423.211|FAIL|rdkafka#producer-1| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.18.0.5:9092 failed: Connection refused (after 1ms in state CONNECT, 1 identical error(s) suppressed)^M
    %3|1608641424.213|FAIL|rdkafka#producer-2| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.18.0.5:9092 failed: Connection refused (after 1ms in state CONNECT)^M
    %3|1608641425.212|FAIL|rdkafka#producer-2| [thrd:kafka:9092/bootstrap]: kafka:9092/bootstrap: Connect to ipv4#172.18.0.5:9092 failed: Connection refused (after 0ms in state CONNECT, 1 identical error(s) suppressed)^M
    2020-12-22 12:50:25,214 Connection to Kafka failed (attempt 1)^M

The ^M in the log file look very windows like…

The whole file would be helpful. Maybe pastebin.com?

Install logs are here - also some dock-compose logs…let me know if anything more is needed.

Okay nice!
can you access the instance from a browser?
From the log I can not really see any issues.

Im still wondering this :slight_smile:
Do you see any issues in Sentry?

Yes. I have reinstalled a fresh vm with 20.04 and currently running 20.12.1. But I did install docker myself instead of installing it from the feature list when installing Ubuntu.

With these commands:

Summary

#Install docker
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository “deb [arch=amd64] Index of linux/ubuntu/ focal stable”
sudo apt update
sudo apt install docker-ce -y
#Install latest docker-compose
sudo curl -L “https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)” -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.