-
Notifications
You must be signed in to change notification settings - Fork 534
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
ubuntu16.04使用Celery+RabbitMQ+redis运行出错 #48
Comments
经过今天测试,发现问题出在librabbitmq这个库上面,pip卸载掉这个库就可以运行了,但作者书上写务必使用这个C写的库,求解是否有解决方法? |
@escblack 我写书时各个软件的版本正常的,但是不能保证半年后的现在不会做什么不兼容的修改。 我搜了下 https://github.com/celery/celery/search?q=Received+and+deleted+unknown+message&type=Issues&utf8=%E2%9C%93 还挺多的,你可以参考下 |
看代码是消息的格式有问题,没有task这个头信息。 |
这里有解决办法-> celery/celery#3689 方法一: 方法二: 董大写书时用的是celery v3.1.18,现在celery升级到了4.0,应该是老版本的librabbitmq与最新的celery4.0 Message Protocol协议不兼容造成的(点这里) ,celery4.0默认使用Task messages Version 2 ,而librabbitmq使用Task messages Version 1 |
@maxbitcoin 感谢 书的下一版我加上这部分说明 |
我是直接clone的代码,运行也出这个问题
经测试,消息代理使用rabbitmq的时候就会出现这个情况,使用redis的话没有问题,rabbitmq与celery的安装均是按照书上P253, P258, P265安装配置的,其他没有设置
The text was updated successfully, but these errors were encountered: