Splunk Dev

AppInspect failing to install despite following Splunk Dev document instructions

adnankhan5133
Communicator

Hello,

I am currently running Splunk Enterprise 8.0.4 on an AWS EC2 instance, which already has Python 3.7 configured and pip-20.2.2 installed. 

Since I am planning to package and bundle our existing search app and other conf files into a private app for deployment to Splunk Cloud, I am trying to install and execute AppInspect beforehand.

I am following the instructions here, under the "Install AppInspect" section with the assumption that a virtualenv is created.  - https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/splunkappinspectclitool/i...

So far, I have the AppInspect tarball downloaded and was able to successfully run the following command, which allows me to upgrade pip:

[sudo] pip3 install --upgrade pip
[sudo] pip3 install splunk-appinspect-latest.tar.gz

However, when I ran the above command to install splunk-appinspect, I get the following error: 


/bin/bash: pip3: command not found

 

Does anyone have any suggestions on how I can proceed from here?

Tags (1)
0 Karma
1 Solution

adnankhan5133
Communicator
Thanks - I resolved this. It turned out to be a spacing issue after all.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That was the first of many problems I had when I tried to install AppInspect. IIRC, I resolved this problem by creating a link pip3->pip.  I eventually gave up and used the on-line tool, instead. It's at https://dev.splunk.com/enterprise/docs/developapps/testvalidate/appinspect/splunkappinspectapi/runap...

---
If this reply helps you, Karma would be appreciated.
0 Karma

adnankhan5133
Communicator

Thanks @richgalloway 

I'm trying the Splunk App Inspect API approach now, but ran into the following issue after trying to authenticate. I'm using my Splunk username and password , so I'm confused as to why I'm unable to connect to the URL.

 

$ curl -X GET \

> -u john.smith \ --url "https://api.splunk.com/2.0/rest/login/splunk"

Enter host password for user 'john.smith':

curl: (3) Host name ' --url' contains bad letter

{"status_code":401,"status":"error","msg":"Failed to authenticate user","errors":"401 - {\"status\":3, \"message\":[{\"major\":1,\"type\":\"User Error\",\"title\":\"UNAUTHORIZED\",\"short\":\"Could not authenticate user john.smith\",\"long\":\"\",\"hint\":\"\",\"stack\":\"\",\"product\":\"App - Core\",\"

0 Karma

adnankhan5133
Communicator
Thanks - I resolved this. It turned out to be a spacing issue after all.
0 Karma

thambisetty
SplunkTrust
SplunkTrust

Please up vote the answer.

————————————
If this helps, give a like below.

thambisetty
SplunkTrust
SplunkTrust

Check if you password has special characters that needs to be escaped in terminal.

set passwd=yourpassword

echo $passwd

see the complete password is echoing or breaking some where.

————————————
If this helps, give a like below.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...