Skip to content

Clickhouse corrupt after server failure #2832

@RoyvanEmpel

Description

@RoyvanEmpel

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

What are you trying to accomplish?

Hi,

The server that our self hosted sentry runt on had a hardware failure causing it to shutdown. After getting everything back up and running sentry no longer starts up.

Running docker compose up -d i get the following output:

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

I tried reinstalling using ./install.sh and after that i tried updating it to the latest version but i again get this output:

▶ Bootstrapping and migrating Snuba ...
Container sentry-self-hosted-zookeeper-1 Creating
Container sentry-self-hosted-redis-1 Creating
Container sentry-self-hosted-clickhouse-1 Creating
Container sentry-self-hosted-redis-1 Created
Container sentry-self-hosted-zookeeper-1 Created
Container sentry-self-hosted-kafka-1 Creating
Container sentry-self-hosted-clickhouse-1 Created
Container sentry-self-hosted-kafka-1 Created
Container sentry-self-hosted-clickhouse-1 Starting
Container sentry-self-hosted-zookeeper-1 Starting
Container sentry-self-hosted-redis-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:32
--> install/bootstrap-snuba.sh:source:3

Cleaning up...

How are you getting stuck?

Because of this sentry isn't starting. It seems that the clickhouse DB is corrupted, can i just drop the files of it and will it recover? I am guessing that issues are stored in it.
Maybe there is a command to try a self-repair?

Oh and BTW:
this says that the latest version is 24.3.0 while it is 24.2.0
https://develop.sentry.dev/self-hosted/releases/

Where in the product are you?

Other

Link

No response

DSN

No response

Version

24.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions