{"record":{"id":"50dc93a16aa02289","repo":"jenkinsci/jenkins","slug":"error-occurred-while-performing-this-command-see-50dc93","errorCode":null,"errorMessage":"Error occurred while performing this command, see previous stderr output.","messagePattern":"Error occurred while performing this command, see previous stderr output\\.","errorType":"exception","errorClass":"AbortException","httpStatus":null,"severity":"error","filePath":"core/src/main/java/hudson/cli/OnlineNodeCommand.java","lineNumber":72,"sourceCode":"\n        for (String node_s : hs) {\n            try {\n                Computer computer = Computer.resolveForCLI(node_s);\n                computer.cliOnline();\n            } catch (Exception e) {\n                if (hs.size() == 1) {\n                    throw e;\n                }\n\n                final String errorMsg = node_s + \": \" + e.getMessage();\n                stderr.println(errorMsg);\n                errorOccurred = true;\n                continue;\n            }\n        }\n\n        if (errorOccurred) {\n            throw new AbortException(CLI_LISTPARAM_SUMMARY_ERROR_TEXT);\n        }\n        return 0;\n    }\n}\n","sourceCodeStart":54,"sourceCodeEnd":77,"githubUrl":"https://github.com/jenkinsci/jenkins/blob/2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc/core/src/main/java/hudson/cli/OnlineNodeCommand.java#L54-L77","documentation":"Identical summary AbortException (CLI_LISTPARAM_SUMMARY_ERROR_TEXT) but from the `online-node` CLI command. Fires after the loop when multiple nodes were requested and at least one failed; per-node errors were already written to stderr.","triggerScenarios":"`online-node a b c` where at least one node does not exist or cliOnline fails.","commonSituations":"Bulk online operations over an inventory list that includes deleted/offline agents.","solutions":["Inspect the preceding per-node stderr lines for the failing agent.","Drop the bad node from the list and re-run.","Pre-filter the list against getComputers()."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"Set<String> known = Jenkins.get().getComputers().stream()\n    .map(Computer::getName).collect(Collectors.toSet());\nList<String> valid = nodes.stream().filter(known::contains).toList();","typeGuard":null,"tryCatchPattern":"try { cli.execute(args); } catch (AbortException e) { /* partial: check per-node stderr */ }","preventionTips":["Filter node lists before bulk online operations.","Log per-node results so the summary is diagnosable."],"tags":["cli","agent","batch","summary"],"backgroundTag":null,"analyzedSha":"2e228ff40b14dbc8b14ffbc6edf0e4383cf744fc","analyzedAt":"2026-08-14T07:07:15.274Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}