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

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
Explorer

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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...