{"record":{"id":"7b2107eb1965d827","repo":"hashicorp/nomad","slug":"connect-proxy-service-name-q-not-found-in-conne","errorCode":null,"errorMessage":"Connect proxy service name (%q) not found in Connect services from task group: %s","messagePattern":"Connect proxy service name \\(%q\\) not found in Connect services from task group: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/structs/structs.go","lineNumber":8788,"sourceCode":"\t\tif svc.Connect == nil || svc.Connect.SidecarService == nil {\n\t\t\tcontinue\n\t\t}\n\n\t\tif svc.Name == serviceName {\n\t\t\tfound = true\n\t\t\tbreak\n\t\t}\n\n\t\t// Build up list of mismatched Connect service names for error\n\t\t// reporting.\n\t\tnames = append(names, svc.Name)\n\t}\n\n\tif !found {\n\t\tif len(names) == 0 {\n\t\t\treturn fmt.Errorf(\"No Connect services in task group with Connect proxy (%q)\", serviceName)\n\t\t} else {\n\t\t\treturn fmt.Errorf(\"Connect proxy service name (%q) not found in Connect services from task group: %s\", serviceName, names)\n\t\t}\n\t}\n\n\treturn nil\n}\n\nconst (\n\t// TemplateChangeModeNoop marks that no action should be taken if the\n\t// template is re-rendered\n\tTemplateChangeModeNoop = \"noop\"\n\n\t// TemplateChangeModeSignal marks that the task should be signaled if the\n\t// template is re-rendered\n\tTemplateChangeModeSignal = \"signal\"\n\n\t// TemplateChangeModeRestart marks that the task should be restarted if the\n\t// template is re-rendered\n\tTemplateChangeModeRestart = \"restart\"","sourceCodeStart":8770,"sourceCodeEnd":8806,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/structs/structs.go#L8770-L8806","documentation":"Validation error from group Connect proxy validation: the sidecar_service references a proxy/target service name that is not among the Connect-enabled services defined in the task group. Unlike error 3243, Connect services do exist, but the requested proxy name does not match any of them; the error lists the valid names.","triggerScenarios":"Submitting a job with service { connect { sidecar_service { proxy { ... } } } } whose target service name ( serviceName ) is not found in the group's Connect service names, where len(names) > 0.","commonSituations":"Typo in the service name the proxy attaches to; renaming the app service without updating the proxy; cross-copying proxy stanzas between jobs with different service names.","solutions":["Correct the proxy's referenced service name to match one of the Connect services listed in the error message.","Rename the app service stanza so it matches the name the proxy expects.","Remove the stale sidecar_service if the Connect service was intentionally removed."],"exampleFix":"// before\nservice {\n  name = \"wev\"\n  connect { sidecar_service {} }\n}\n// after\nservice {\n  name = \"web\"\n  port = \"http\"\n  connect { sidecar_service {} }\n}","handlingStrategy":"validation","validationCode":"// Ensure the proxy target name matches a Connect service name in the group\nnames := connectServiceNames(group)\nif !slices.Contains(names, proxyTargetServiceName) {\n  return fmt.Errorf(\"proxy target %q not in %v\", proxyTargetServiceName, names)\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Single source of truth for service names (shared variable) between app service and proxy.","Rename services and their sidecar stanzas together.","Read the error's list of valid names — it enumerates the acceptable values."],"tags":["nomad","consul-connect","service-mesh","validation"],"backgroundTag":"connect-proxy-misconfiguration","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"}