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

dependency failed to start: container sentry-self-hosted-clickhouse-1 is unhealthy #2563

Closed
kkflie opened this issue Nov 11, 2023 · 2 comments

Comments

@kkflie
Copy link

kkflie commented Nov 11, 2023

Self-Hosted Version

23.10.1

CPU Architecture

x86_64

Docker Version

24.0.2

Docker Compose Version

2.21.0

Steps to Reproduce

1.git clone repo by tag 23.10.1
2. ./install.sh

Expected Result

everything works fine

Actual Result

▶ Bootstrapping and migrating Snuba ...
Network sentry-self-hosted_default Creating
Network sentry-self-hosted_default Created
Container sentry-self-hosted-clickhouse-1 Creating
Container sentry-self-hosted-redis-1 Creating
Container sentry-self-hosted-zookeeper-1 Creating
Container sentry-self-hosted-zookeeper-1 Created
Container sentry-self-hosted-kafka-1 Creating
Container sentry-self-hosted-redis-1 Created
Container sentry-self-hosted-clickhouse-1 Created
Container sentry-self-hosted-kafka-1 Created
Container sentry-self-hosted-redis-1 Starting
Container sentry-self-hosted-clickhouse-1 Starting
Container sentry-self-hosted-zookeeper-1 Starting
Container sentry-self-hosted-redis-1 Started
Container sentry-self-hosted-clickhouse-1 Started
Container sentry-self-hosted-zookeeper-1 Started
Container sentry-self-hosted-zookeeper-1 Waiting
Container sentry-self-hosted-zookeeper-1 Healthy
Container sentry-self-hosted-kafka-1 Starting
Container sentry-self-hosted-kafka-1 Started
dependency failed to start: container sentry-self-hosted-clickhouse-1 is unhealthy
Error in install/bootstrap-snuba.sh:3.
'$dcr snuba-api bootstrap --no-migrate --force' exited with status 1
-> ./install.sh:main:31
--> install/bootstrap-snuba.sh:source:3

Cleaning up...

Event ID

No response

@hubertdeng123
Copy link
Member

I haven't seen this before:
Unknown setting allow_nullable_key for storage AggregatingMergeTree

Could you try deleting your clickhouse volume and recreating?

@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 Nov 14, 2023
@kkflie
Copy link
Author

kkflie commented Nov 15, 2023

@hubertdeng123 Thanks for replying. I solved this problem some days ago by changing the clickhouse image in /install/detect-platform.sh

diff --git a/install/detect-platform.sh b/install/detect-platform.sh
index 7f1f284..7908f55 100644
--- a/install/detect-platform.sh
+++ b/install/detect-platform.sh
@@ -20,7 +20,7 @@ fi
 export DOCKER_ARCH=$(docker info --format '{{.Architecture}}')
 if [[ "$DOCKER_ARCH" = "x86_64" ]]; then
   export DOCKER_PLATFORM="linux/amd64"
-  export CLICKHOUSE_IMAGE="yandex/clickhouse-server:20.3.9.70"
+  export CLICKHOUSE_IMAGE="altinity/clickhouse-server:21.8.13.1.altinitystable"
 elif [[ "$DOCKER_ARCH" = "aarch64" ]]; then
   export DOCKER_PLATFORM="linux/arm64"
   export CLICKHOUSE_IMAGE="altinity/clickhouse-server:21.6.1.6734-testing-arm"

@kkflie kkflie closed this as completed Nov 15, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants