chef / knife-windows

Plugin for Chef's knife tool for working with Windows nodes
Apache License 2.0
152 stars 110 forks source link

knife winrm hangs indefinitely after chef-client build #456

Closed Ryuzavi closed 6 years ago

Ryuzavi commented 6 years ago

Hey

Been using knife-winrm to just run a chef client build on Windows Server 2016 boxes (all in local mode) via Teamcity.

Everything works fine until the end when chef-client finishes, after that knife just doesn't seem to return or exit and keeps going indefinitely.

Anyone seen this kind of thing?

Cheers, R.

Ryuzavi commented 6 years ago

Hey

Just to tie this off, turns out all is well and the session was being kept alive as I was starting a Java Appserver. Turns out on windows if you start a thing like this in the session it'll stay alive as long as the appserver is running.

Solution was to start the appserver as part of a scheduled task. Apologies for the issue!

Cheers, R.