{"record":{"id":"0bd7892cd6b11c84","repo":"Netflix/chaosmonkey","slug":"not-terminating-could-not-retrieve-config-for-app","errorCode":null,"errorMessage":"not terminating: Could not retrieve config for app=%s","messagePattern":"not terminating: Could not retrieve config for app=(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"term/term.go","lineNumber":126,"sourceCode":"\t*/\n\tif d.Env.InTest() && !leashed {\n\t\treturn UnleashedInTestEnv{}\n\t}\n\n\tvar killer chaosmonkey.Terminator\n\n\tif leashed {\n\t\tkiller = leashedKiller{}\n\t} else {\n\t\tkiller = d.T\n\t}\n\n\t// get Chaos Monkey config info for this app\n\tappName := group.App()\n\tappCfg, err := d.ConfGetter.Get(appName)\n\n\tif err != nil {\n\t\treturn errors.Wrapf(err, \"not terminating: Could not retrieve config for app=%s\", appName)\n\t}\n\n\tif !appCfg.Enabled {\n\t\tlog.Printf(\"not terminating: enabled=false for app=%s\", appName)\n\t\treturn nil\n\t}\n\n\tif appCfg.Whitelist != nil {\n\t\tlog.Printf(\"not terminating: app=%s has a whitelist which is no longer supported\", appName)\n\t\treturn nil\n\t}\n\n\tinstance, ok := PickRandomInstance(group, *appCfg, d.Dep)\n\tif !ok {\n\t\tlog.Printf(\"No eligible instances in group, nothing to terminate: %+v\", group)\n\t\treturn nil\n\t}\n","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/Netflix/chaosmonkey/blob/eaa28fb761c0ebe8644d1333e5d164e9cc3071e9/term/term.go#L108-L144","documentation":"Fires in doTerminate when d.ConfGetter.Get(appName) fails to fetch the Chaos Monkey configuration for the app named by the instance group (missing config, storage/backend error). Without the app config (enabled flag, whitelist), no termination decision can be made, so the function aborts.","triggerScenarios":"Thrown at term/term.go:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check connectivity and credentials to the app-config source (usually Spinnaker)","Verify the app exists and has chaosmonkey config attached","Retry on transient Spinnaker failures"],"exampleFix":null,"handlingStrategy":"retry","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"}