Skip to content

Commit e07445d

Browse files
authored
fix(vroom): Explicitly set PROFILES_DIR for upcoming change (#3759)
PROFILES_DIR was defaulting to `/var/lib/sentry-profiles` which requires root access. When Vroom image decided to go with non-root default user, this started causing permission issues. Now the image is being refactored and it will not use `/var/lib/sentry-profiles` as the default path so we need to explicitly pass it.
1 parent 66c057b commit e07445d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SNUBA_IMAGE=getsentry/snuba:nightly
1414
RELAY_IMAGE=getsentry/relay:nightly
1515
SYMBOLICATOR_IMAGE=getsentry/symbolicator:nightly
1616
TASKBROKER_IMAGE=getsentry/taskbroker:nightly
17-
VROOM_IMAGE=getsentry/vroom:nightly
17+
VROOM_IMAGE=getsentry/vroom:a8e9e04
1818
HEALTHCHECK_INTERVAL=30s
1919
HEALTHCHECK_TIMEOUT=1m30s
2020
HEALTHCHECK_RETRIES=10

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ services:
511511
environment:
512512
SENTRY_KAFKA_BROKERS_PROFILING: "kafka:9092"
513513
SENTRY_KAFKA_BROKERS_OCCURRENCES: "kafka:9092"
514-
SENTRY_BUCKET_PROFILES: file://localhost//var/lib/sentry-profiles
514+
PROFILES_DIR: "/var/lib/sentry-profiles"
515515
SENTRY_SNUBA_HOST: "http://snuba-api:1218"
516516
volumes:
517517
- sentry-vroom:/var/lib/sentry-profiles
@@ -529,10 +529,11 @@ services:
529529
BASE_IMAGE: "$VROOM_IMAGE"
530530
entrypoint: "/entrypoint.sh"
531531
environment:
532+
PROFILES_DIR: "/var/lib/sentry-profiles"
532533
# Leaving the value empty to just pass whatever is set
533534
# on the host system (or in the .env file)
534535
SENTRY_EVENT_RETENTION_DAYS:
535-
command: '"0 0 * * * find /var/lib/sentry-profiles -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
536+
command: '"0 0 * * * find $PROFILES_DIR -type f -mtime +$SENTRY_EVENT_RETENTION_DAYS -delete"'
536537
volumes:
537538
- sentry-vroom:/var/lib/sentry-profiles
538539
profiles:

0 commit comments

Comments
 (0)