All Apps and Add-ons

Search Activity 2.2.9: Unable to update the app. Is there an issue with the tar file?

mfrost8
Builder

Maybe I'm mistaken, but it seems as if there's some issue with the latest v2.2.9 Search Activity app, specifically with the tar file.

I noticed that when I tried to update it via the link in the Splunk UI, it spins for a while then gives me a 500 error.

When I downloaded the tar file itself and try to extract it as an ordinary user on a 64-bit Linux server, it gives me a permission denied on every file (and yes, I'm doing this in a directory where I have permissions and on a filesystem that is not full).

When I attempt to look through what was extracted, I see a few files and directories, but then some look like

> ./search_activity/static: ls: cannot
> access
> ./search_activity/static/appIconAlt.png:
> Permission denied ls: cannot access
> ./search_activity/static/appLogo.png:
> Permission denied ls: cannot access
> ./search_activity/static/appLogo_2x.png:
> Permission denied ls: cannot access
> ./search_activity/static/appIconAlt_2x.png:
> Permission denied ls: cannot access
> ./search_activity/static/appIcon.png:
> Permission denied ls: cannot access
> ./search_activity/static/appIcon_2x.png:
> Permission denied total 0
> -????????? ? ? ? ?            ? appIcon_2x.png
> -????????? ? ? ? ?            ? appIconAlt_2x.png
> -????????? ? ? ? ?            ? appIconAlt.png
> -????????? ? ? ? ?            ? appIcon.png
> -????????? ? ? ? ?            ? appLogo_2x.png
> -????????? ? ? ? ?            ? appLogo.png

I'm guessing that there's an issue with the way this tar file was created as I've never seen an issue with any tar file like this one before.
thanks

1 Solution

fabioarcidiacon
Engager

The problem is that in the tar some folders are missing the execution flag. I've extracted the tar, added the missing permissions and rebuild the tar like this:

tar -zxvf search-activity_229.tgz
find search_activity/ -type d -exe chmod +x {} \;
tar -zcvf search-activity_229.tgz search_activity/
splunk install app search-activity_229.tgz -update 1 -auth <username>:<password>

View solution in original post

David
Splunk Employee
Splunk Employee

Super impressed with Fabioarcidiacono's answer!

I did also provide an updated release (2.2.10) just now that fixed the underlying problem. Sorry everyone for the issue!

fabioarcidiacon
Engager

The problem is that in the tar some folders are missing the execution flag. I've extracted the tar, added the missing permissions and rebuild the tar like this:

tar -zxvf search-activity_229.tgz
find search_activity/ -type d -exe chmod +x {} \;
tar -zcvf search-activity_229.tgz search_activity/
splunk install app search-activity_229.tgz -update 1 -auth <username>:<password>

mfrost8
Builder

I had to modify that slightly to work on my system, but this got it to work. Hopefully the author notices this and makes the fix in the official version.

Thanks very much!

0 Karma
Get Updates on the Splunk Community!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...