yii2-queue icon indicating copy to clipboard operation
yii2-queue copied to clipboard

yii queue/listen 偶尔出现 AMQPException: Server channel error: -1, message: unexpected response in mypath\vendor\enqueue\amqp-ext\AmqpContext.php:395

Open hkui opened this issue 6 years ago • 4 comments

What steps will reproduce the problem?

What's expected?

What do you get instead?

Additional info

Q A
Yii version 2.0.15
PHP version 7.1.3
Operating system win10

yii-queue

hkui avatar Nov 19 '18 10:11 hkui

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

yii-bot avatar Nov 19 '18 21:11 yii-bot

amqp extension version 1.9.3 rabbitmqserver version 3.6.15 erlang 18.3 还需要啥信息啊

hkui avatar Nov 20 '18 01:11 hkui

通过这些信息无法知道原因啊 可能是 AMQP、 RibbitMQ、 服务器配置 或 job 里的内容 导致的问题 你应该要先锁定是哪个环节出现的问题。 保证可以重现这个故障,这样才能方便修复。

I can't know the reason through this information. May be caused by content in AMQP, RibbitMQ, server configuration, or job You should first lock out which part of the problem is occurring. It is guaranteed that this fault can be reproduced so that it can be easily repaired.

kids-return avatar Nov 20 '18 10:11 kids-return

The reason for this is using AmqpExt as a driver. I reproduce this very issue, when I config my queue with driver yii\queue\amqp_interop\Queue::ENQUEUE_AMQP_EXT ~~and params persisted & lazy equal to true~~, run queue/listen and then ungracefully stop my queue process. The simplest workaround is to use another driver (AmqpLib or Bunny).

yaronius avatar Dec 05 '18 17:12 yaronius