The SAS® Customer Intelligence 360 service "CustomerIntelligence360Satellite" might terminate with "service-specific error: Incorrect function"


The Windows System Event log might contain the following error when you start the “CustomerIntelligence360Satellite” (SAS Customer Intelligence 360 Direct Agent) Windows service:

Event ID 7024, Service Control Manager - The CustomerIntelligence360Satellite service terminated with the following service-specific error: Incorrect function.

Additional errors might occur in the following locations:

[error] ( javajni.c:213 ) [ 7508] Invalid RuntimeLib specified 'C:\Program Files\Zulu\zulu-21\bin\server\jvm.dll'

[error] ( javajni.c:213 ) [ 7508] The system cannot find the path specified.

[error] ( javajni.c:416 ) [ 7508] Failed to load JVM DLL 'C:\Program Files\Zulu\zulu-21\bin\server\jvm.dll', home 'C:\Program Files\Zulu\zulu-21'.

[error] ( javajni.c:416 ) [ 7508] The system cannot find the path specified.

[error] (prunsrv.c:1465) [7508] failed creating Java 'C:\Program Files\Zulu\zulu-21\bin\server\jvm.dll'

[error] ( prunsrv.c:1465) [ 7508] The system cannot find the path specified.

[error] ( prunsrv.c:1862) [ 7508] ServiceStart returned 1.

[error] ( prunsrv.c:1862) [ 7508] The system cannot find the path specified.

[debug] ( prunsrv.c:1127) [ 7508] reportServiceStatusE: dwCurrentState = 1 (SERVICE_STOPPED), dwWin32ExitCode = 1066, dwWaitHint = 0 milliseconds, dwServiceSpecificExitCode = 1.

Apache Commons Daemon procrun stderr initialized. java.lang.IllegalStateException: Unable to create the directory [C:\Windows\TEMP\xxxxx\tomcat_base] to use as the base directory at org.apache.catalina.startup.Tomcat.initBaseDir(Tomcat.java:835) at org.apache.catalina.startup.Tomcat.getServer(Tomcat.java:624) at org.apache.catalina.startup.Tomcat.enableNaming(Tomcat.java:994) at com.sas.analytics.boot.Main.main(Main.java:85) 

Cause

This issue can occur in two scenarios.

I. There is a problem with the setup of Java (JAVA_HOME).

This issue occurs when the service needs to update the various commands in the direct installation to support setting either JAVA_HOME or JRE_HOME to find the java command (which is located in the direct-agent-service.bat file).

For example, the path to your Java might be different, or you might not have a server folder (such as C:\Program Files\Zulu\zulu-21\bin\server\jvm.dll).

The best way to resolve this issue is to always use the jre located in the SASHOME directory, as shown in the following example:

JRE_HOME=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre

You can also check the settings in C:\SAS\Agents\Direct\systemd\direct-agent-service.env:

#set JAVA_HOME to root of the Java 11 installation on this machine
JAVA_HOME=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre

Run the set command from the Command Prompt to determine what the current JAVA_HOME and or JRE_HOME is set to.

C:\Users\sas>set JAVA_HOME
JAVA_HOME=C:\Program Files\SASHome\SASPrivateJavaRuntimeEnvironment\9.4\jre

C:\Users\sas>set JRE_HOME
Environment variable jre_home not defined

Note: You can review the sas_customerintelligence360satellite-stderr.<datetime>.log in the <Direct Install>\logs folder for more details.

II. There is a problem with the setup of the Procrun Monitor application (PR_INSTALL).

To circumvent this issue, complete the following steps:

  1. Check the System Environment Variable and ensure that the location is correct. Here is an example:
    PR_INSTALL System Environment Variable
  2. If the path is invalid, replace it with the correct location. If the path is no longer installed on your system, install the software from Run the Direct Agent as a Service.
  3. In addition, you might need to check the ImagePath for prunsrv.exe under the SAS_CustomerIntelligence360Satellite in the Windows registry. Here is an example: 

prunsrv Registry setting

Note: If you re-install or modify the location, remove the existing Windows service “CustomerIntelligence360Satellite” and re-install it by completing the following steps:

  1. Open a command prompt and cd to the Direct location.
  2. Run direct-agent-service remove.
  3. Then, run direct-agent-service install.

Here is an example:

cd C:\SAS\Agents\Direct>

C:\SAS\Agents\Direct>direct-agent-service remove

C:\SAS\Agents\Direct>direct-agent-service install

A message similar to the following should occur:

Installing the service 'C:\SAS\prinstall\amd64\prunsrv.exe' 'SAS_CustomerIntelligence360Satellite' ...

The service 'SAS_CustomerIntelligence360Satellite' has been installed

Exiting direct-agent-service.bat ...

Open a Case with SAS Technical Support

If necessary, open a case with SAS Technical Support and provide the following details:

Reference Documentation: