wiki:sentry_troubleshooting
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:sentry_troubleshooting [2024/08/26 09:21] – created antisa | wiki:sentry_troubleshooting [2026/05/27 08:16] (current) – [Postgres DB getting too big] antisa | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Sentry troubleshooting ====== | ====== Sentry troubleshooting ====== | ||
| ===== Postgres DB getting too big ===== | ===== Postgres DB getting too big ===== | ||
| - | One option is to truncate the nodestore_node table. Enter the DB: | + | One option is to truncate the nodestore_node table. |
| + | |||
| + | Enter the DB: | ||
| psql -U postgres | psql -U postgres | ||
| Line 13: | Line 15: | ||
| postgres=# TRUNCATE nodestore_node ; | postgres=# TRUNCATE nodestore_node ; | ||
| - | ====== | + | |
| + | ===== Kafka too big ===== | ||
| + | Try adapting the KAFKA_* env variables to this: | ||
| + | |||
| + | KAFKA_LOG_RETENTION_BYTES: | ||
| + | KAFKA_LOG_SEGMENT_BYTES: | ||
| + | KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: | ||
| + | KAFKA_LOG_SEGMENT_DELETE_DELAY_MS: | ||
| + | |||
| + | Example from docker-compose file: | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | kafka: | ||
| + | <<: *restart_policy | ||
| + | depends_on: | ||
| + | zookeeper: | ||
| + | <<: *depends_on-healthy | ||
| + | image: " | ||
| + | environment: | ||
| + | KAFKA_ZOOKEEPER_CONNECT: | ||
| + | KAFKA_ADVERTISED_LISTENERS: | ||
| + | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: | ||
| + | KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: | ||
| + | KAFKA_LOG_RETENTION_HOURS: | ||
| + | KAFKA_LOG_RETENTION_BYTES: | ||
| + | KAFKA_LOG_SEGMENT_BYTES: | ||
| + | KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: | ||
| + | KAFKA_LOG_SEGMENT_DELETE_DELAY_MS: | ||
| + | KAFKA_MESSAGE_MAX_BYTES: | ||
| + | KAFKA_MAX_REQUEST_SIZE: | ||
| + | CONFLUENT_SUPPORT_METRICS_ENABLE: | ||
| + | KAFKA_LOG4J_LOGGERS: | ||
| + | KAFKA_LOG4J_ROOT_LOGLEVEL: | ||
| + | KAFKA_TOOLS_LOG4J_LOGLEVEL: | ||
| + | ulimits: | ||
| + | nofile: | ||
| + | soft: 4096 | ||
| + | hard: 4096 | ||
| + | volumes: | ||
| + | - " | ||
| + | - " | ||
| + | - " | ||
| + | healthcheck: | ||
| + | <<: *healthcheck_defaults | ||
| + | test: [" | ||
| + | interval: 10s | ||
| + | timeout: 10s | ||
| + | retries: 30 | ||
| + | ... | ||
| + | </ | ||
| + | ==== Tested on ===== | ||
| * sentry_version: | * sentry_version: | ||
| * PostgreSQL 14.5 | * PostgreSQL 14.5 | ||
| + | ===== Can't start some containers ===== | ||
| + | |||
| + | <code | > | ||
| + | |||
| + | ERROR: for memcached | ||
| + | |||
| + | ERROR: for symbolicator-cleanup | ||
| + | |||
| + | ERROR: for smtp UnixHTTPConnectionPool(host=' | ||
| + | |||
| + | ERROR: for clickhouse | ||
| + | |||
| + | ERROR: for zookeeper | ||
| + | |||
| + | ERROR: for postgres | ||
| + | ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information. | ||
| + | If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60). | ||
| + | </ | ||
| + | |||
| + | Just run it with higher timeout value: | ||
| + | |||
| + | COMPOSE_HTTP_TIMEOUT=120 docker-compose ps | ||
| + | |||
| + | ==== Tested on ===== | ||
| + | * Sentry 20.6.037a7530 (docker) | ||
| ====== See also ====== | ====== See also ====== | ||
| * [[wiki: | * [[wiki: | ||
| ====== References ====== | ====== References ====== | ||
| + | * https:// | ||
| + | * https:// | ||
wiki/sentry_troubleshooting.1724664083.txt.gz · Last modified: by antisa
