Building for the Splunk Platform

Running the Django "Create an app and add a page template" tutorial, why am I getting "Please check your SPLUNK_HOME path and try again"?


Running Splunk 6.2.4 on Mint 17, I'm trying to run the "Create an app and add a page template" tutorial (sorry, not enough karma to post links yet) and I get:

/opt/splunk/etc/apps/framework $ sudo ./splunkdj createapp mydjangoapp

/opt/splunk/bin/bin/splunk was not found.  Please check your SPLUNK_HOME path and try again.

I have checked my envvars:

PATH=/opt/splunk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ; export PATH ; HOSTNAME=inga ; export HOSTNAME ; SPLUNK_HOME=/opt/splunk ; export SPLUNK_HOME ; SPLUNK_DB=/opt/splunk/var/lib/splunk ; export SPLUNK_DB ; SPLUNK_SERVER_NAME=Splunkd ; export SPLUNK_SERVER_NAME ; SPLUNK_WEB_NAME=splunkweb ; export SPLUNK_WEB_NAME ; MONGOC_DISABLE_SHM=1 ; export MONGOC_DISABLE_SHM ; PYTHONPATH=/opt/splunk/lib/python2.7/site-packages ; export PYTHONPATH ; PYTHONHASHSEED=random ; export PYTHONHASHSEED ; NODE_PATH=/opt/splunk/lib/node_modules ; export NODE_PATH ; LD_LIBRARY_PATH=/opt/splunk/lib ; export LD_LIBRARY_PATH ; OPENSSL_CONF=/opt/splunk/openssl/openssl.cnf ; export OPENSSL_CONF ; LDAPCONF=/opt/splunk/etc/openldap/ldap.conf ; export LDAPCONF

so my path is correct. I'm pretty sure that this occurred when I tried to do this the first time and it asked me for the path, so I entered it, am thinking now I should have just hit enter? How do I undo or fix this? I've looked around and found nothing specific to this issue.

0 Karma

Esteemed Legend

You need to check the variable under user root like this:

sudo echo $SPLUNK_HOME

Or better yet, just do this:

sudo SPLUNK_HOME=/opt/splunk; export SPLUNK_HOME; cd $SPLUNK_HOME; ./splunkdj createapp mydjangoapp
0 Karma
Get Updates on the Splunk Community!

BSides Splunk 2022 - The Call for Papers is now Open!

TLDR; Main Site: CFP Site: CFP Opens: December 15th, ...

Sending Metrics to Splunk Enterprise With the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

What's New in Splunk Cloud Platform 9.0.2208?!

Howdy!  We are happy to share the newest updates in Splunk Cloud Platform 9.0.2208! Analysts can benefit ...