From ac08d385c0cd5b9a1b0c76aa4ec4d108ee7e0c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Fri, 19 Sep 2025 20:52:11 +0200 Subject: [PATCH] SigNoz: Fix wrong URL for Zookeeper (#7742) * Fix install * Update signoz-install.sh --- install/signoz-install.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/install/signoz-install.sh b/install/signoz-install.sh index bb63e2ff0..f24b65f38 100644 --- a/install/signoz-install.sh +++ b/install/signoz-install.sh @@ -30,12 +30,13 @@ $STD apt-get install -y clickhouse-server clickhouse-client msg_ok "Setup ClickHouse" msg_info "Setting up Zookeeper" -curl -fsSL "https://dlcdn.apache.org/zookeeper/zookeeper-3.8.4/apache-zookeeper-3.8.4-bin.tar.gz" -o "$HOME/zookeeper.tar.gz" +ZOOURL=$(curl -fsSL https://dlcdn.apache.org/zookeeper/current/ | grep -o 'apache-zookeeper-[0-9.]\+-bin\.tar\.gz' | head -n1) +curl -fsSL "https://dlcdn.apache.org/zookeeper/current/$ZOOURL" -o ~/zookeeper.tar.gz tar -xzf "$HOME/zookeeper.tar.gz" -C "$HOME" mkdir -p /opt/zookeeper mkdir -p /var/lib/zookeeper mkdir -p /var/log/zookeeper -cp -r ~/apache-zookeeper-3.8.4-bin/* /opt/zookeeper +cp -r ~/apache-zookeeper-*-bin/* /opt/zookeeper cat </opt/zookeeper/conf/zoo.cfg tickTime=2000 @@ -104,8 +105,8 @@ fetch_and_deploy_gh_release "signoz-schema-migrator" "SigNoz/signoz-otel-collect msg_info "Running ClickHouse migrations" cd /opt/signoz-schema-migrator/bin -$STD ./signoz-schema-migrator sync --dsn="tcp://localhost:9000?password=" --replication=true --up= -$STD ./signoz-schema-migrator async --dsn="tcp://localhost:9000?password=" --replication=true --up= +$STD ./signoz-schema-migrator sync --dsn="tcp://localhost:9000?password=" --replication=true --up= +$STD ./signoz-schema-migrator async --dsn="tcp://localhost:9000?password=" --replication=true --up= msg_ok "ClickHouse Migrations Completed" fetch_and_deploy_gh_release "signoz" "SigNoz/signoz" "prebuild" "latest" "/opt/signoz" "signoz-community_linux_amd64.tar.gz" @@ -256,7 +257,7 @@ customize msg_info "Cleaning up" rm -rf ~/zookeeper.tar.gz -rm -rf ~/apache-zookeeper-3.8.4-bin +rm -rf ~/apache-zookeeper-*-bin $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"