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
Get Updates on the Splunk Community!

Your Guide to Splunk Digital Experience Monitoring

A flawless digital experience isn't just an advantage, it's key to customer loyalty and business success. But ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...