Installation

Why does Splunk Cloud add-on fail to read globalConfig.json?

Shlifka
Observer

Hello,

I have an add-on in Splunk, that is supported in Splunk Cloud.

Recently with one of our customers, the installation failed because the add-on could not find globalConfig.json:

 

 

04-05-2022 14:10:59.731 +0000 ERROR ExecProcessor [31306 ExecProcessor] - message from "/opt/splunk/bin/python3.7 /opt/splunk/etc/apps/TA-island-add-on-for-splunk/bin/island_audits_input.py" FileNotFoundError: [Errno 2] No such file or directory: '/opt/splunk/etc/apps/TA-island-add-on-for-splunk/appserver/static/js/build/globalConfig.json'

2022-04-05 14:10:59,730 ERROR pid=12768 tid=MainThread file=base_modinput.py:log_error:309 | Traceback (most recent call last):

File "/opt/splunk/etc/apps/TA-island-add-on-for-splunk/bin/ta_island_add_on_for_splunk/aob_py3/modinput_wrapper/base_modinput.py", line 113, in stream_events

self.parse_input_args(input_definition)

File "/opt/splunk/etc/apps/TA-island-add-on-for-splunk/bin/ta_island_add_on_for_splunk/aob_py3/modinput_wrapper/base_modinput.py", line 154, in parse_input_args
self._parse_input_args_from_global_config(inputs)
File "/opt/splunk/etc/apps/TA-island-add-on-for-splunk/bin/ta_island_add_on_for_splunk/aob_py3/modinput_wrapper/base_modinput.py", line 166, in _parse_input_args_from_global_config
with open(config_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/splunk/etc/apps/TA-island-add-on-for-splunk/appserver/static/js/build/globalConfig.json'

 

 

Important to say, the app was built using the Splunk Add-on builder, and it seems this library throws the error.

The client have a managed environment (they can't install apps themselves or to change the settings there). they have a Splunk 8.2 Classic.

How can we resolve the errors?

Thank you very much!

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...