Skip to content

Received "Unknown config option found" warning for enabling features from permanent feature list #3591

Open
@aldy505

Description

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

What are you trying to accomplish?

I'm trying to enable (and hopefully implement) the uptime monitoring feature on self-hosted. Here I am trying to debug on the configuration for enabling it.

I saw the required feature flags in order to do so, with one of it being setting the organizations:uptime to True as seen here on the src/sentry/features/permanent.py file:

https://github.com/getsentry/sentry/blob/c6ee47d0bb20b5fe21a7ed8c31e70995ae1294ff/src/sentry/features/permanent.py#L109-L110

So, on Sentry server config, these are enabled:

SENTRY_FEATURES.update(
    {
        feature: True
        for feature in (
            # ... the original feature flags
        )
        # Uptime Monitoring related flags
        + (
            "organizations:uptime",
            "organizations:slack-threads-refactor-uptime", # Enable new slack threads logic for uptime issues
            "organizations:insights-uptime", # Enable access to insights uptime view
            "organizations:uptime-automatic-hostname-detection",
            "organizations:uptime-automatic-subscription-creation",
            "organizations:uptime-create-issues", # Enable creating issues via the issue platform
            "organizations:uptime-settings", # Enables uptime related settings for projects and orgs
            # Below these are for issues platform
            "organizations:uptime-domain-failure-visible",
            "organizations:uptime-domain-failure-ingest",
            "organizations:uptime-domain-failure-post-process-group",
        )
    }
)

Yet during the Sentry container startup, this line was emitted from the log:

* Unknown config option found: 'uptime'

How are you getting stuck?

Then I try to debug this further by executing the Django shell inside the Docker container like so:

docker compose --env-file .env --env-file .env.custom exec web /etc/sentry/entrypoint.sh shell -c "from sentry.features import default_manager
print(default_manager.has(\"organizations:uptime\"))
"

This is the output:

Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
[WARN  tini (29992)] Tini is not running as PID 1 and isn't registered as a child subreaper.
Zombie processes will not be re-parented to Tini, so zombie reaping won't work.
To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.
* Unknown config option found: 'uptime'
False

Executing this on Django shell returns True:

docker compose --env-file .env --env-file .env.custom exec web /etc/sentry/entrypoint.sh shell -c "from django.conf import settings
print(settings.SENTRY_FEATURES[\"organizations:uptime\"])
"

Am I doing this wrong? Or is this a bug from the sentry code?

Where in the product are you?

Other

Link

No response

DSN

No response

Version

25.2.0

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status

      No status
    • Status

      Waiting for: Support

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions