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)
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
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
@shandr Thanks this is working for me as a quick fix to just test out the splunk app.
@shandr Thank you very much for the info. Im going to try that tonight. in the meanwhile, I'll accept it as answer