Removing "TIBCO Spotfire Server Windows service" using 'service.bat' script file throws error 'The specified service does not exist as an installed service'

Removing "TIBCO Spotfire Server Windows service" using 'service.bat' script file throws error 'The specified service does not exist as an installed service'

book

Article ID: KB0082194

calendar_today

Updated On:

Products Versions
Spotfire Server All Versions

Description

This article describes how to resolve error, "The specified service does not exist as an installed service" when removing "TIBCO Spotfire Server Windows service" using "service.bat" script file.

The following error stack may appear in the command prompt after running "xxxx\tomcat\bin>service.bat remove" command.
-------------------------------------
Removing the service '<TSS_Serivce_Name>' ...
Using CATALINA_BASE:    "<TSS Installation folder>\tomcat"
The specified service does not exist as an installed service.
Unable to delete '<TSS_Serivce_Name> service The specified service does not exist as an installed service.
Failed to delete service Failed removing <TSS_Serivce_Name> service
------------------------------------

Cause:
When a TIBCO Spotfire Server is upgraded to a newer service pack with help of a hotfix, the "service.bat" file which is used to create/remove TIBCO Spotfire Server service is replaced with a newer version and with a updated service name to match the name of released service pack. However, the existing installed Windows service does not get modified automatically.

As stated in the hotfix Installation document, it is the responsibility of the user/administrator to manually modify the file to match the installed service name. If you miss to do so, this error could come at a later stage while removing/reinstalling the service to update any startup parameters such as JVM size by using the new "service.bat" script which has a new service name.

 

Issue/Introduction

When removing "TIBCO Spotfire Server Windows service" using 'service.bat' script file it may an error 'The specified service does not exist as an installed service'

Environment

All Supported Windows OS

Resolution

The following two approaches can be used to resolve the error.

1). With the following method, the old service name will be used with the newer version of service.bat.
---------------------------------
a). Find the old TSS service name using the following procedure.

On Spotfire server Machine, open Windows Services panel(services.msc)--> right-click on the TIBCO Spotfire Server service and select "properties" and look for the Service name field in the General Tab. (Refer to the attached image, file name: TSS_Service_properties.JPG).

b). Modify the service.bat file and update the service name with old name.

- Open service.bat file (xxxx\tomcat\bin\service.bat)
- Edit service.bat file -> Search for "set SERVICE_NAME=xxxx" -> replace the "xxxx" with old service name found above.

c). Save the file and use it while removing/reinstalling the service.
---------------------------------


2). With this method the old service will be removed and a new TIBCO Spotfire Server service will be installed with a new service name.
---------------------------------
a). Find the old TSS service name with following procedure.

On Spotfire server Machine, open Windows Services panel(services.msc)--> right-click on the TIBCO Spotfire Server service and select "properties" and look for the Service name field in the General Tab. (Refer to the attached image, file name: TSS_Service_properties.JPG).

b). Remove the old service:

- Open command prompt
- Browse to tomcat\bin folder
- Run command " service.bat remove 'Old_Service_Name_found_above' "

c). Reinstall the service with new name.

- Open command prompt
- Browse to tomcat\bin folder
- Run command " service.bat install ".
------------------------------

Attachments

Removing "TIBCO Spotfire Server Windows service" using 'service.bat' script file throws error 'The specified service does not exist as an installed service' get_app