{"record":{"id":"9563cda2a9c231d6","repo":"hashicorp/nomad","slug":"failed-to-retrieve-config-for-internal-plugin-v","errorCode":null,"errorMessage":"failed to retrieve config for internal plugin %v: %v","messagePattern":"failed to retrieve config for internal plugin (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"command/agent/plugins.go","lineNumber":79,"sourceCode":"\tinternal := make(map[loader.PluginID]*loader.InternalPluginConfig, len(catalog))\n\n\t// Grab the client options map if we can\n\tvar options map[string]string\n\tif a.config != nil && a.config.Client != nil {\n\t\toptions = a.config.Client.Options\n\t}\n\n\tfor id, reg := range catalog {\n\t\tif reg.Config == nil {\n\t\t\ta.logger.Error(\"skipping loading internal plugin because it is missing its configuration\", \"plugin\", id)\n\t\t\tcontinue\n\t\t}\n\n\t\tpluginConfig := reg.Config.Config\n\t\tif reg.ConfigLoader != nil {\n\t\t\tpc, err := reg.ConfigLoader(options)\n\t\t\tif err != nil {\n\t\t\t\treturn nil, fmt.Errorf(\"failed to retrieve config for internal plugin %v: %v\", id, err)\n\t\t\t}\n\n\t\t\tpluginConfig = pc\n\n\t\t\t// TODO We should log the config to warn users about upgrade pathing\n\t\t}\n\n\t\tinternal[id] = &loader.InternalPluginConfig{\n\t\t\tFactory: reg.Config.Factory,\n\t\t\tConfig:  pluginConfig,\n\t\t}\n\t}\n\n\treturn internal, nil\n}\n","sourceCodeStart":61,"sourceCodeEnd":95,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/command/agent/plugins.go#L61-L95","documentation":"Raised by internalPluginConfigs when a catalog entry's ConfigLoader callback returns an error while building the config for a built-in (internal) plugin, so the agent cannot construct that plugin's configuration and setupPlugins aborts.","triggerScenarios":"Thrown at command/agent/plugins.go:79 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped error for which internal plugin failed and why","Fix the client options (client.options) consumed by the plugin's ConfigLoader","Ensure built-in plugin registrations are not corrupted; rebuild or reinstall the Nomad binary"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"482b49bf1aec006f089bcfc7e632d8f6ac303e5e","analyzedAt":"2026-09-04T07:54:14.808Z","contentChangedAt":"2026-09-04T07:54:14.808Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}