{"record":{"id":"e3776a6ee760ab23","repo":"hashicorp/nomad","slug":"invalid-service-registration-address","errorCode":null,"errorMessage":"invalid service registration address","messagePattern":"invalid service registration address","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"nomad/structs/service_registration.go","lineNumber":157,"sourceCode":"\tif s.Address != o.Address {\n\t\treturn false\n\t}\n\tif s.Port != o.Port {\n\t\treturn false\n\t}\n\tif !helper.SliceSetEq(s.Tags, o.Tags) {\n\t\treturn false\n\t}\n\treturn true\n}\n\n// Validate ensures the upserted service registration contains valid\n// information and routing capabilities. Objects should never fail here as\n// Nomad controls the entire registration process; but it's possible\n// configuration problems could cause failures.\nfunc (s *ServiceRegistration) Validate() error {\n\tif ipaddr.IsAny(s.Address) {\n\t\treturn fmt.Errorf(\"invalid service registration address\")\n\t}\n\treturn nil\n}\n\n// GetID is a helper for getting the ID when the object may be nil and is\n// required for pagination.\nfunc (s *ServiceRegistration) GetID() string {\n\tif s == nil {\n\t\treturn \"\"\n\t}\n\treturn s.ID\n}\n\n// GetNamespace is a helper for getting the namespace when the object may be\n// nil and is required for pagination.\nfunc (s *ServiceRegistration) GetNamespace() string {\n\tif s == nil {\n\t\treturn \"\"","sourceCodeStart":139,"sourceCodeEnd":175,"githubUrl":"https://github.com/hashicorp/nomad/blob/482b49bf1aec006f089bcfc7e632d8f6ac303e5e/nomad/structs/service_registration.go#L139-L175","documentation":"ServiceRegistration.Validate rejected the registration because its address is the unspecified/any address (0.0.0.0 or ::); Nomad controls registration and a routable address is required.","triggerScenarios":"Thrown at nomad/structs/service_registration.go:157 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the client/network configuration so the service advertises a routable IP","Check advertise or network interface settings producing an any-address"],"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"}