Repository navigation
ERROR: Specified cwd '28830"' either not absolute or does not exist #70532
Replies: 19 comments
|
cwd is a directory, not a PID. I'm not sure why the command makes that into a CWD, but I expect it has something to do with the way the quotes are working for you. |
I have tested in Python and Shell,but none of them is wrong.Only when i used it in Java by useing Runtime.getRunTime.exe() had this problem. |
|
Try this: create a python script, call it Then launch it with: Then inspect But something else. Note that there is a Try |
I had try Python script and Shell ,None of all can be wordked.Only when i used flask what is WebService of Python can be worked. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
|
Thank you for updating this issue. It is no longer marked as stale. |
|
@waynew can you please take a look at these comments? |
|
@carolcoral what result did you get from my above experiment? |
|
I also see this after updating from 2018.3.4 to 2019.2.3 (and even 3000) with this code (on Windows): and this package description: [Note that installing .Net using In the (This is from 3000, but it's the same for 2019.2.3) |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
|
Aaaaargh, this stale bot thing is STILL going rampage (#55829)!!! |
|
Thank you for updating this issue. It is no longer marked as stale. |
|
Is there any news on this? I still see this in 3000.3 and it's still preventing us from updating to that version. |
|
@waynew i am sorry it too late to answer you.Your example can be worked in the same mathin,but i need to execute it from another mathin as a client. #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, request
import json
import subprocess
import traceback
app = Flask(__name__)
@app.route('/salt/command', methods=['POST'])
def salt():
try:
data = request.data
if data is not None:
print(data)
data_json = json.loads(data)
salt_key = data_json["saltKey"]
command = data_json["command"]
salt_command = "salt " + salt_key + " cmd.run " + "\"" + command + "\""
res = subprocess.check_output(salt_command, shell=True)
return res
except Exception as e:
traceback.print_exc()
return ""
if __name__ == '__main__':
app.run(host="0.0.0.0", port="18085") |
|
@carolcoral I'm not sure what You also didn't provide the output at all - it's very difficult to help when you don't provide enough information to go on. @dhs-rec that's definitely an odd one - it seems like it may be related. I'll come back to this tomorrow to see if I can repro your sample. |
|
@waynew i am sorry for this wrong word - "machine". |
|
@carolcoral did you try my experiment? What was the result? |
|
This question was moved out of the issue tracker as part of a backlog cleanup. If you have additional context, workarounds that worked for you, or still need help, please reply here. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
The Linux return:
Centos76-247-45: ERROR: Specified cwd '28830"' either not absolute or does not existCould you tell me how to reolve it,please.
# salt-run manage.versions Master: 2017.7.4All reactions