{"record":{"id":"a0ae7f0a12cb11b5","repo":"Netflix/chaosmonkey","slug":"not-terminating-could-not-determine-if-account-is","errorCode":null,"errorMessage":"not terminating: could not determine if account is enabled","messagePattern":"not terminating: could not determine if account is enabled","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"term/term.go","lineNumber":78,"sourceCode":"\t\treturn nil\n\t}\n\n\tproblem, err := d.Ou.Outage()\n\n\t// If the check for ongoing outage fails, we err on the safe side nd don't terminate an instance\n\tif err != nil {\n\t\treturn errors.Wrapf(err, \"not terminating: problem checking if there is an outage\")\n\t}\n\n\tif problem {\n\t\tlog.Println(\"not terminating: outage in progress\")\n\t\treturn nil\n\t}\n\n\taccountEnabled, err := d.MonkeyCfg.AccountEnabled(account)\n\n\tif err != nil {\n\t\treturn errors.Wrap(err, \"not terminating: could not determine if account is enabled\")\n\t}\n\n\tif !accountEnabled {\n\t\tlog.Printf(\"Not terminating: account=%s is not enabled in Chaos Monkey\", account)\n\t\treturn nil\n\t}\n\n\t// create an instance group from the command-line parameters\n\tgroup := grp.New(app, account, region, stack, cluster)\n\n\t// do the actual termination\n\treturn doTerminate(d, group)\n\n}\n\n// doTerminate does the actual termination\nfunc doTerminate(d deps.Deps, group grp.InstanceGroup) error {\n\tleashed, err := d.MonkeyCfg.Leashed()","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/Netflix/chaosmonkey/blob/eaa28fb761c0ebe8644d1333e5d164e9cc3071e9/term/term.go#L60-L96","documentation":"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.","triggerScenarios":"Thrown at term/term.go:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the accounts configuration (valid list of strings, correct types)","Verify remote config retrieval works if accounts come from a remote provider","Ensure the account name is spelled correctly"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eaa28fb761c0ebe8644d1333e5d164e9cc3071e9","analyzedAt":"2026-09-03T17:04:39.020Z","contentChangedAt":"2026-09-03T17:04:39.020Z","schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}