Installation

Why am I getting the error "tmp directory doesn't exist" when trying to install the splunkclouduf.spl file?

nkitmitt
New Member

When I'm trying to install the splunkclouduf.spl file, I run into an error that a tmp directory doesn't exist. I got Splunk installed on one host just fine, with the exact same configuration (Amazon Linux, 2017.09.1.20180115). Nothing else is installed on these servers except the Splunk forwarder. I've tried on a third host, and got the same error:

[root@<hostname> ~]# /opt/splunkforwarder/bin/splunk install app splunkclouduf.spl -auth admin:changeme
Error during app install: failed to extract app from /root/splunkclouduf.spl to /opt/splunkforwarder/var/run/splunk/bundle_tmp/2d5c2511cc4a37f4: No such file or directory

I've tried changing /opt/splunkforwarder/var/run/splunk/bundle_tmp to 777 for testing, and that did not work.

0 Karma

ideocentric
New Member

I was having the same issue. The problem I discovered was that when using wget or curl to download splunkclouduf.spl that the resulting file was html and not the intended download. This was discovering by looking at the file contents using the head command. By downloading in a browser, then copying over to the intended system, the installation went correctly.

0 Karma

kleanthis
New Member

I have the same issue , i have tried:

chmod -R 777 /opt/splunkforwarder - did not work
chown -R splunk:splunk /opt/splunkforwarder - did not work
run ./splunk start as root and then try - did not work

What are we missing here ?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...