应用程序意外失败无法连接到amqp

时间:2018-01-14 12:24:40

标签: wolkenkit

我正在使用wolkenkit 1.2.0, 我这样开始wolkenkit:

wolkenkit start --shared-key 123456 --verbose

我正在发送命令,我可以在日志中看到它们,但我没有收到事件。它是否与我在日志中始终看到的以下错误有关:

Application failed unexpectedly. (fatal)
wolkenkit-flows::wolkenkit-flows@1.2.0::tailwind@1.0.1 
(/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:07:50.298@2018-01-14 5#0
{
  err: {
  name: 'Error',
  message: 'Could not connect to amqp://wolkenkit:123456@messagebus:5672.',
  stack: 'Error: Could not connect to amqp://wolkenkit:123456@messagebus:5672.
  at /wolkenkit/node_modules/hase/dist/hase.js:22:23
  at /wolkenkit/node_modules/amqplib/callback_api.js:16:10
  at Socket.<anonymous> (/wolkenkit/node_modules/amqplib/lib/connect.js:167:18)
  at Object.onceWrapper (events.js:315:30)
  at emitOne (events.js:116:13)
  at Socket.emit (events.js:211:7)
  at emitErrorNT (internal/streams/destroy.js:64:8)
  at _combinedTickCallback (internal/process/next_tick.js:138:11)
  at process._tickCallback (internal/process/next_tick.js:180:9)'
 }
}

我尝试过在没有帮助的情况下升级到1.2.1。 我删除了所有容器并从顶部开始。仍然没有工作。

编辑: 完整记录基本聊天应用程序:

Failed to initialize application. (fatal)
wolkenkit-core::wolkenkit-core@1.2.0::tailwind@1.0.1 (/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:25:49.249@2018-01-14 5#0
{
  err: {
    name: 'Error',
    message: 'connect ECONNREFUSED 172.18.0.4:5432',
    stack: 'Error: connect ECONNREFUSED 172.18.0.4:5432
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)'
  }
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Application failed unexpectedly. (fatal)
wolkenkit-core::wolkenkit-core@1.2.0::tailwind@1.0.1 (/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:25:52.226@2018-01-14 5#0
{
  err: {
    name: 'Error',
    message: 'Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.',
    stack: 'Error: Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.
    at /wolkenkit/node_modules/hase/dist/hase.js:22:23
    at /wolkenkit/node_modules/amqplib/callback_api.js:16:10
    at Socket.<anonymous> (/wolkenkit/node_modules/amqplib/lib/connect.js:167:18)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)'
  }
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Application failed unexpectedly. (fatal)
wolkenkit-core::wolkenkit-core@1.2.0::tailwind@1.0.1 (/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:25:54.858@2018-01-14 5#0
{
  err: {
    name: 'Error',
    message: 'Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.',
    stack: 'Error: Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.
    at /wolkenkit/node_modules/hase/dist/hase.js:22:23
    at /wolkenkit/node_modules/amqplib/callback_api.js:16:10
    at Socket.<anonymous> (/wolkenkit/node_modules/amqplib/lib/connect.js:167:18)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)'
  }
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Application failed unexpectedly. (fatal)
wolkenkit-core::wolkenkit-core@1.2.0::tailwind@1.0.1 (/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:25:58.737@2018-01-14 5#0
{
  err: {
    name: 'Error',
    message: 'Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.',
    stack: 'Error: Could not connect to amqp://wolkenkit:09a7458453d58c93d22a2b823bf2fccee3b704db@messagebus:5672.
    at /wolkenkit/node_modules/hase/dist/hase.js:22:23
    at /wolkenkit/node_modules/amqplib/callback_api.js:16:10
    at Socket.<anonymous> (/wolkenkit/node_modules/amqplib/lib/connect.js:167:18)
    at Object.onceWrapper (events.js:315:30)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)'
  }
}
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Running application. (info)
wolkenkit-core::wolkenkit-core@1.2.0::tailwind@1.0.1 (/wolkenkit/node_modules/tailwind/lib/TailwindApp.js)
12:26:02.761@2018-01-14 5#0

1 个答案:

答案 0 :(得分:0)

正如评论中所讨论的,我认为这个问题特定于您的应用程序,而不是wolkenkit。

在我看来,我认为您需要弄清楚哪个命令或事件会导致您的应用程序无法正常运行。不幸的是,如果不仔细查看应用程序的代码,我就无法帮助解决这个问题。

我很抱歉,我没有更好的答案。

但是,我希望这至少有助于指出你正确的方向。