Skip to Content
Docs

Troubleshooting

Check Site Worker readiness, hosted sign-in, and configuration changes.

For image build or push failures, deployment inspection, old images, logs, and runtime limits, start with Worker Troubleshooting. Use the checks below for Site-specific configuration and authentication issues.

Site Source Initialization Fails

  • If Create repository lists no GitHub connections, check that the Connection shows Connected for the intended account. See GitHub Connection setup.
  • If the repository name or Deployed Worker ID is already taken, choose an unused name in the GitHub account or an unused Worker ID in the tenant, respectively. If the error says GitHub already created the repository but setup or linking failed, inspect that repository before retrying.
  • If an older Site shows Open in GitHub in place of the source controls, it uses the legacy GitHub Releases source. Open its existing repository to work on its code.

The Site Worker Does Not Become Ready

Inspect readiness under the Worker's Deployment tab. A Running status alone does not verify the application.

  • Confirm that SITE_ID names an existing Site in the intended tenant, with the intended Site version and Auth Profile. See Understand the Site Binding.
  • Confirm that the Worker uses managed-site-worker and its IMAGE option selects the intended application image. For the Astro starter, build in DEPLOYMENT=WORKER mode to produce the standalone server. Other frameworks must meet the Site image contract.

The managed Site template supplies gateway readiness checks; the application does not need a custom health route. Follow Deploy and Verify to check actual hosted content and access.

Hosted Sign-In Fails

Check the Site's selected Auth Profile. If you created the Site User in advance, confirm that it belongs to that profile. For a first BYO sign-in, check that the identity meets the provider requirements.

  • For BYO Stytch, verify the profile's project settings and that the project allows the hosted origin and sign-in redirect.
  • For Managed Stytch, restart or update the Worker if you added authentication to a running Site or switched it from BYO. This registers the Worker URL, verified custom domains, and sign-in redirects. Then test sign-in, sign-out, and protected routes at the affected URL. See Authentication and Browser Origins.

site-auth.local.json configures local development only. Editing it or the Site's Test Auth Profile does not change hosted authentication. See Configure BYO Stytch for Production and Local Development.

Visitors Are Sent Back Through Sign-In

If sign-in works on the home page but expires on other protected pages, check that each signed-in page renders <cds-user>. The Astro starter renders it in src/pages/index.astro. To share it across pages, move it and its authentication and session settings into their shared layout and remove the home-page copy. Other frameworks must keep their Stytch frontend SDK active. See Keep Sessions Fresh on Every Page.

Configuration or User Changes Have Not Appeared

For Site or Auth Profile changes, follow Apply Site Configuration Changes, especially when SITE_ID pins a Site version. For saved user changes or session revocation, see Update a Site User for cache and JWT-expiry behavior.

Get Help

Contact Contextual support with the tenant ID, Site ID, Worker ID, failing step, and non-secret error. Do not include tokens, session cookies, full authentication configuration, or private application data.