phacility/phabricator · error · Exception

This diff (" ") is associated with a repository (" ") that…

Error message

This diff ("%s") is associated with a repository ("%s") that does not have a Staging Area configured. You must configure a Staging Area to use CircleCI integration.

What it means

Error "This diff ("%s") is associated with a repository ("%s") that does not have a Staging Area configured. You must configure a Staging Area to use CircleCI integration." thrown in phacility/phabricator.

Solutions

  1. Configure a Staging Area for the repository in the repository's 'Storage' or hosting settings (repository.staging.uri)
  2. Verify the staging URI was saved correctly on the repository and is reachable
  3. If CircleCI integration is not actually needed, remove/disable the CircleCI build step so the URI lookup is not attempted
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/applications/differential/storage/DifferentialDiff.php:601 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/f1d1bfea03990479. Report an issue: GitHub.

Appendix: source

Thrown at src/applications/differential/storage/DifferentialDiff.php:601

          $diff_phid));
    }

    $repository = id(new PhabricatorRepositoryQuery())
      ->setViewer(PhabricatorUser::getOmnipotentUser())
      ->withPHIDs(array($repository_phid))
      ->executeOne();
    if (!$repository) {
      throw new Exception(
        pht(
          'This diff ("%s") is associated with a repository ("%s") which '.
          'could not be loaded.',
          $diff_phid,
          $repository_phid));
    }

    $staging_uri = $repository->getStagingURI();
    if (!$staging_uri) {
      throw new Exception(
        pht(
          'This diff ("%s") is associated with a repository ("%s") that '.
          'does not have a Staging Area configured. You must configure a '.
          'Staging Area to use CircleCI integration.',
          $diff_phid,
          $repository_phid));
    }

    $path = HarbormasterCircleCIBuildStepImplementation::getGitHubPath(
      $staging_uri);
    if (!$path) {
      throw new Exception(
        pht(
          'This diff ("%s") is associated with a repository ("%s") that '.
          'does not have a Staging Area ("%s") that is hosted on GitHub. '.
          'CircleCI can only build from GitHub, so the Staging Area for '.
          'the repository must be hosted there.',
          $diff_phid,

View on GitHub (pinned to 5720a38cfe)