saltstack / saltstack/salt

ERROR: Specified cwd '28830"' either not absolute or does not exist

Open
#55,799 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending-discussion Question
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description of Issue

When i want to kill the PID,but the command return this message for me "ERROR: Specified cwd '28830"' either not absolute or does not exist"
And, i had checked this PID exists and absolute.

String command = "salt Centos76-247-45 cmd.run \"kill 28830\"";
Process process = Runtime.getRuntime().exec(command);
process.waitFor();

The Linux return:

Centos76-247-45:
    ERROR: Specified cwd '28830"' either not absolute or does not exist

Could you tell me how to reolve it,please.

# salt-run manage.versions  
Master:
    2017.7.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the salt Centos76-247-45 cmd.run "kill 28830" invocation and the Java Runtime.getRuntime().exec call, then inspect how command arguments and quoting are parsed. Compare the behavior with the reported Salt 2017.7.4 output; done means identifying whether the failure is in Salt or Java invocation handling and documenting a verified resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
backend, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.