Installation

windows MSI upgrade fails, with installer unable to create the service

yannK
Splunk Employee
Splunk Employee

While upgrading on windows server, with the MSI installer, the splunkd service creation may fail with "Create Splunk services: Splunk Installer was unable to create Splunk Services"
and a popup " "splunk installer was unable to launch splunk's first time run error code: 1"

The error is also visible on the msi logs in %TEMP%\Splunk-(version).log


*** _LaunchAppEx: Create process executing: cmd.exe /c ""C:\Program Files\Splunk\bin\splunk.exe" enable boot-start-loop --answer-yes --no-prompt --accept-license >> C:\Users\btester\AppData\Local\Temp\Splunk-108.5.18156.log 2>>&1"
*** _LaunchAppEx: WaitForSingleObject retval=0, exitCode=1
*** Create Splunk services: Splunk Installer was unable to create Splunk Services.

Tags (2)
1 Solution

yannK
Splunk Employee
Splunk Employee

It can be a permission issue or a problem with the service.

The workaround is to remove the service before upgrading :

  • make sure to stop splunk, check the service list
  • double check the name of the service (should be splunkd)
  • delete the service on the command line : sc delete splunkd
  • apply the installer as admininstrator

View solution in original post

yannK
Splunk Employee
Splunk Employee

It can be a permission issue or a problem with the service.

The workaround is to remove the service before upgrading :

  • make sure to stop splunk, check the service list
  • double check the name of the service (should be splunkd)
  • delete the service on the command line : sc delete splunkd
  • apply the installer as admininstrator
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...