Below is a “check-list” I usually go through when a Thanos Compactor just … stops … without throwing a hard error.
Pick the items that look most relevant for your setup and let me know what you find—we can dig deeper once we have a signal of where it’s stuck.
1. Is the process really running?
bash
ps -ef | grep thanos
• If it exited immediately, you may have started it without --wait.
– Compactor does one compaction pass and stops unless --wait is set.
• If it is running, grab a thread-dump / goroutine dump (⇢ kill -QUIT <pid> on Linux) and keep it for later.
Running multiple compactors?
• Every compactor needs unique--compact.concurrency scope, or you shard by label via --selector.relabel-config.
• If sharding mis-matches the data, a compactor might end up with zero blocks and therefore do nothing (no error!).
6. Object-storage & permissions
Transient network problems or wrong IAM policy can manifest as “sits there doing nothing”.
Quick test:
bash
AWS_REGION=… aws s3 ls s3://<bucket>/01F…
and
bash
thanos tools bucket verify --repair --delete-flag
If you get 403 / AccessDenied inside compactor logs at debug level, fix credentials.
7. Web UI port 10902
Hit http://<compactor-host>:10902/ ➜ “Compactor”.
• The Block View will show current plan, overlaps, deletion marks, next scheduled compactions.
• Click the stores page to confirm compactable blocks count.
8. Version mismatch or bug
Run thanos --version. Some older builds got stuck on:
• v0.24 blocking deletion marks forever in some edge cases (fixed in 0.25).
• v0.29 overlap repair recursion bug.
If you are not on recent stable (≥ 0.33 as of mid-2024) try upgrading one minor version.
9. The nuclear option – start locally
Sometimes easier to reproduce:
bash
# Download block dir locally
thanos tools bucket download …
# Run local compactor
thanos compact --data-dir=./blocks \
--log.level=debug
You’ll see exactly where the planner decides “nothing to do” or where it panics.
Quick next steps
Increase log level (--log.level=debug) and watch for any of the keywords above.
Run thanos tools bucket inspect and paste the last few lines here.
Let me know: Thanos version, flags you run compactor with, and object-store backend (S3, GCS, …).
We’ll narrow it down fast once we have those details 🚀