self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

How to check if sentry-cleanup is working (logs?)?

Open klemen-df opened this issue 1 year ago • 1 comments

Self-Hosted Version

23.12.0

CPU Architecture

x86_64

Docker Version

26.0.2

Docker Compose Version

2.26.1

Steps to Reproduce

  1. docker compose ps
  2. docker compose logs sentry-cleanup

Expected Result

I would like to see some output of the cleanup task

Actual Result

  1. docker compose ps NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS sentry-self-hosted-sentry-cleanup-1 sentry-cleanup-self-hosted-local "/entrypoint.sh '0 0…" sentry-cleanup 9 hours ago Up About an hour 9000/tcp
  2. docker compose logs sentry-cleanup sentry-cleanup-1 | Updating certificates in /etc/ssl/certs... sentry-cleanup-1 | 0 added, 0 removed; done. sentry-cleanup-1 | Running hooks in /etc/ca-certificates/update.d... sentry-cleanup-1 | done. sentry-cleanup-1 | SHELL=/bin/bash sentry-cleanup-1 | BASH_ENV=/container.env sentry-cleanup-1 | 0 0 * * * gosu sentry sentry cleanup --days 30 > /proc/1/fd/1 2>/proc/1/fd/2 sentry-cleanup-1 | Updating certificates in /etc/ssl/certs... sentry-cleanup-1 | 0 added, 0 removed; done. sentry-cleanup-1 | Running hooks in /etc/ca-certificates/update.d... sentry-cleanup-1 | done. sentry-cleanup-1 | SHELL=/bin/bash sentry-cleanup-1 | BASH_ENV=/container.env sentry-cleanup-1 | 0 0 * * * gosu sentry sentry cleanup --days 30 > /proc/1/fd/1 2>/proc/1/fd/2

Event ID

No response

klemen-df avatar Apr 19 '24 09:04 klemen-df

We could potentially add some "N seconds elapsed" style logging in the future, though it would not be a very high priority. We'd welcome a PR to this effect though! The code for sentry cleanup is located here, and a similar "N seconds elapsed" timer is defined and used here.

azaslavsky avatar Apr 22 '24 18:04 azaslavsky