All Apps and Add-ons

Why am I getting error "archive contains more than one immediate subdirectory" installing Splunk App for NetApp data ONTAP 2.1.4?

heewonha
Engager

Hello,

I tried to install the Splunk App for NetApp Data ONTAP 2.1.4 on Splunk 6.4.4 version.
But I got message:

Invalid app contents: archive contains more than one immediate subdirectory: and SA-Hydra

How can I fix it??

jlunn2025
New Member

For Netapp data ontap plugin this is because the tar within the tgz contains hydra and the ontap package.

0 Karma

markkasaboski
New Member

Had this issue with a different add-on. 

When packaging an app/add-on using tar, use the following:

 

COPYFILE_DISABLE=1 tar --format ustar -cvzf <appname>.tar.gz <appname_directory>

 

You'll find this in the documentation here.

 

0 Karma

muhammad_luthfi
Path Finder

Hi @markkasaboski ,

 

Thanks, it's working for me.

In my case, i have edit small code in Add-On & re-package.

0 Karma

jawaharas
Motivator

Make sure your archive has parent and child directories

Example: (Content of xyz.tgz or xyz.zip)

 <app_name>
      |___ default
      |___ metadata
      |___ local
0 Karma

cdstealer
Contributor

You can't install this app via the GUI as the tgz file contains multiple apps (dependencies). You'll need to extract the tgz file within /opt/splunk/etc/apps (if not using a cluster) and restart splunk. However, since version 2.1.5, the search head app is now stand alone and can be installed via the GUI. But the Add-on still contains multiple apps and requires manual unpacking.

ClubMed
Path Finder

This the real answer. Still valid as of 2024 for the VMware TA add-on. GUI did not work for installation.

Had to copy the tgz into the directory and extract it. Restarted Splunk and it works.

0 Karma

MoniM
Communicator

Same issue was with "Splunk Add-on for VMware". Solved using above method. Thanks

0 Karma

nick405060
Motivator

Same issue for Exchange add-on for Splunk 7.2. Same fix. Thanks.

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 ...