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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...