Security

Failing to enable boot-start with user parameter

vadud3
Path Finder
root@splunk:/usr/src# dpkg -i splunk-4.2-96430-linux-2.6-amd64.deb
Selecting previously deselected package splunk.
(Reading database ... 48824 files and directories currently installed.)
Unpacking splunk (from splunk-4.2-96430-linux-2.6-amd64.deb) ...
Setting up splunk (4.2-96430) ...
----------------------------------------------------------------------
Splunk has been installed in:
        /opt/splunk

To start Splunk, run the command:
        /opt/splunk/bin/splunk start

To use the Splunk Web interface, point your browser at:
        http://apa-splunk-04:8000

Complete documentation is at http://www.splunk.com/r/docs

root@apa-splunk-04:/usr/src# /opt/splunk/bin/splunk start
SPLUNK SOFTWARE LICENSE AGREEMENT
[..]
 "Splunk Developer API" means the documentation and functionality enabling
Do you agree with this license? [y/n]: y

This appears to be your first time running this version of Splunk.
Copying '/opt/splunk/etc/openldap/ldap.conf.default' to '/opt/splunk/etc/openldap/ldap.conf'.
Generating RSA private key, 1024 bit long modulus
[..]
The Splunk web interface is at http://splunk:8000

root@splunk:/usr/src# /opt/splunk/bin/splunk enable boot-start -user splunk
bash: splunk: command not found
First-time-run has not finished.  Ignore this error when previewing migration - exiting.

Any idea why it is failing? It is also giving wrong error message

"bash: splunk: command not found"

root@splunk:/usr/src# /opt/splunk/bin/splunk --version
Splunk 4.2 (build 96430)

root@splunk:/usr/src# getent passwd splunk
splunk:x:1001:1001:Splunk Server:/opt/splunk:/bin/bash
Tags (1)

samhendley
New Member

Was there any resolution to this issue? I have run into the same issue, from the error I am guessing there is a script somewhere that is assuming splunk is on the path directly.

0 Karma

netwrkr
Communicator

Did you update $SPLUNK_HOME/etc/splunk-launch.conf ?

0 Karma

vadud3
Path Finder

no I did not. It is default.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...