Every time I try to test the connectivity between Gitlab and Mattermost (from the Gitlab side - i.e. the Slack-style integration), I get an Error 500. In the production.log, I see the following error:
Started GET "/testingroup/mattermost/services/slack/test" for 127.0.0.1 at 2016-03-09 11:27:19 -0500
Processing by Projects::ServicesController#test as HTML
Parameters: {"namespace_id"=>"testingroup", "project_id"=>"mattermost", "id"=>"slack"}
Completed 500 Internal Server Error in 150ms (ActiveRecord: 5.5ms)
SocketError (getaddrinfo: Name or service not known):
app/models/project_services/slack_service.rb:101:in `execute'
app/models/service.rb:106:in `test'
app/controllers/projects/services_controller.rb:49:in `test'
This used to work on 8.4.1, but after the update to 8.5 and ever since the connection doesn’t seem to work. Running dig and nslookup on the Gitlab system for the Mattermost URL returns the correct IP, so DNS does not seem to be an issue.
Update: I’ve also run curl to test this; it works flawlessly and Mattermost provides a success response/I can see the message appear in the system.
Any update/ideas? This isn’t game-breaking for me but I’d like to be able to get the integration back up and running as it was prior to the 8.5 upgrade.
Even despite that host mapping, the getaddrinfo lookup fails. The addresses are internally routable only - not accessible via the Internet - is it possible that’s creating an issue, given that I had to configure a proxy so that we could import from GitHub?
@kelvinmutuma, One more thing. If I enable the Slack integration as a default (in Gitlab settings), and create a new project, then navigate to that project’s settings to test the integration, the “Test settings” button is greyed out, and hovering over it turns the cursor into a . Changing the settings and clicking “Save settings” does not fix this.
I’ve fixed this issue, though I haven’t really got a clue why it now works. After setting all services to use HTTPS, the integration was sending a new error regarding SSL certificate verification issues. Once I imported my org’s internal root CA, everything works as expected now.