From ef23b54addb4fb50f30f49fcfea80b57629f9f1d Mon Sep 17 00:00:00 2001 From: Jesus Navas Orozco Date: Mon, 2 Dec 2024 02:09:25 +0100 Subject: [PATCH] [bitnami/clickhouse] fix startup issue when using json logs Signed-off-by: Jesus Navas Orozco --- .../24.3/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh | 2 +- .../24.8/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh | 2 +- .../24/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh | 2 +- bitnami/clickhouse/README.md | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bitnami/clickhouse/24.3/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh b/bitnami/clickhouse/24.3/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh index ec6386e62e1b0..80489fb542db4 100644 --- a/bitnami/clickhouse/24.3/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh +++ b/bitnami/clickhouse/24.3/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh @@ -243,7 +243,7 @@ clickhouse_start_bg() { error "ClickHouse failed to start" exit 1 fi - wait_for_log_entry "Application: Ready for connections" "$log_file" + wait_for_log_entry "Ready for connections" "$log_file" info "ClickHouse started successfully" } diff --git a/bitnami/clickhouse/24.8/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh b/bitnami/clickhouse/24.8/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh index ec6386e62e1b0..80489fb542db4 100644 --- a/bitnami/clickhouse/24.8/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh +++ b/bitnami/clickhouse/24.8/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh @@ -243,7 +243,7 @@ clickhouse_start_bg() { error "ClickHouse failed to start" exit 1 fi - wait_for_log_entry "Application: Ready for connections" "$log_file" + wait_for_log_entry "Ready for connections" "$log_file" info "ClickHouse started successfully" } diff --git a/bitnami/clickhouse/24/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh b/bitnami/clickhouse/24/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh index ec6386e62e1b0..80489fb542db4 100644 --- a/bitnami/clickhouse/24/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh +++ b/bitnami/clickhouse/24/debian-12/rootfs/opt/bitnami/scripts/libclickhouse.sh @@ -243,7 +243,7 @@ clickhouse_start_bg() { error "ClickHouse failed to start" exit 1 fi - wait_for_log_entry "Application: Ready for connections" "$log_file" + wait_for_log_entry "Ready for connections" "$log_file" info "ClickHouse started successfully" } diff --git a/bitnami/clickhouse/README.md b/bitnami/clickhouse/README.md index 0cf386f86e25b..91d18cbb46838 100644 --- a/bitnami/clickhouse/README.md +++ b/bitnami/clickhouse/README.md @@ -189,6 +189,8 @@ When the container is executed for the first time, it will execute the files wit In order to have your custom files inside the docker image you can mount them as a volume. +> NOTE: If you use JSON format for clickhouse logs and remove the message field of the logs, the application will fail to start if there are init or start scripts in any of those 2 folders. + ### Environment variables #### Customizable environment variables