kuleuven / jenkins-mattermost-plugin

Jenkins plugin for Mattermost
MIT License
24 stars 46 forks source link

Problem Connecting Mattermost to Jenkins #16

Closed privatereese closed 7 years ago

privatereese commented 7 years ago

Hi,

i got some problem connecting Mattermost with Jenkins. Scenario: two different servers, one running mattermost the other running jenkins.

Curl as mentioned here goes trough and produces output. https://docs.mattermost.com/developer/webhooks-incoming.html

curl -i -X POST -d 'payload={"text": "Hello, this is some text.\nThis is more text."}' http://yourmattermost.com/hooks/xxx-generatedkey-xxx

The test connection button in jenkins for the plugin generates something like this at the mattermost site:

[2016/12/14 16:53:02 CET] [DEBG] websocket.authTicker: did not authenticate ip=127.0.0.1:44516 [2016/12/14 16:53:02 CET] [DEBG] websocket.read: closing websocket for userId= error=read tcp 127.0.0.1:8065->127.0.0.1:44516: use of closed network connection [2016/12/14 16:53:04 CET] [DEBG] websocket.authTicker: did not authenticate ip=127.0.0.1:44528 [2016/12/14 16:53:04 CET] [DEBG] websocket.read: closing websocket for userId= error=read tcp 127.0.0.1:8065->127.0.0.1:44528: use of closed network connection [2016/12/14 16:53:04 CET] [DEBG] websocket.authTicker: did not authenticate ip=127.0.0.1:44530 [2016/12/14 16:53:04 CET] [DEBG] websocket.read: closing websocket for userId= error=read tcp 127.0.0.1:8065->127.0.0.1:44530: use of closed network connection

I am somehow lost on where to correct this IP mistake as the proxy setting , mentioned in help text, do not seem to help in this case.

Best Regards.

jovandeginste commented 7 years ago

Did you look at the jenkins log?

jovandeginste commented 7 years ago

Any updates?

privatereese commented 7 years ago

Can be closed, it looks like it was a SSL Problem. Loading the whole certificate chain to the webserver fixed the problem.