chef-utils icon indicating copy to clipboard operation
chef-utils copied to clipboard

chefctl on windows: retry lock on permission denied

Open jaymzh opened this issue 3 years ago • 0 comments

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.

jaymzh avatar Nov 30 '21 01:11 jaymzh