I’m experiencing an issue where occasionally the IIS deploy step in the process will hang indefinitely.
Looking at the raw logs did not provide much help.
How can I start tracking down the cause of why this step hangs?
09:17:31 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:31 Info | The required certificate binding is already in place
09:17:31 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:31 Verbose | Loading Application pool
09:17:31 Info | Application pool "AppPool" already exists
09:17:31 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:31 Info | Set application pool identity: ApplicationPoolIdentity
09:17:31 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Set .NET framework version: v4.0
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Verbose | Loading Site
09:17:33 Info | Site "AppPool" already exists
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Verbose | Loading Site
09:17:33 Info | Application pool "AppPool" already assigned to "IIS:\Sites\AppPool"
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Setting physical path of IIS:\Sites\AppPool to X:\Applications\1.0.0
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Comparing existing IIS bindings with configured bindings...
09:17:33 Info | Looks OK
09:17:33 Info | Bindings are as configured. No changes required.
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Anonymous authentication enabled: True
09:17:33 Info | Applied configuration changes to section "system.webServer/security/authentication/anonymousAuthentication" for "MACHINE/WEBROOT/APPHOST/AppPool" at configuration commit path "MACHINE/WEBROOT/APPHOST"
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Basic authentication enabled: False
09:17:33 Info | Applied configuration changes to section "system.webServer/security/authentication/basicAuthentication" for "MACHINE/WEBROOT/APPHOST/AppPool" at configuration commit path "MACHINE/WEBROOT/APPHOST"
09:17:33 Verbose | Acquired mutex Global\Octopus-IIS-Metabase-Mutex
09:17:33 Info | Windows authentication enabled: False
09:17:33 Info | Applied configuration changes to section "system.webServer/security/authentication/windowsAuthentication" for "MACHINE/WEBROOT/APPHOST/AppPool" at configuration commit path "MACHINE/WEBROOT/APPHOST"
09:17:36 Info | IIS configuration complete
14:12:10 Verbose | Swallowing OperationCanceledException while waiting for last of the process output.
14:12:10 Verbose | Swallowing OperationCanceledException while waiting for last of the process output.
14:12:10 Verbose | Process C:\Windows\system32\WindowsPowershell\v1.0\PowerShell.exe in X:\Octopus\Work\20201112141712-202701-1250 exited with code -1
14:12:10 Verbose | Updating manifest with output variables
14:12:10 Verbose | Updating manifest with action evaluated variables
14:12:10 Fatal | The remote script failed with exit code -1