From d709905dcf5338b6b2292a914d2711793957653e Mon Sep 17 00:00:00 2001 From: Armen Zambrano G Date: Tue, 21 Sep 2021 09:50:54 -0400 Subject: [PATCH] fix(dev): Use full path for Kafka container When we [upgraded the kafka and zookeeper images we use][1], we did not update the volume to use the full path (as the [instructions indicate][2]), thus, started to see this error: > Command [/usr/local/bin/dub path /var/lib/kafka/data writable] FAILED ! This change adds the full path. [1]: https://github.com/getsentry/sentry/pull/28574 [2]: https://docs.confluent.io/platform/current/installation/docker/operations/external-volumes.html#data-volumes-for-kafka-and-zk --- src/sentry/conf/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sentry/conf/server.py b/src/sentry/conf/server.py index 3800113b3767d2..1d5fcc74d19f9a 100644 --- a/src/sentry/conf/server.py +++ b/src/sentry/conf/server.py @@ -1757,7 +1757,7 @@ def build_cdc_postgres_init_db_volume(settings): "KAFKA_MESSAGE_MAX_BYTES": "50000000", "KAFKA_MAX_REQUEST_SIZE": "50000000", }, - "volumes": {"kafka": {"bind": "/var/lib/kafka"}}, + "volumes": {"kafka": {"bind": "/var/lib/kafka/data"}}, "only_if": "kafka" in settings.SENTRY_EVENTSTREAM or settings.SENTRY_USE_RELAY or settings.SENTRY_DEV_PROCESS_SUBSCRIPTIONS,