{"record":{"id":"cf8c1cd222727f51","repo":"hashicorp/nomad","slug":"csi-volume-claim-gc-interval-should-be-greater-tha","errorCode":null,"errorMessage":"csi_volume_claim_gc_interval should be greater than 0s","messagePattern":"csi_volume_claim_gc_interval should be greater than 0s","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"command/agent/agent.go","lineNumber":482,"sourceCode":"\t\tdur, err := time.ParseDuration(gcThreshold)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tconf.BatchEvalGCThreshold = dur\n\t}\n\tif gcThreshold := agentConfig.Server.DeploymentGCThreshold; gcThreshold != \"\" {\n\t\tdur, err := time.ParseDuration(gcThreshold)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tconf.DeploymentGCThreshold = dur\n\t}\n\tif gcInterval := agentConfig.Server.CSIVolumeClaimGCInterval; gcInterval != \"\" {\n\t\tdur, err := time.ParseDuration(gcInterval)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t} else if dur <= time.Duration(0) {\n\t\t\treturn nil, fmt.Errorf(\"csi_volume_claim_gc_interval should be greater than 0s\")\n\t\t}\n\t\tconf.CSIVolumeClaimGCInterval = dur\n\t}\n\tif gcThreshold := agentConfig.Server.CSIVolumeClaimGCThreshold; gcThreshold != \"\" {\n\t\tdur, err := time.ParseDuration(gcThreshold)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tconf.CSIVolumeClaimGCThreshold = dur\n\t}\n\tif gcThreshold := agentConfig.Server.CSIPluginGCThreshold; gcThreshold != \"\" {\n\t\tdur, err := time.ParseDuration(gcThreshold)\n\t\tif err != nil {\n\t\t\treturn nil, err\n\t\t}\n\t\tconf.CSIPluginGCThreshold = dur\n\t}\n\tif gcThreshold := agentConfig.Server.ACLTokenGCThreshold; gcThreshold != \"\" {","sourceCodeStart":464,"sourceCodeEnd":500,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/command/agent/agent.go#L464-L500","documentation":"Fires in convertServerConfig when server.csi_volume_claim_gc_interval parses to zero or less; CSI volume claim GC needs a strictly positive interval.","triggerScenarios":"Thrown at command/agent/agent.go:482 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set csi_volume_claim_gc_interval to a positive duration (e.g. \"5m\")","Omit the option for the default interval"],"exampleFix":null,"handlingStrategy":"validation","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"}