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??
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.
Hi @markkasaboski ,
Thanks, it's working for me.
In my case, i have edit small code in Add-On & re-package.
Make sure your archive has parent and child directories
Example: (Content of xyz.tgz or xyz.zip)
<app_name>
|___ default
|___ metadata
|___ local
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.
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.
Same issue was with "Splunk Add-on for VMware". Solved using above method. Thanks
Same issue for Exchange add-on for Splunk 7.2. Same fix. Thanks.