Twingate installation on Win 10 Pro failed in Chocolately installation process

I have tried to install a Twingate Connector using Chocolately but it fails with:

Configuring impetuous-anteater
Starting impetuous-anteater
Waiting for initialization to complete
ERROR: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: launch failed: The following errors occurred:
The install of twingate-connector was NOT successful.
Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • twingate-connector (exited -1) - Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
    See log for details

The latter part of the above mentioned logs is …

2023-02-20 17:17:47,619 32740 [INFO ] - Creating impetuous-anteater /-\|/-
2023-02-20 17:17:47,622 32740 [INFO ] -
2023-02-20 17:17:47,624 32740 [INFO ] -
2023-02-20 17:17:47,627 32740 [INFO ] -
2023-02-20 17:17:53,125 32740 [INFO ] - Configuring impetuous-anteater /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
2023-02-20 17:17:53,127 32740 [INFO ] -
2023-02-20 17:17:53,129 32740 [INFO ] -
2023-02-20 17:17:53,133 32740 [INFO ] -
2023-02-20 17:18:24,102 32740 [INFO ] - Starting impetuous-anteater /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
2023-02-20 17:18:24,104 32740 [INFO ] -
2023-02-20 17:18:24,107 32740 [INFO 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|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-
2023-02-20 17:23:24,627 32740 [ERROR] - ERROR: The running command stopped because the preference variable “ErrorActionPreference” or common parameter is set to Stop: launch failed: The following errors occurred:
2023-02-20 17:23:24,630 32740 [DEBUG] - Built-in PowerShell host called with [‘[System.Threading.Thread]::CurrentThread.CurrentCulture = ‘’;[System.Threading.Thread]::CurrentThread.CurrentUICulture = ‘’; & import-module -name ‘C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1’; & ‘C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1’ -packageScript ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’ -installArguments ‘’ -packageParameters ‘’ -preRunHookScripts $null -postRunHookScripts $null’] exited with ‘-1’.
2023-02-20 17:23:24,632 32740 [DEBUG] - Calling command [‘“C:\WINDOWS\System32\shutdown.exe” /a’]
2023-02-20 17:23:24,686 32740 [DEBUG] - Command [‘“C:\WINDOWS\System32\shutdown.exe” /a’] exited with ‘1116’
2023-02-20 17:23:24,775 32740 [DEBUG] - Capturing package files in ‘C:\ProgramData\chocolatey\lib\twingate-connector’
2023-02-20 17:23:24,777 32740 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\twingate-connector.nupkg’
with checksum ‘A1FE0529C0A1D0D86E777CAD6C5E0A2D’
2023-02-20 17:23:24,778 32740 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\twingate-connector.nuspec’
with checksum ‘A2DE964EB05A245C5D8A22F95FF8B0F2’
2023-02-20 17:23:24,780 32740 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’
with checksum ‘73456FB1560AA78270F20ADF274AD557’
2023-02-20 17:23:24,782 32740 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyUninstall.ps1’
with checksum ‘8948EB1D82697EF02EEA0214F1B1F201’
2023-02-20 17:23:24,792 32740 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.arguments”.
2023-02-20 17:23:24,793 32740 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.extra”.
2023-02-20 17:23:24,795 32740 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.version”.
2023-02-20 17:23:24,797 32740 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.sxs”.
2023-02-20 17:23:24,799 32740 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.pin”.
2023-02-20 17:23:24,803 32740 [DEBUG] - Attempting to delete directory “C:\ProgramData\chocolatey\lib-bad\twingate-connector”.
2023-02-20 17:23:24,806 32740 [DEBUG] - Sending message ‘HandlePackageResultCompletedMessage’ out if there are subscribers…
2023-02-20 17:23:24,807 32740 [ERROR] - The install of twingate-connector was NOT successful.
2023-02-20 17:23:24,811 32740 [ERROR] - Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
See log for details.
2023-02-20 17:23:24,815 32740 [DEBUG] - Moving ‘C:\ProgramData\chocolatey\lib\twingate-connector’
to ‘C:\ProgramData\chocolatey\lib-bad\twingate-connector’
2023-02-20 17:23:26,831 32740 [DEBUG] - Attempting to delete file “C:\Users\ComTel\AppData\Local\NuGet\Cache\twingate-connector.1.41.0.nupkg”.
2023-02-20 17:23:26,838 32740 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-02-20 17:23:26,842 32740 [INFO ] -
2023-02-20 17:23:26,844 32740 [ERROR] - Failures
2023-02-20 17:23:26,848 32740 [ERROR] - - twingate-connector (exited -1) - Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
See log for details.
2023-02-20 17:23:26,851 32740 [DEBUG] - Sending message ‘PostRunMessage’ out if there are subscribers…
2023-02-20 17:23:26,864 32740 [DEBUG] - Exiting with -1

I have disbled Windows CFG which was 1 suggestion I found but no change.

Any assistance appreciated.
Regards

Hi DingoBlue!

I have asked the team to provide some insight to this error. I have taken a look and I cannot determine the cause either.

Stay tuned!

Hi @DingoBlue - it isn’t clear from the logs what the problem is but one possibility is that the script timed out waiting for the virtual machine instance to start. I also notice C:\WINDOWS\System32\shutdown.exe which I wasn’t expecting to see?

What happens when you try to re-install the connector?