我已经成功地在stackstorm中创建了一个webhook,它可以在webhook列表中看到。你知道吗
[centos@ip- ~]$ sudo st2 webhook list
+------------+------------------+-------------+
| url | type | description |
+------------+------------------+-------------+
| wfcreation | core.st2.webhook | |
+------------+------------------+-------------+
[centos@ip- ~]$
我触发了webhook,使用stackstormapi键提供有效负载并设置正确的头。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)
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/mistralclient/api/v2/executions.py\", line 65, in create
return self._create('/executions', data)
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/mistralclient/api/base.py\", line 100, in _create
self._raise_api_exception(resp)
File \"/opt/stackstorm/st2/lib/python2.7/site-packages/mistralclient/api/base.py\", line 160, in _raise_api_exception
error_message=error_data)
",
"error": "AccessRefused: 403"
}
官方的stakstorm文档没有任何关于解决此错误的参考资料。你知道吗
任何帮助将不胜感激,因为我现在在这方面受阻。你知道吗
最后我发现问题出在stackstorm主机上运行的mistral服务器服务。你知道吗
问题是,由于stackstorm期间的错误配置,mistral服务器服务无法连接到rabbitmq服务安装。但是误导性错误消息“accessrejected:403”没有指向rabbitmq连接问题。你知道吗
这是我在日志里找到的。你知道吗
mistral日志(/var/log/mistral/)中的错误消息:
在挖掘rabbitmq日志时(/var/log/rabbitmq/):
很明显,st2用户凭据在安装过程中配置错误,导致了整个问题。你知道吗
希望这对将来有帮助。你知道吗
另一个可能导致这种情况的原因是没有配置NGinx,在这种情况下,系统希望您使用本地端口。下面是一个可能对您有所帮助的示例:https://github.com/StackStorm/st2/tree/master/conf/st2.conf.sample,下面是nginx config。你知道吗
相关问题 更多 >
编程相关推荐