You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ERROR: Specified cwd '28830"' either not absolute or does not exist #55799
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.
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.
Now, i had create a Flask service to receive Command and execute it in my Salt-mater.
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.
[Note that installing .Net using pkg.installed generally doesn't work, at least up to Salt 2018.3.4.]
I also tried changing it to use pkg.installed in 2019.2.3 to see if the problem installing .Net this way still exists there, but it still throws the same error about the cwd:
Specified cwd '\store' either not absolute or does not exist
In the module.run case, I even get a complete stacktrace:
----------
ID: dotnet
Function: module.run
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\state.py", line 1981, in call
**cdata['kwargs'])
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\loader.py", line 1977, in wrapper
return f(*args, **kwargs)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\utils\decorators\__init__.py", line 650, in _decorate
return self._call_function(kwargs)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\utils\decorators\__init__.py", line 353, in _call_function
six.reraise(*sys.exc_info())
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\ext\six.py", line 693, in reraise
raise value
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\utils\decorators\__init__.py", line 340, in _call_function
return self._function(*args, **kwargs)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\states\module.py", line 421, in run
func_args=kwargs.get(func))
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\states\module.py", line 450, in _call_function
mret = salt.utils.functools.call_function(__salt__[name], *func_args)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\utils\functools.py", line 142, in call_function
return salt_function(*function_args, **function_kwargs)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\modules\win_pkg.py", line 1696, in install
redirect_stderr=True)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\modules\cmdmod.py", line 2081, in run_all
**kwargs)
File "c:\salt\bin\lib\site-packages\salt-3000-py3.5.egg\salt\modules\cmdmod.py", line 648, in _run
.format(cwd)
salt.exceptions.CommandExecutionError: Specified cwd '\store' either not absolute or does not exist
Started: 07:47:13.624594
Duration: 10515.6 ms
Changes:
(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.
@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.
It always work in the same mathin by Java or python and shell.
So, i have to make a Flask service as a client to receive 'command' to execute it.
For example like this:
@waynew i am sorry for this wrong word - "machine".
I have to execute 'CMD' in A machine but from B machine.But it didn`t worked in my Java program.
So, i had make a Flask Server to receive "CMD" to execute.
The output is same as you execute it in the base machine but the command from another machine.
Activity
waynew commentedon Jan 8, 2020
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.
carolcoral commentedon Jan 9, 2020
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.
Now, i had create a Flask service to receive Command and execute it in my Salt-mater.
waynew commentedon Jan 9, 2020
Try this: create a python script, call it
funtimes.pyor whatever - it's not very important. The contents:Then launch it with:
Then inspect
/tmp/args.jsonor whatever file you used. I suspect that you will not seeBut something else.
Note that there is a
psmodule that could do what you're after.Try
String command = "salt Centos76-247-45 ps.kill_pid 28830";insteadcarolcoral commentedon Jan 10, 2020
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.
stale commentedon Feb 9, 2020
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.
stale commentedon Feb 10, 2020
Thank you for updating this issue. It is no longer marked as stale.
sagetherage commentedon Feb 10, 2020
@waynew can you please take a look at these comments?
waynew commentedon Feb 12, 2020
@carolcoral what result did you get from my above experiment?
dhs-rec commentedon Feb 19, 2020
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
pkg.installedgenerally doesn't work, at least up to Salt 2018.3.4.]I also tried changing it to use
pkg.installedin 2019.2.3 to see if the problem installing .Net this way still exists there, but it still throws the same error about the cwd:In the
module.runcase, I even get a complete stacktrace:(This is from 3000, but it's the same for 2019.2.3)
dhs-rec commentedon Feb 19, 2020
This one, #56119 and #56199 currently block us from updating to anything newer than 2018.3.4 because they all break existing, working code.
stale commentedon Mar 20, 2020
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.
dhs-rec commentedon Mar 20, 2020
Aaaaargh, this stale bot thing is STILL going rampage (#55829)!!!
stale commentedon Mar 20, 2020
Thank you for updating this issue. It is no longer marked as stale.
dhs-rec commentedon Jun 10, 2020
Is there any news on this? I still see this in 3000.3 and it's still preventing us from updating to that version.
carolcoral commentedon Jun 19, 2020
@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.
It always work in the same mathin by Java or python and shell.
So, i have to make a Flask service as a client to receive 'command' to execute it.
For example like this:
waynew commentedon Jun 22, 2020
@carolcoral I'm not sure what
mathinis supposed to mean.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.
carolcoral commentedon Jun 23, 2020
@waynew i am sorry for this wrong word - "machine".
I have to execute 'CMD' in A machine but from B machine.But it didn`t worked in my Java program.
So, i had make a Flask Server to receive "CMD" to execute.
The output is same as you execute it in the base machine but the command from another machine.
waynew commentedon Jun 25, 2020
@carolcoral did you try my experiment?
What was the result?