search cancel

AAI Insight installation fails with message: BUILD FAILED termaBiInstaller.xml:738: Last step failed, you can update superuser password in termaBiInstaller.xml


Article ID: 241190


Updated On:


Automic Automation Intelligence


If you look further up in the installation log you will see the message below:

     [echo] Deleting extra user jasper admin and update superuser's default password
     [java] Failed to delete user jasperadmin with DELETE http://localhost:8080/jasperserver-pro/rest_v2/organizations/organization_1/users/jasperadmin?j_username=superuser&j_password=superuser
     [java] org.springframework.web.client.ResourceAccessException: I/O error on DELETE request for "http://localhost:8080/jasperserver-pro/rest_v2/organizations/organization_1/users/jasperadmin?j_username=superuser&j_password=superuser": Connection reset; nested exception is Connection reset
     [java]     at org.springframework.web.client.RestTemplate.doExecute(
     [java]     at org.springframework.web.client.RestTemplate.execute(
     [java]     at
     [java]     at com.termalabs.client.UsersUpdater.deleteUser(
     [java]     at com.termalabs.client.UsersUpdater.main(
     [java] Caused by: Connection reset
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at
     [java]     at org.springframework.http.client.SimpleClientHttpResponse.getRawStatusCode(
     [java]     at org.springframework.http.client.AbstractClientHttpResponse.getStatusCode(
     [java]     at org.springframework.web.client.DefaultResponseErrorHandler.getHttpStatusCode(
     [java]     at org.springframework.web.client.DefaultResponseErrorHandler.hasError(
     [java]     at org.springframework.web.client.RestTemplate.doExecute(
     [java]     ... 4 more
     [java] Java Result: 6



C:\Temp\terma-bi-installer-1.10\termaBiInstaller.xml:738: Last step failed, you can update superuser password in termaBiInstaller.xml and run: java -Djasper.root=c:\AAI_Reporting -Djasper.port=8080 -cp lib -jar lib/ant-launcher-1.9.7.jar -f termaBiInstaller.xml update-users


This indicates the failure to connect to the Insight API to perform the necessary update.


Release : 6.4.2-2



We found that only the jasperreportsTomcat service would start and not the jasperreportsTomcat 

The was an error in the catalina*.out log on the Insight server, in the /,<Install Dir>/apache-tomcat/logs directory, showing catalina shutting down, which is tomcat.

04-May-2022 15:02:51.059 INFO [localhost-startStop-2] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\AAI_Reporting\apache-tomcat\webapps\jasperserver-pro] has finished in [81,344] ms
04-May-2022 15:02:51.065 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
04-May-2022 15:02:51.078 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 81396 ms
04-May-2022 15:02:51.078 SEVERE [main] org.apache.catalina.core.StandardServer.await StandardServer.await: create[localhost:8005]: Address already in use: JVM_Bind
 at Method)
 at Source)
 at Source)
 at Source)
 at Source)
 at<init>(Unknown Source)
 at org.apache.catalina.core.StandardServer.await(
 at org.apache.catalina.startup.Catalina.await(
 at org.apache.catalina.startup.Catalina.start(
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.apache.catalina.startup.Bootstrap.start(
 at org.apache.catalina.startup.Bootstrap.main(

04-May-2022 15:02:51.079 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
04-May-2022 15:02:51.206 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]


We verified the port conflict by running netstat like below and found 8005 was in use:

netstat -a -b | findstr 8005

netstat -a -b | findstr 8080


The installation was using the termaBi-config.bat response file so we updated the section below to a port that was not in use.




They then uninstalled Insight and made sure the services were removed and attempted the Installation again and it succeeded. 


If you are not using the response file you can re run the installer with the /s flag to set the Tomcat Shut Down Port if that is the port affected:

/s, /shutdown-port Tomcat shutdown port. Optional. Default is 8005

There are also two other ports that could cause this, the Tomcat AJP port and the Tomcat Port:

        /a, /ajp-port Tomcat AJP port. Optional. Default is 8009

        /s, /shutdown-port Tomcat shutdown port. Optional. Default is 8005