All Apps and Add-ons

SonarQube Addon App Error

spammenot66
Contributor

I've installed the [Sonarqube Addon][1] and have ran the config. I'm getting the following error. Can someone provide info on how to resolve this error?

2019-11-22 01:20:27,684 ERROR pid=25584 tid=MainThread file=base_modinput.py:log_error:307 | Get error when collecting events.
Traceback (most recent call last):
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\modinput_wrapper\base_modinput.py", line 127, in stream_events
    self.collect_events(ew)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\issues.py", line 80, in collect_events
    input_module.collect_events(self, ew)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\input_module_issues.py", line 149, in collect_events
    headers=headers)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\modinput_wrapper\base_modinput.py", line 476, in send_http_request
    proxy_uri=self._get_proxy_uri() if use_proxy else None)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\splunk_aoblib\rest_helper.py", line 43, in send_http_request
    return self.http_session.request(method, url, **requests_args)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\requests\sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\requests\sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "C:\Program Files\Splunk\etc\apps\TA-sonarqube\bin\ta_sonarqube\requests\adapters.py", line 497, in send
    raise SSLError(e, request=request)
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:741)
1 Solution

shandr
Path Finder

I had some luck with this work around
https://answers.splunk.com/answers/709633/disable-verify-ssl-cert.html.

That article was written for a different app, but tells us a way to turn off SSL Verification.

Basically, it says
TA-sonarqube\bin\ta_sonarqube\requests\sessions.py: #SSL Verification default
TA-sonarqube\bin\ta_sonarqube\requests\sessions.py: self.verify = False
TA-sonarqube\bin\ta_sonarqube\requests\adapters.py: def send( ... verify=False

Try a broader search for CERTIFICATE_VERIFY_FAILED. I have found other suggestions but so far I could not get them to work.
eg. https://access.redhat.com/articles/2039753 has instructions for how to cat ca-bundle.crt >> cacerts.txt

View solution in original post

0 Karma

shandr
Path Finder

I had some luck with this work around
https://answers.splunk.com/answers/709633/disable-verify-ssl-cert.html.

That article was written for a different app, but tells us a way to turn off SSL Verification.

Basically, it says
TA-sonarqube\bin\ta_sonarqube\requests\sessions.py: #SSL Verification default
TA-sonarqube\bin\ta_sonarqube\requests\sessions.py: self.verify = False
TA-sonarqube\bin\ta_sonarqube\requests\adapters.py: def send( ... verify=False

Try a broader search for CERTIFICATE_VERIFY_FAILED. I have found other suggestions but so far I could not get them to work.
eg. https://access.redhat.com/articles/2039753 has instructions for how to cat ca-bundle.crt >> cacerts.txt

0 Karma

aa70627
Communicator

@shandr Thanks this is working for me as a quick fix to just test out the splunk app.

0 Karma

spammenot66
Contributor

@shandr Thank you very much for the info. Im going to try that tonight. in the meanwhile, I'll accept it as answer

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...