Node install fails on Windows with Bad socket status error involving ssleay32.dll and syssrv.dll libraries

Node install fails on Windows with Bad socket status error involving ssleay32.dll and syssrv.dll libraries

book

Article ID: KB0077350

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10

Description

Running an EventFlow module in Studio, or Application Archive (ZIP) from the command-line, fails with output looking like this:

(1) In the "Failed to install Node" pop-up window:
=======================================================================
(node install): TRACE: epadmin.exe install node nodedirectory=C:\Users\user\ws_sb104\.nodes nodename=firstapp_firstapp.user buildtype=PRODUCTION javahome=C:\sb104\jdk 
(node install): 	Installing node
(node install): 2019-04-29 10:16:00.531000|USR|WARN |9252|coordutil.cpp(67)|Bad socket status returned: 2
(node install): 	Creating node snapshot after installation failure
(node install): 	Created snapshot archive C:\Users\user\ws_sb104\.nodes\firstapp_firstapp.user\..\snapshots\firstapp_firstapp.user\firstapp_firstapp.user.2019-04-29-10-16-00.zip
(node install): 	Removing node firstapp_firstapp.user...
(node install): 	Done.
(node install): Engine System::swcoordadmin with process exit status (-1073741512) triggered abort of node.
(node install): returnCode = -1
=======================================================================

(2) In the Studio console:
=======================================================================
(node install): TRACE: epadmin.exe install node nodedirectory=C:\Users\user\ws_sb104\.nodes nodename=firstapp_firstapp.user buildtype=PRODUCTION javahome=C:\sb104\jdk 
(node install): 	Installing node
(node install): 2019-04-29 10:16:00.531000|USR|WARN |9252|coordutil.cpp(67)|Bad socket status returned: 2
(node install): 	Creating node snapshot after installation failure
(node install): 	Created snapshot archive C:\Users\user\ws_sb104\.nodes\firstapp_firstapp.user\..\snapshots\firstapp_firstapp.user\firstapp_firstapp.user.2019-04-29-10-16-00.zip
(node install): 	Removing node firstapp_firstapp.user...
(node install): 	Done.
(node install): Engine System::swcoordadmin with process exit status (-1073741512) triggered abort of node.
(node install): returnCode = -1
=======================================================================

(3) Run the run command in the windows command directly, it says that it fails to load ssleay32.dll and syssrv.dll libraries.
 

Issue/Introduction

Windows DLL lookup finds wrong versions of libraries. A script is provided to help correct this.

Environment

Microsoft Windows

Resolution

The cause is that Windows is discovering the ssleay32.dll and syssrv.dll libraries outside the TIBCO Streaming install because they are not physically in the same folder as the swcoordadmin.exe program.

Here is a script you may use to copy these DLLs from elsewhere within the TIBCO Streaming install into the required folders also within the TIBCO Streaming install:

copy-eay.bat
rem This batch file copies OpenSSL DLLs to the directories containing the
rem swcoordadmin.exe and DtmEngine.exe executables.
rem
rem Please note that these copied DLLs are not removed when the product is
rem uninstalled.
rem

rem
rem Please set TIBCO_EP_HOME to the location of your product installation.
rem
set TIBCO_EP_HOME=C:\sb104

rem
rem Copy the OpenSSL libraries to the directory containing swcoordadmin.exe
rem
copy %TIBCO_EP_HOME%\distrib\kabira\bin\libeay32.dll %TIBCO_EP_HOME%\distrib\kabira\component\swcoordadmin\prodbin
copy %TIBCO_EP_HOME%\distrib\kabira\bin\ssleay32.dll %TIBCO_EP_HOME%\distrib\kabira\component\swcoordadmin\prodbin

rem
rem Copy the OpenSSL libraries to the directory containing DtmEgnine.exe
rem
copy %TIBCO_EP_HOME%\distrib\kabira\bin\libeay32.dll %TIBCO_EP_HOME%\distrib\kabira\component\DtmEngine\prodbin
copy %TIBCO_EP_HOME%\distrib\kabira\bin\ssleay32.dll %TIBCO_EP_HOME%\distrib\kabira\component\DtmEngine\prodbin