Mattermost Peer-to-Peer Forum

JIRA Plugin "not configured"


#1

HI,
i recently upgraded to MM5.6.1. Activated and enabled the jira plugin and when i try f.e. the curl request i get a message like “This plugin is not configured.” (403). I already searched for it and found the coresponding source code line in the plugin.go file:

if !p.Enabled || p.Secret == "" || p.UserName == "" {
	http.Error(w, "This plugin is not configured.", http.StatusForbidden)

A secret is set and the username is also selected.


#2

This happens to me too. Anybody can help?


#3

Here are some more info what i get when i do a curl.

root@server1:/home# curl -v --insecure “https://mm.myofficedomain.local/plugins/jira/webhook?secret=JtI7arkbGZxYjhF3RPFX_Uhd6x-wZk3X&team=office&channel=town-square&user_id=mm.admin&user_key=mm.admin” --data ‘{“event”:“some_jira_event”}’

  • Trying 172.23.9.13…
  • TCP_NODELAY set
  • Connected to mm.officedomain.local (172.23.9.13) port 443 (#0)
  • ALPN, offering h2
  • ALPN, offering http/1.1
  • successfully set certificate verify locations:
  • CAfile: /etc/ssl/certs/ca-certificates.crt
    CApath: /etc/ssl/certs
  • TLSv1.2 (OUT), TLS handshake, Client hello (1):
  • TLSv1.2 (IN), TLS handshake, Server hello (2):
  • TLSv1.2 (IN), TLS handshake, Certificate (11):
  • TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  • TLSv1.2 (IN), TLS handshake, Server finished (14):
  • TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  • TLSv1.2 (OUT), TLS change cipher, Client hello (1):
  • TLSv1.2 (OUT), TLS handshake, Finished (20):
  • TLSv1.2 (IN), TLS handshake, Finished (20):
  • SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
  • ALPN, server accepted to use h2
  • Server certificate:
  • subject: OU=Domain Control Validated; CN=*.officedomain.local
  • start date: Oct 20 05:35:38 2016 GMT
  • expire date: Oct 16 14:12:38 2019 GMT
  • issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=http://certs.godaddy.com/repository/; CN=Go Daddy Secure Certificate Authority - G2
  • SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
  • Using HTTP2, server supports multi-use
  • Connection state changed (HTTP/2 confirmed)
  • Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  • Using Stream ID: 1 (easy handle 0x55982d8a1900)

POST /plugins/jira/webhook?secret=JtI7arkbGZxYjhF3RPFX_Uhd6x-wZk3X&team=office&channel=town-square&user_id=mm.admin&user_key=mm.admin HTTP/2
Host: mm.officedomain.local
User-Agent: curl/7.58.0
Accept: /
Content-Length: 27
Content-Type: application/x-www-form-urlencoded

  • Connection state changed (MAX_CONCURRENT_STREAMS updated)!
  • We are completely uploaded and fine
    < HTTP/2 403
    < content-type: text/plain; charset=utf-8
    < x-content-type-options: nosniff
    < content-length: 31
    < date: Fri, 21 Dec 2018 09:21:23 GMT
    <
    This plugin is not configured.
  • Connection #0 to host mm.officedomain.local left intact

#4

Check if you have one or two jira plugin within the plugin folder


#5

@ShakaZzzz @sanjisanjisanji

  1. Which version did you upgrade from? 5.5?
  2. Also, do you seen any errors in the Server Logs (System Console > Logs) that would indicate a potential cause. Is it the 403 error you’re referencing above?

#6

Thank you for the reports of the JIRA plugin not working in 5.6.1 - we’ve been able to reproduce it.

The plan is to fix this with 5.6.2, which we expect to release shortly after the holidays. Here is the ticket to track: https://mattermost.atlassian.net/browse/MM-13581


#7

@ShakaZzzz @sanjisanjisanji @JtheBAB We have released 5.6.2 which should fix any remaining issues with the JIRA plugin. It is available to download here https://mattermost.com/download/

If you notice any further issues, please let us know.


#8

it works now! Thanks @jasonblais


#9

HI, now i get an error with “invalid character ‘’’ looking for beginning of value” which seams to be related to the “data” parameter: --data ‘{“event”:“create”}’, seems to be windows related, in ubuntu it works.
But testing it with jira, no message is posted.


#10

Hi @ShakaZzzz, have you had a chance to take a look at our troubleshooting tips: https://docs.mattermost.com/integrations/jira.html#why-doesn-t-my-jira-webhook-post-any-messages?


#11

v1.0.4 of the jira plugin got releases today. Would you please check if this fixes your issue?