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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...