{"record":{"id":"86c954db76cac41c","repo":"nats-io/nats-server","slug":"no-s-processes-running","errorCode":null,"errorMessage":"no %s processes running","messagePattern":"no (.+?) processes running","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/signal.go","lineNumber":124,"sourceCode":"\t\t}\n\t}\n\t// Gather all PIDs unless the input is specific\n\tif pidStr == \"\" || isGlob {\n\t\tif pids, err = resolvePids(); err != nil {\n\t\t\treturn err\n\t\t}\n\t}\n\t// Multiple instances are running and the input is not an expression\n\tif len(pids) > 1 && !isGlob {\n\t\terrStr = fmt.Sprintf(\"multiple %s processes running:\", processName)\n\t\tfor _, p := range pids {\n\t\t\terrStr += fmt.Sprintf(\"\\n%d\", p)\n\t\t}\n\t\treturn errors.New(errStr)\n\t}\n\t// No instances are running\n\tif len(pids) == 0 {\n\t\treturn fmt.Errorf(\"no %s processes running\", processName)\n\t}\n\n\tvar signum syscall.Signal\n\tif signum, err = CommandToSignal(command); err != nil {\n\t\treturn err\n\t}\n\n\tfor _, pid := range pids {\n\t\tif _pidStr := strconv.Itoa(pid); _pidStr != pidStr && pidStr != \"\" {\n\t\t\tif !isGlob || !strings.HasPrefix(_pidStr, pidStr) {\n\t\t\t\tcontinue\n\t\t\t}\n\t\t}\n\t\tif err = kill(pid, signum); err != nil {\n\t\t\terrStr += fmt.Sprintf(\"\\nsignal %q %d: %s\", command, pid, err)\n\t\t}\n\t}\n\tif errStr != \"\" {","sourceCodeStart":106,"sourceCodeEnd":142,"githubUrl":"https://github.com/nats-io/nats-server/blob/3a66a489d262bf89b71a71c955c94920394532f3/server/signal.go#L106-L142","documentation":"ProcessSignal resolved the set of running nats-server processes (via resolvePids scanning /proc or process listing) and found none to signal. Fired from --signal handling when neither an explicit pid nor any discoverable nats-server process exists.","triggerScenarios":"Thrown at server/signal.go:124 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm a nats-server is actually running (ps aux | grep nats-server)","Start the server before sending signals","If running in a container/namespace, run the signal command in the same context"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3a66a489d262bf89b71a71c955c94920394532f3","analyzedAt":"2026-09-02T04:41:54.247Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}