Most installation problems are reported clearly by the installer. Fix the cause and run the installer again: it reuses your answers and continues from the stacks that already exist. A failed stack in ROLLBACK_COMPLETE is deleted and recreated automatically.

Prerequisite messages#

Message

What to do

Please run this script from the organization management account.

Open CloudShell (or set your credentials) in the management account, not the hub account.

Service Control Policies must be enabled

Enable the SCP policy type in AWS Organizations.

IAM Identity Center must be configured

Enable an organisation instance of IAM Identity Center. See IAM Identity Center.

An error mentioning Cost Explorer or GetCostAndUsage

Enable Cost Explorer in the management account and wait for it to become available.

Lambda concurrent executions limit must be at least 100 in the hub account

Request a quota increase in Service Quotas for the hub account and home region.

Python 3.8 or higher is required, curl or wget is required

Use CloudShell, or install the missing tool on your machine.

Version X not found in distribution bucket

Check the version number passed to --version.

Deployment problems#

Symptom

What to do

Installation failed: or Stack operation failed with status: …

Open CloudFormation in the account shown (management or hub) and read the stack's Events tab for the first failure. Fix it and re-run.

Access denied when deploying to the hub account

Check that OrganizationAccountAccessRole exists in the hub account and trusts the management account.

No issued certificates found in us-east-1

Request and validate an ACM certificate for your domain in us-east-1 in the hub account, or enter its ARN when asked.

VPC configuration is locked.

You can't switch between a new and an existing VPC after the database exists, unless you remove the Data, Compute and API stacks.

Credentials expired part-way

Sign in again and re-run the installer.

Temporary worker cleanup failed

Remove the leftover helper stack: run the installer with --cleanup-worker-stack SandboxStudio-InstallerWorker-{id}, using the name shown.

First administrator problems#

Symptom

What to do

A new installation failed after all the stacks were created, and re-running didn't ask for an administrator

Re-run with a configuration file that sets add_admin_users and admin_users, or contact support.

A Cognito user already exists for '…' but its email could not be verified as a match

A user with that email already exists in the Cognito user pool. Check it in the Cognito console, fix or remove it, and re-run.

… exists but the database write FAILED

Re-run the installer; this step is safe to repeat.

The administrator gets no sign-in code

Check spam folders. Cognito's default email service sends a limited number of emails a day; see Sign-in codes and invitations.

Upgrade problems (v1.2 to v1.3)#

Message

What to do

Installation aborted before deployment (pre-migration backup not completed)

The backup failed, so nothing was changed. Check RDS snapshot permissions and quotas in the hub account and re-run.

The Sandbox Studio issuer discovery document is not reachable on any URL tried

The migration couldn't reach Sandbox Studio's public address. Check the custom domain's DNS, the Web App URL, and outbound internet access from the compute subnets.

Some active leases do not have a working role

Re-run the installer, or suspend and resume the affected leases.

Leases listed as having no account permissions

Add permissions to their templates, then suspend and resume each lease.

To undo an upgrade, see Rolling back.

After installing or updating#

Symptom

What to do

Sign-in fails with an HTTP 500 error after an update, downgrade or restore

The API stage is out of date. The installer redeploys it automatically; if that failed, it prints a command like aws apigateway create-deployment --rest-api-id {id} --stage-name prod. Run it in the hub account.

Users get HTTP 403 errors

Their IP address isn't in the allow list, or they are on IPv6 while IPv4 is restricted. See Restricting access with IP allow lists.

Users get HTTP 429 errors

The WAF rate limit (200 requests per minute per IP) was reached, often when many users share one network address.

Users can't open sandbox accounts after a domain change or reinstall

Check that the Web App URL matches the address users use and that DNS points at the current CloudFront distribution. See Set up a custom domain.

Leftover databases#

A restore or rollback can leave database instances named sandbox-studio-rds-pre-restore-… or sandbox-studio-rds-old-…. The installer finds them on its next run and asks Delete these instances? A final snapshot of each is taken first. (recommended). Unattended runs only delete instances set aside more than 7 days ago.

Getting help#

Contact support@sandboxstudiosoftware.com or visit support.sandboxstudiosoftware.com. Include the installer output, the version you were installing, and the failing stack's events.