Netflix/chaosmonkey · error

not terminating: could not determine if account is enabled

Error message

not terminating: could not determine if account is enabled

What it means

Returned by term.Terminate when MonkeyCfg.AccountEnabled cannot determine whether the target account is enabled (e.g. accounts list misconfigured); termination aborts rather than risk killing an instance in a disabled account.

Source

Thrown at term/term.go:78

		return nil
	}

	problem, err := d.Ou.Outage()

	// If the check for ongoing outage fails, we err on the safe side nd don't terminate an instance
	if err != nil {
		return errors.Wrapf(err, "not terminating: problem checking if there is an outage")
	}

	if problem {
		log.Println("not terminating: outage in progress")
		return nil
	}

	accountEnabled, err := d.MonkeyCfg.AccountEnabled(account)

	if err != nil {
		return errors.Wrap(err, "not terminating: could not determine if account is enabled")
	}

	if !accountEnabled {
		log.Printf("Not terminating: account=%s is not enabled in Chaos Monkey", account)
		return nil
	}

	// create an instance group from the command-line parameters
	group := grp.New(app, account, region, stack, cluster)

	// do the actual termination
	return doTerminate(d, group)

}

// doTerminate does the actual termination
func doTerminate(d deps.Deps, group grp.InstanceGroup) error {
	leashed, err := d.MonkeyCfg.Leashed()

View on GitHub (pinned to eaa28fb761)

Solutions

  1. Fix the accounts configuration (valid list of strings, correct types)
  2. Verify remote config retrieval works if accounts come from a remote provider
  3. Ensure the account name is spelled correctly
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at term/term.go:78 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Netflix/chaosmonkey@eaa28fb761 (2026-09-03). Data as JSON: /api/errors/a0ae7f0a12cb11b5. Report an issue: GitHub.