diff --git a/src/sentry/receivers/core.py b/src/sentry/receivers/core.py index 882eb0894fea1..30a21a5468a9a 100644 --- a/src/sentry/receivers/core.py +++ b/src/sentry/receivers/core.py @@ -16,6 +16,7 @@ from sentry.services.hybrid_cloud.util import region_silo_function from sentry.signals import post_upgrade, project_created from sentry.silo import SiloMode +from sentry.utils.settings import is_self_hosted PROJECT_SEQUENCE_FIX = """ SELECT setval('sentry_project_id_seq', ( @@ -39,6 +40,9 @@ def wrapped(*args, **kwargs): def create_default_projects(**kwds): + if not is_self_hosted(): + return + create_default_project( # This guards against sentry installs that have SENTRY_PROJECT set to None, so # that they don't error after every migration. Specifically for single tenant.