KBEC-00463 - CloudBees CD agent installation errors in Windows machine

Article ID:360047562611
1 minute readKnowledge base

Issue

When trying to install a CloudBees CD agent in a Windows machine, you often observe that the installation fails. You get errors like the ones shown below:

XXXX - Error while loading required packages: failed to load library "/XXXX/lib/tls/tls1671.dll": could not load file from temp location: couldn't open "./TCL2B22.tmp": no such file or directory

XXXX - failed to load library "/XXXX/lib/tls/tls1671.dll": could not load file from temp location: couldn't open "./TCL2B22.tmp": no such file or directory

Resolution

This problem is generally observed when you have an Antivirus software installed that prevents the installer from writing to the default TMP directory: C:\Users%USERNAME%\AppData\Local\Temp\ijtmp_*\.

In order to be able to install the agent you might need to specify a custom TEMP folder to be used by the installer.

  • Open a command prompt as Administrator and run the following command:

ElectricFlowAgent-x64-9.0.0.XXXX.exe --mode silent  --installAgent  --windowsAgentUser USERNAME  --windowsAgentPassword PASSWORD --temp "C:\mytemp"
The install user needs to be granted full access to the folder specified in the --temp.

You might need to use other parameters depending on your configuration, please find some of them below:

a) Add --windowsAgentDomain in combination to --windowsAgentUser USERNAME --windowsAgentPassword PASSWORD.

ElectricFlowAgent-x64-9.0.0.XXX.exe --mode silent  --installAgent   --windowsAgentDomain your_agent_domain --windowsAgentUser USERNAME  --windowsAgentPassword PASSWORD --temp "C:\mytemp"

b) Add --windowsAgentLocalSystem instead of --windowsAgentUser USERNAME --windowsAgentPassword.

ElectricFlowAgent-x64-9.0.0.135442.exe --mode silent  --installAgent  --windowsAgentLocalSystem --temp "C:\mytemp"

In both cases, you will get prompted for confirmation and the installation should finish in the environment described.