{"record":{"id":"7c4ac4170a03aae9","repo":"crowdsecurity/crowdsec","slug":"only-one-follow-stderr-parameters-is-required-n","errorCode":null,"errorMessage":"only one 'follow_stderr' parameters is required, not many","messagePattern":"only one 'follow_stderr' parameters is required, not many","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/acquisition/modules/docker/config.go","lineNumber":277,"sourceCode":"\t\t\td.containerLogsOptions.Until = v[0]\n\t\tcase \"since\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'since' parameters is required, not many\")\n\t\t\t}\n\t\t\td.containerLogsOptions.Since = v[0]\n\t\tcase \"follow_stdout\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'follow_stdout' parameters is required, not many\")\n\t\t\t}\n\t\t\tfollowStdout, err := strconv.ParseBool(v[0])\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"parsing 'follow_stdout' parameters: %s\", err)\n\t\t\t}\n\t\t\td.Config.FollowStdout = followStdout\n\t\t\td.containerLogsOptions.ShowStdout = followStdout\n\t\tcase \"follow_stderr\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'follow_stderr' parameters is required, not many\")\n\t\t\t}\n\t\t\tfollowStdErr, err := strconv.ParseBool(v[0])\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"parsing 'follow_stderr' parameters: %s\", err)\n\t\t\t}\n\t\t\td.Config.FollowStdErr = followStdErr\n\t\t\td.containerLogsOptions.ShowStderr = followStdErr\n\t\tcase \"docker_host\":\n\t\t\tif len(v) != 1 {\n\t\t\t\treturn errors.New(\"only one 'docker_host' parameters is required, not many\")\n\t\t\t}\n\t\t\topts = append(opts, client.WithHost(v[0]))\n\t\t}\n\t}\n\n\td.Client, err = client.New(opts...)\n\tif err != nil {\n\t\treturn err","sourceCodeStart":259,"sourceCodeEnd":295,"githubUrl":"https://github.com/crowdsecurity/crowdsec/blob/909b5157986a2b2c2163300fdaef5ed01289f7d2/pkg/acquisition/modules/docker/config.go#L259-L295","documentation":"Validation guard in ConfigureByDSN of the docker source: boolean DSN parameters like 'follow_stderr' must appear at most once; the query string repeated the parameter, which is ambiguous, so configuration fails.","triggerScenarios":"Thrown at pkg/acquisition/modules/docker/config.go:277 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Specify follow_stderr=true or false exactly once","Combine with a single follow_stdout if you need both streams"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"909b5157986a2b2c2163300fdaef5ed01289f7d2","analyzedAt":"2026-09-06T12:27:26.012Z","contentChangedAt":"2026-09-06T12:27:26.012Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}