Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hkui opened this issue Nov 19, 2018 · 4 comments
Labels
status:to be verified Needs to be reproduced and validated.

Comments

@hkui
Copy link

hkui commented Nov 19, 2018

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

@yii-bot
Copy link

yii-bot commented Nov 19, 2018

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.

@hkui
Copy link
Author

hkui commented Nov 20, 2018

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

@kids-return
Copy link
Contributor

通过这些信息无法知道原因啊
可能是 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.

@yaronius
Copy link

yaronius commented Dec 5, 2018

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).

@machour machour added status:to be verified Needs to be reproduced and validated. and removed status:need more info labels Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated.
Projects
None yet
Development

No branches or pull requests

6 participants