This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Stackstorm jira pack issue

Hi All,

After configuring Jira Pack in stackstorm , I’m facing this issue and I’m unable to create or get any issue from Jira.

WARNING:root:Got recoverable error from GET myjira:8080/rest/api/2/serverInfo, will retry [1/3] in 4.07404639477s. Err: 401 \nWARNING:root:Got recoverable error from GET myjira:8080/rest/api/2/serverInfo, will retry [2/3] in 33.4701336819s. Err: 401 \nWARNING:root:Got recoverable error from GET myjira:8080/rest/api/2/serverInfo, will retry [3/3] in 22.8582043358s. Err: 401 \nTraceback (most recent call last):\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py\", line 275, in <module>\n    obj.run()\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py\", line 162, in run\n    action = self._get_action_instance()\n  File \"/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py\", line 240, in _get_action_instance\n    action_service=action_service)\n  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/utils.py\", line 98, in get_action_class_instance\n    action_instance = action_cls(**kwargs)\n  File \"/opt/stackstorm/packs/jira/actions/lib/base.py\", line 17, in __init__\n    self._client = self._get_client()\n  File \"/opt/stackstorm/packs/jira/actions/lib/base.py\", line 34, in _get_client\n    client = JIRA(options=options, oauth=oauth_creds)\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 346, in __init__\n    si = self.server_info()\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 1943, in server_info\n    j = self._get_json('serverInfo')\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 2355, in _get_json\n    r = self._session.get(url, params=params)\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 150, in get\n    return self.__verb('GET', url, **kwargs)\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 146, in __verb\n    raise_on_error(response, verb=verb, **kwargs)\n  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 56, in raise_on_error\n    r.status_code, error, r.url, request=request, response=r, **kwargs)\njira.exceptions.JIRAError: JiraError HTTP 401 url: http://myjira:8080/rest/api/2/serverInfo\n\ttext: oauth_problem=signature_invalid&oauth_signature=Q%2BnUQegJNK71dgwvuSM0WhRg1bqniI59u9Vq21TfrIX8dEY4r7kNnoBMXTldLdeBkafP3qSJwwH9Y80z7qFw70e7WLVwa6%2F73XUoMdzFcsioVb22WmpRNyHClD9zNUotPz4WgKoiO1f02KcTrUnvXBa%2BzjN5I2Xqch8W5R%2ByVjnLpA4Wpgj7Vkt6eH%2BzN4HaDD01cG8flheFjkUieTaIOtCMcLPbxisQnDlDfW99E6r4233sxK2%2FjuCn8f6%2BVG3G6544MJ7mRxHOH7d1jwldv5efp8wJJ%2BZfZLtaVUUSSt0jwf%2FVHkLTrA7sBeFKvsuu6G8YrverU6wTkH7fgkbtqA%3D%3D&oauth_signature_base_string=GET%26http%253A%252F%252Fmyjira%253A8080%252Frest%252Fapi%252F2%252FserverInfo%26oauth_consumer_key%253D9a9c6e0c-43e2-479f-92c6-26da5660d45f%2526oauth_nonce%253D7486406249565642931520594130%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1520594130%2526oauth_token%253DwCv3WUSfiMQC6owZxyhGoJbXs7vyvdDR%2526oauth_version%253D1.0&oauth_signature_method=RSA-SHA1\n\t\n\tresponse headers = {'Date': 'Fri, 09 Mar 2018 11:15:30 GMT', 'Content-Length': '825', 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'WWW-Authenticate': 'OAuth realm=\"http%3A%2F%2Fmyjira%3A8080\", OAuth realm=\"http%3A%2F%2Fmyjira%3A8080\", oauth_problem=\"signature_invalid\", oauth_signature=\"Q%2BnUQegJNK71dgwvuSM0WhRg1bqniI59u9Vq21TfrIX8dEY4r7kNnoBMXTldLdeBkafP3qSJwwH9Y80z7qFw70e7WLVwa6%2F73XUoMdzFcsioVb22WmpRNyHClD9zNUotPz4WgKoiO1f02KcTrUnvXBa%2BzjN5I2Xqch8W5R%2ByVjnLpA4Wpgj7Vkt6eH%2BzN4HaDD01cG8flheFjkUieTaIOtCMcLPbxisQnDlDfW99E6r4233sxK2%2FjuCn8f6%2BVG3G6544MJ7mRxHOH7d1jwldv5efp8wJJ%2BZfZLtaVUUSSt0jwf%2FVHkLTrA7sBeFKvsuu6G8YrverU6wTkH7fgkbtqA%3D%3D\", oauth_signature_base_string=\"GET%26http%253A%252F%252Fmyjira%253A8080%252Frest%252Fapi%252F2%252FserverInfo%26oauth_consumer_key%253D9a9c6e0c-43e2-479f-92c6-26da5660d45f%2526oauth_nonce%253D7486406249565642931520594130%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1520594130%2526oauth_token%253DwCv3WUSfiMQC6owZxyhGoJbXs7vyvdDR%2526oauth_version%253D1.0\", oauth_signature_method=\"RSA-SHA1\"'}\n\tresponse text = oauth_problem=signature_invalid&oauth_signature=Q%2BnUQegJNK71dgwvuSM0WhRg1bqniI59u9Vq21TfrIX8dEY4r7kNnoBMXTldLdeBkafP3qSJwwH9Y80z7qFw70e7WLVwa6%2F73XUoMdzFcsioVb22WmpRNyHClD9zNUotPz4WgKoiO1f02KcTrUnvXBa%2BzjN5I2Xqch8W5R%2ByVjnLpA4Wpgj7Vkt6eH%2BzN4HaDD01cG8flheFjkUieTaIOtCMcLPbxisQnDlDfW99E6r4233sxK2%2FjuCn8f6%2BVG3G6544MJ7mRxHOH7d1jwldv5efp8wJJ%2BZfZLtaVUUSSt0jwf%2FVHkLTrA7sBeFKvsuu6G8YrverU6wTkH7fgkbtqA%3D%3D&oauth_signature_base_string=GET%26http%253A%252F%252Fmyjira%253A8080%252Frest%252Fapi%252F2%252FserverInfo%26oauth_consumer_key%253D9a9c6e0c-43e2-479f-92c6-26da5660d45f%2526oauth_nonce%253D7486406249565642931520594130%2526oauth_signature_method%253DRSA-SHA1%2526oauth_timestamp%253D1520594130%2526oauth_token%253DwCv3WUSfiMQC6owZxyhGoJbXs7vyvdDR%2526oauth_version%253D1.0&oauth_signature_method=RSA-SHA1\n

Can you please look into and suggest.

@dishank can you please format your error with tripple backticks (```) it’s really hard to read what’s going on

Looks like your problem is this

I would suggest reading the JIRA pack readme on how to configure the pack and create an OAuth token.

@nmaludy this is done!

It looks like you’re using JIRA in your own datacenter. Do you see any logs on the JIRA side that indicate an error?

I googled the error you’re seeing and found several links on the Atlassian page:

https://confluence.atlassian.com/kb/oauth-error-oauth_problem-signature_invalid-720406720.html
https://confluence.atlassian.com/applinks/oauth-troubleshooting-guide-790632058.html

Might try some of those solutions

Configuring the OAUTH setup for Jira can be pretty painful. Lots of steps, and it’s easy to get some wrong.

I would probably start by going step by step through the key generation and OAUTH steps, re-doing each piece, paying close attention to the details along the way.

1 Like

Hi All,
I was getting an error while i was trying to create an issue in my local jira instance and my jira version is 7.2 . Please have a look into my error pasted below.

{
  "result": "None",
  "exit_code": 1,
  "stderr": "Traceback (most recent call last):
  File \"/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py\", line 320, in <module>
    obj.run()
  File \"/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py\", line 178, in run
    action = self._get_action_instance()
  File \"/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py\", line 247, in _get_action_instance
    action_service=action_service)
  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/runners/utils.py\", line 143, in get_action_class_instance
    action_instance = action_cls(**kwargs)
  File \"/opt/stackstorm/packs/jira/actions/lib/base.py\", line 17, in __init__
    self._client = self._get_client()
  File \"/opt/stackstorm/packs/jira/actions/lib/base.py\", line 41, in _get_client
    client = JIRA(options=options, basic_auth=basic_creds)
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 472, in __init__
    si = self.server_info()
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 2133, in server_info
    j = self._get_json('serverInfo')
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/client.py\", line 2549, in _get_json
    r = self._session.get(url, params=params)
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 151, in get
    return self.__verb('GET', url, **kwargs)
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 147, in __verb
    raise_on_error(response, verb=verb, **kwargs)
  File \"/opt/stackstorm/virtualenvs/jira/lib/python2.7/site-packages/jira/resilientsession.py\", line 57, in raise_on_error
    r.status_code, error, r.url, request=request, response=r, **kwargs)
jira.exceptions.JIRAError: JiraError HTTP 404 url: http://192.168.1.162:8080/projects/rest/api/2/serverInfo
\ttext:

Can anyone help me why I was getting this.

Thanks in Advance