Dashboards & Visualizations
Highlighted

How to fix broken Menu Icons in the app navigation drop-down menu?

Path Finder

Hello,

In the app navigation menu, the area where you can switch between apps, all of the menu icons are broken. Instead of showing the small image, it shows a text box that says "menu icon." I have attached an image of this. Please note that this is for all apps as well, not just search & reporting.

The problem here is that multiple people work on the same Splunk Instance and new JavaScript & CSS are constantly being added. No one noticed when this first happened, so we cannot track it back to where it happened.

Does anyone have any insight on where this error might be at? How to fix this?

Thanks

alt text

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

SplunkTrust
SplunkTrust

In your favorite Browser, open this tab:

http://<yourSplunk>/en-US/splunkd/__raw/servicesNS/admin/search/static/appIconAlt.png
or
http://<yourSplunk>/en-US/splunkd/__raw/servicesNS/admin/search/static/appIconAlt_2x.png

Do you see an icon in the browser? If you do NOT, then check file permissions on the searchheads. The images must be readable by Splunk.

If you do see the icon in the browser, there is something more sinister afoot. Don't forget to check the Network calls in the Developer Tools of the Browser, you might be able to see where it is breaking.

Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

Path Finder

Thanks for the quick reply.

I went to the links you provided and I received the following:

"The image "https:///en-US/splunkd/__raw/servicesNS/admin/search/static/appIconAlt.png" cannot be displayed because it contains errors.

Do you think this is a permission issue?

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

SplunkTrust
SplunkTrust

It's possible. Can you ls -la the folder $SPLUNK_HOME/etc/apps/search/static and $SPLUNK_HOME/etc/apps/search/appserver/static? post the results?

Copy the images from the search head to your local system, and see if they render correctly.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

Path Finder

/opt/splunk/etc/apps/search/static # ls -la
total 24
drwxr-xr-x 2 splunk splunk 4096 Sep 1 16:35 .
drwxr-xr-x 10 splunk splunk 4096 Jul 22 21:49 ..
-r--r--r-- 1 root root 437 Sep 1 16:35 appIcon.png
-r--r--r-- 1 root root 444 Sep 1 16:35 appIconAlt.png
-r--r--r-- 1 root root 735 Sep 1 16:35 appIconAlt2x.png
-r--r--r-- 1 root root 734 Sep 1 16:35 appIcon
2x.png

I also have moved the icons over to my local windows machine and windows photo viewer is not able to view them.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

Path Finder
/opt/splunk/etc/apps/search/static # ls -la
total 24
drwxr-xr-x  2 splunk splunk 4096 Sep  1 16:35 .
drwxr-xr-x 10 splunk splunk 4096 Jul 22 21:49 ..
-r--r--r--  1 root   root    437 Sep  1 16:35 appIcon.png
-r--r--r--  1 root   root    444 Sep  1 16:35 appIconAlt.png
-r--r--r--  1 root   root    735 Sep  1 16:35 appIconAlt_2x.png
-r--r--r--  1 root   root    734 Sep  1 16:35 appIcon_2x.png

They also will not open in my windows machine.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

SplunkTrust
SplunkTrust

Right, ok. So let's start with permissions. chown -R splunk: /opt/splunk/etc/apps. This will reset owner and group to splunk.

Once changed:

https://<your_splunk>/en-US/_bump

and

https://<your_splunk>/en-US/debug/refresh

This will reload the images and break any caches.

I'm also on IRC #splunk on Efnet.org if you wanna chat in realtime.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

SplunkTrust
SplunkTrust

Oh, and do a chmod -R 755 /opt/splunk/etc/apps just to make sure.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

Path Finder

I am still having the same issue after issuing these commands.

I have bumped the version.

 https://<your_splunk>/en-US/debug/refresh

Does not load.

0 Karma
Highlighted

Re: How to fix broken Menu Icons in the app navigation drop-down menu?

New Member

Adding to the conversation down here to see if I can keep it straight better... same issue here, and did confirm that restpropertiesget is granted...

Permissions look like this:

cd /opt/splunk/etc/apps/search/static

ls -la

total 24
drwxr-xr-x. 2 splunk splunk 4096 Aug 13 16:05 .
drwxr-xr-x. 10 splunk splunk 4096 Jul 10 00:28 ..
-rwxr-xr-x. 1 splunk splunk 3556 Jul 9 23:26 appIcon2x.png
-rwxr-xr-x. 1 splunk splunk 2547 Jul 9 23:26 appIconAlt
2x.png
-rwxr-xr-x. 1 splunk splunk 1981 Jul 9 23:26 appIconAlt.png
-rwxr-xr-x. 1 splunk splunk 3167 Jul 9 23:26 appIcon.png

0 Karma