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?

Hello @Emrul and @Jason, I have a similar issue to DingoBlue. When I run the command for the install I get to the starting of the connector but then I get the same error where it fails to start. I also unchecked cfg and net start/stop of vmcompute. Any help would be greatly appreciated. Thanks in advance!

Hi @ean2920 - in @DingoBlue’s case he was running Windows on a machine that didn’t support Virtualisation (or specifically, he was running it in a VM that didn’t support nested virtualisation). In this situation, Hyper-V is not available and can prevent the Chocolatey VM from starting.

Are either of those applicable to you?

Ok that makes sense, sorry i didnt read his post clearly. I have a windows vm that is running windows 10 pro. It installed hyper v but its for some reason not doing what it is supposed to do. What would you like me to do next or include for further troubleshooting?

I have a similar issue.

Using:

Edition Windows 10 Pro
Version 22H2
Installed on ‎8/‎15/‎2020
OS build 19045.2965
Experience Windows Feature Experience Pack 1000.19041.1000.0

Device name Fred
Processor AMD A4-5300 APU with Radeon™ HD Graphics 3.40 GHz
Installed RAM 12.0 GB (11.2 GB usable)
Device ID C3AB43ED-B544-4346-9588-650DE421B502
Product ID 00330-80000-00000-AA189
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Dual Boot with Ubuntu

Using Windows for Twingate use.

Multipass installed Ver 1.11.1

Chocolatey installed Ver 2.0

Using TMobile Home wireless internet

Mulitass shows connector running. Web pass shows no connection.

Hyper-V Installed and show connector running but no status.

Log:

2023-05-31 15:01:34,476 5608 [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-05-31 15:01:34,482 5608 [DEBUG] - Built-in PowerShell host called with [‘[System.Threading.Thread]::CurrentThread.CurrentCulture = ‘’;[System.Threading.Thread]::CurrentThread.CurrentUICulture = ‘’;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & 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-05-31 15:01:34,484 5608 [DEBUG] - Calling command [‘“C:\Windows\System32\shutdown.exe” /a’]
2023-05-31 15:01:34,593 5608 [DEBUG] - Command [‘“C:\Windows\System32\shutdown.exe” /a’] exited with ‘1116’
2023-05-31 15:01:34,843 5608 [DEBUG] - Capturing package files in ‘C:\ProgramData\chocolatey\lib\twingate-connector’
2023-05-31 15:01:34,845 5608 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\twingate-connector.nupkg’
with checksum ‘A1FE0529C0A1D0D86E777CAD6C5E0A2D’
2023-05-31 15:01:34,847 5608 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\twingate-connector.nuspec’
with checksum ‘A2DE964EB05A245C5D8A22F95FF8B0F2’
2023-05-31 15:01:34,849 5608 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’
with checksum ‘73456FB1560AA78270F20ADF274AD557’
2023-05-31 15:01:34,851 5608 [DEBUG] - Found ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyUninstall.ps1’
with checksum ‘8948EB1D82697EF02EEA0214F1B1F201’
2023-05-31 15:01:34,853 5608 [DEBUG] - Attempting to create directory “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0”.
2023-05-31 15:01:34,856 5608 [DEBUG] - There was no original file at ‘C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.files’
2023-05-31 15:01:34,860 5608 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.arguments”.
2023-05-31 15:01:34,862 5608 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.extra”.
2023-05-31 15:01:34,863 5608 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.version”.
2023-05-31 15:01:34,865 5608 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.sxs”.
2023-05-31 15:01:34,866 5608 [DEBUG] - Attempting to delete file “C:\ProgramData\chocolatey.chocolatey\twingate-connector.1.41.0.pin”.
2023-05-31 15:01:34,869 5608 [DEBUG] - Sending message ‘HandlePackageResultCompletedMessage’ out if there are subscribers…
2023-05-31 15:01:34,870 5608 [ERROR] - The install of twingate-connector was NOT successful.
2023-05-31 15:01:34,877 5608 [ERROR] - Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
See log for details.
2023-05-31 15:01:34,882 5608 [DEBUG] - Attempting to create directory “C:\ProgramData\chocolatey\lib-bad”.
2023-05-31 15:01:34,888 5608 [DEBUG] - Attempting to create directory “C:\ProgramData\chocolatey\lib-bad\twingate-connector”.
2023-05-31 15:01:34,892 5608 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\twingate-connector to C:\ProgramData\chocolatey\lib-bad\twingate-connector\1.41.0
2023-05-31 15:01:34,895 5608 [DEBUG] - Moving ‘C:\ProgramData\chocolatey\lib\twingate-connector’
to ‘C:\ProgramData\chocolatey\lib-bad\twingate-connector\1.41.0’
2023-05-31 15:01:36,953 5608 [WARN ] -
Chocolatey installed 3/4 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-05-31 15:01:36,957 5608 [INFO ] -
2023-05-31 15:01:36,959 5608 [ERROR] - Failures
2023-05-31 15:01:36,966 5608 [ERROR] - - twingate-connector (exited -1) - Error while running ‘C:\ProgramData\chocolatey\lib\twingate-connector\tools\chocolateyinstall.ps1’.
See log for details.
2023-05-31 15:01:36,974 5608 [DEBUG] - Sending message ‘PostRunMessage’ out if there are subscribers…
2023-05-31 15:01:36,980 5608 [DEBUG] - Exiting with -1

Any ideas on how to proceed?

Well, I finally got TwinGate successfully installed on My Windows computer. I am not exactly sure of what the problem was but I did uninstall the Twingate Client software on the computer hosting the connector before trying another connector install. Works great. Very pleased with the speed and ease of connecting from the Client. :slight_smile: