All Apps and Add-ons

Splunk add-on builder validation - blank screen

tomasmoser
Contributor

Hi Team,

I created an add-on in Splunk Add-on Builder. I wanted to validate it. When I click "Validate" there is no output at all. I cannot find a problem. Does anybody has a clue what's the problem?

I run latest Debian stable 9.3 linux on 64bit platform. I found below errors in web_service.log:

2018-01-29 23:56:59,026 ERROR   [5a6fa6b1db7f36e805dc90] <string>:79 - Cannot start validation. error: Traceback (most recent call last):
  File "<string>", line 63, in submit_validation_job
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/ta_generator/builder_ta_validation.py", line 65, in start_validation_job
    key_values)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/aob/aob_common/metric_collector/metric_util.py", line 80, in func_wrappers
    ret = func(*args, **kwargs)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/tabuilder_utility/tab_conf_manager.py", line 133, in create_data_input
    self.service.inputs.create(name, input_type, **key_values)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2286, in create
    kindpath = self.kindpath(kind)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2433, in kindpath
    if kind in self.kinds:
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2401, in kinds
    return self._get_kind_list() 
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2390, in _get_kind_list
    subkinds = self._get_kind_list(subpath + [entry.title])
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2390, in _get_kind_list
    subkinds = self._get_kind_list(subpath + [entry.title])
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 2378, in _get_kind_list
    response = self.get('/'.join(subpath))
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 1648, in get
    return super(Collection, self).get(name, owner, app, sharing, **query)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/client.py", line 746, in get
    **query)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py", line 287, in wrapper
    return request_fun(self, *args, **kwargs)
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py", line 69, in new_f
    val = f(*args, **kwargs) 
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py", line 665, in get       
    response = self.http.get(path, self._auth_headers, **query)                                                                      
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py", line 1160, in get      
    return self.request(url, { 'method': "GET", 'headers': headers })                                                                
  File "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py", line 1221, in request  
    raise HTTPError(response)                                                                                                        
HTTPError: HTTP 404 Not Found -- Not Found    

Cheers
Tomas

0 Karma
1 Solution

tomasmoser
Contributor

Resolved.

For some reason Splunk user didn't have enough capabilities. After I added all the missing ones problem vanished.

My suspicion is that following error code snippet actually relates to REST API call - I was missing "rest...." capabilites:

> File
> "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py",
> line 1221, in request  
>      raise HTTPError(response)                                                                                                          HTTPError: HTTP 404 Not Found -- Not
> Found

Tomas

View solution in original post

0 Karma

tomasmoser
Contributor

Resolved.

For some reason Splunk user didn't have enough capabilities. After I added all the missing ones problem vanished.

My suspicion is that following error code snippet actually relates to REST API call - I was missing "rest...." capabilites:

> File
> "/opt/splunk/etc/apps/splunk_app_addon-builder/bin/splunk_app_add_on_builder/solnlib/packages/splunklib/binding.py",
> line 1221, in request  
>      raise HTTPError(response)                                                                                                          HTTPError: HTTP 404 Not Found -- Not
> Found

Tomas

0 Karma

merrelr
Path Finder

@tomasmoser 
I'm having this same issue, but I don't quite understand your solution.

I'm running splunk locally and logging in as admin which has all REST permissions. 


 

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...