猿问

Stackstorm 2.7 webhook“ AccessRefused:403”错误

我已经在stackstorm中成功创建了一个Webhook,它在webhook列表中可见。


 [centos@ip- ~]$ sudo st2 webhook list

 +------------+------------------+-------------+

 | url        | type             | description |

 +------------+------------------+-------------+

 | wfcreation | core.st2.webhook |             |

 +------------+------------------+-------------+

 [centos@ip- ~]$

我触发了webhook,以提供有效负载并使用stackstorm api键设置适当的标头。Webhook被触发并返回状态码200。但是,基本的stackstorm工作流程失败,并出现以下错误。


{

  "traceback": "  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/st2actions/container/base.py\", line 119, in _do_run

    (status, result, context) = runner.run(action_params)

  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/retrying.py\", line 49, in wrapped_f

    return Retrying(*dargs, **dkw).call(f, *args, **kw)

  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/retrying.py\", line 206, in call

    return attempt.get(self._wrap_exception)

  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/retrying.py\", line 247, in get

    six.reraise(self.value[0], self.value[1], self.value[2])

  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/retrying.py\", line 200, in call

    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)

  File \"/opt/stackstorm/runners/mistral_v2/mistral_v2/mistral_v2.py\", line 247, in run

    result = self.start_workflow(action_parameters=action_parameters)

  File \"/opt/stackstorm/runners/mistral_v2/mistral_v2/mistral_v2.py\", line 284, in start_workflow

    **options)

}   

官方的stakstorm文档没有任何有关对此错误进行故障排除的参考。



FFIVE
浏览 155回答 2
2回答

元芳怎么了

最终,我能够找出问题出在stackstorm主机上运行的mistral-server服务。问题在于,由于stackstorm安装期间的配置错误,导致mistral-server服务无法连接到Rabbitmq服务。但是误导性错误消息“ AccessRefused:403”没有指出与Rabbitmq连接有关的问题。这就是我在日志中找到的内容。错误日志(/ var / log / mistral /)中的错误消息:2018-06-25 15:30:19.309 10767 ERROR oslo_service.service AccessRefused: (0,0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN. For details see the broker logfile.在挖出Rabbitmq日志(/ var / log / rabbitmq /)时:=ERROR REPORT==== 25-Jun-2018::16:34:23 ===closing AMQP connection <0.5118.0> (127.0.0.1:41248 -> 127.0.0.1:5672):{handshake_error,starting,0,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{amqp_error,access_refused,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"AMQPLAIN login refused: user 'st2' - invalid credentials",&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'connection.start_ok'}}显然,在安装过程中错误地配置了st2用户凭据,这导致了整个问题。
随时随地看视频慕课网APP

相关分类

Python
我要回答