Mattermost Gitlab Webhooks
I have activated mattermost in my self-hosted gitlab-ce, which works fine. I've configured an incoming webhook in mattermost, and attached a gitlab project via the slack service integration. After pressing the "test settings"-button, I got a message in the mattermost-channel as expected.
However, three days (and no updates) later, the webhooks stopped working. I can manually and successfully create a message on the webhool via a curl-post, but gitlab won't send any notifications and the "Test settings" doesn't send a message either.
via gitlab-ctl tails
, I found the following error message:
==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/g-benefit/gluecksmoment24-frontend/services/slack/test" for xxx.xxx.xxx.xxx at 2016-08-08 12:03:57 +0200
Processing by Projects::ServicesController#test as HTML
Parameters: {"namespace_id"=>"gitlab-group", "project_id"=>"gitlab-project", "id"=>"slack"}
==> /var/log/gitlab/mattermost/mattermost.log <==
[2016/08/08 12:03:57 CEST] [EROR] /41bceyxxxxxxxxxxxxxxxxx:incomingWebhook code=500 rid=c9xk7g8xxxxxxxxxxxxx uid= ip=xxx.xxx.xxx.xxx Couldn't find the channel [details: err=store.sql_channel.get_by_name.missing.app_error]
I've searched the source and it seems, that the channel id can't be found for the webhook - which is really strange, because I can send it to the webhook via curl:
curl -i -X POST -d 'payload={"text": "Hello from Webhook"}' https://xxxxxxxxxxxx/hooks/41bceyxxxxxxxxxxxxxxxxx
Any infos?