Deployment Architecture

Add-on: Can't upload new version of my add-on to Splunk cloud?

amirk
Loves-to-Learn

My add-on is tag.gz is created with local folder when I export it

amirk_1-1659262552814.png

When I extract it it is created with local folder

amirk_0-1659262508887.png

 

When I'm trying to upload the add-on tar.gz I get this message
amirk_0-1659262412000.png

What is the problem?

Thanks in advance,

Amir

Labels (1)
0 Karma

mcmaster
Communicator

The "Export" link in add-on builder is for exporting the development environment so that it can be reimported into another development system. If you click "Validate & Package", this will take you to the interface for validating your package (which will upload it to AppInspect) where you can then download a package that has been properly formatted for publishing on Splunkbase.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The problem is apps submitted to Splunk Cloud must not have a local folder or a local.meta file.  You need to take steps to remove the local directory from the tarball before uploading it to Splunk Cloud.  That may mean merging local with default or simply deleting local.

As a rule, Splunk apps must never be delivered with a local directory, whether to cloud or on-prem instances.  Doing so risks overwriting custom settings.

---
If this reply helps you, Karma would be appreciated.
0 Karma

amirk
Loves-to-Learn

Thank you, I understand but isn't it suppose to be automatically? I also got this error after trying to upload version with local deleted

check_for_bin_files
This file has execute permissions for owners, groups, or others. File: metadata/default.meta
This file has execute permissions for owners, groups, or others. File: README/ta_sepio_systems_add_on_for_splunk_settings.conf.spec
This file has execute permissions for owners, groups, or others. File: appserver/static/js/build/3.licenses.txt
This file has execute permissions for owners, groups, or others. File: default/app.conf
This file has execute permissions for owners, groups, or others. File: appserver/static/js/build/1.licenses.txt
And more...

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Splunk will combine default and local in the package command, but the OP said nothing about that.  Also, the deployment server can perform the merge, but we're not talking about that here.

As for file security, this is another requirement that Splunk does not handle automatically.  The developer has to make sure files have the proper permissions.  The 'execute' bit must be disabled except on executables in /bin and on directories.  NOTE: Windows cannot set permissions correctly so this must be done on Linux or Mac.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...