Skip to content

Instantly share code, notes, and snippets.

@wongster80
Created February 4, 2015 19:28
Show Gist options
  • Save wongster80/8b41f42ec1fcde557e86 to your computer and use it in GitHub Desktop.
Save wongster80/8b41f42ec1fcde557e86 to your computer and use it in GitHub Desktop.
When running simple cmd.run command:
salt 'hostname' cmd.run 'ls /tmp'
hostname:
ERROR: Specified cwd '.' either not absolute or does not exist
Minion logs shows:
2015-02-04 19:21:50,456 [salt.minion ][ERROR ] A command in 'cmd.run' had a problem: Specified cwd '.' either not absolute or does not exist
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 809, in _thread_return
return_data = func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/cmdmod.py", line 578, in run
saltenv=saltenv)
File "/usr/lib/python2.6/site-packages/salt/modules/cmdmod.py", line 409, in _run
.format(cwd)
CommandExecutionError: Specified cwd '.' either not absolute or does not exist
Restarting the minion process works fixes it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment