Skip to content

Ensure SENTRY_OPTIONS_DIR/values exists in final image#7917

Open
aminvakil wants to merge 3 commits intogetsentry:masterfrom
aminvakil:ensure_SENTRY_OPTIONS_DIR_exists
Open

Ensure SENTRY_OPTIONS_DIR/values exists in final image#7917
aminvakil wants to merge 3 commits intogetsentry:masterfrom
aminvakil:ensure_SENTRY_OPTIONS_DIR_exists

Conversation

@aminvakil
Copy link
Copy Markdown
Contributor

Fixes getsentry/self-hosted#4306

Since 5b63073 final image does not contain /etc/sentry-options anymore, and so it floods logs with Failed to read directory /etc/sentry-options/values: No such file or directory (os error 2) because of that.

This PR ensures the env exists.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@aminvakil aminvakil requested a review from a team as a code owner May 1, 2026 11:56
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 05edf92. Configure here.

Comment thread Dockerfile Outdated
Comment thread Dockerfile Outdated
@aminvakil aminvakil marked this pull request as draft May 1, 2026 12:12
@aminvakil aminvakil changed the title Ensure SENTRY_OPTIONS_DIR exists in final image Ensure SENTRY_OPTIONS_DIR/values exists in final image May 1, 2026
@aminvakil aminvakil marked this pull request as ready for review May 1, 2026 12:55
@aldy505
Copy link
Copy Markdown
Collaborator

aldy505 commented May 5, 2026

From @hubertdeng123

we merged in a change to remove the logs there, instead i was going to cut a release and bump the li rary
this log is harmless so doesn’t seem to be urgent

@aminvakil aminvakil force-pushed the ensure_SENTRY_OPTIONS_DIR_exists branch from 01569da to 4dd6528 Compare May 5, 2026 14:17
@hubertdeng123
Copy link
Copy Markdown
Member

This is the change in question: getsentry/sentry-options#121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

26.4.1 Snuba Consumers all printing "Failed to read directory /etc/sentry-options/values: No such file or directory (os error 2)" non-stop

3 participants