Skip to content

external-install: page shows app uninstalled but reinstall is blocked as if still installed #112441

@sentry-junior

Description

@sentry-junior

Summary

On the external-install page, after an integration is uninstalled (or deletion fails silently — see related #112438), the UI correctly shows the app as uninstalled. However, attempting to reinstall it fails because the backend still considers the app installed. The UI state and backend state are out of sync.

Steps to reproduce

  1. Install a Sentry app integration via the external-install page
  2. Uninstall the integration (e.g. via integration settings)
  3. Return to the external-install page — it shows the app as uninstalled
  4. Attempt to reinstall — the install flow fails or is blocked, as if the app is still installed

Expected behavior

After a successful uninstall, reinstalling the app via the external-install page should succeed. If the backend still considers the app installed, the UI should reflect that state consistently rather than showing conflicting information.

Actual behavior

  • UI shows app as uninstalled
  • Reinstall attempt is rejected by the backend (or the install flow silently fails)
  • The user has no recourse or clear error message

Root cause hypotheses

  • High confidence: The uninstall hook never fired (backend installation record was not cleaned up), so the app remains installed in the database despite the UI treating it as gone — likely related to Integration deletion is very slow on uninstall #112438 where deletion is slow and may not complete.
  • Medium confidence: A race condition or async cleanup failure left a stale SentryAppInstallation record that blocks re-install.

Related

Action taken on behalf of David Cramer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions