chef-utils
chef-utils copied to clipboard
chefctl on windows: retry lock on permission denied
On windows, via remote ssh, the workflow is a bit different.
If a timer is running chef, it's likely as SYSTEM
. If you login as admin1
and run chefctl, it crashes with:
C:/chef/bin/chefctl.rb:787:in `read': Permission denied @ io_fread - C:\\Windows\\Temp\\chefctl.lock (Errno::EACCES)
instead of realizing a run is in progress and doing it's usual wait routine. But it should catch this and do it's usual wait routine.