欢迎您来到腾讯云!积分商城

腾讯云腾讯云论坛

 找回密码
 立即注册
忘了密码?

扫一扫,访问微社区

快捷导航
搜索
查看: 1176|回复: 2

[已回应] celery 连接redis

[复制链接]

1

主题

0

好友

80

积分

小白[LV1]

Rank: 1

云币
220
威望
80
发表于 2017-9-4 10:37:19 |显示全部楼层
celery(4.0.2)使用crs作为broker, 时常出现如下错误:
[2017-09-01 19:02:51,518: WARNING/MainProcess] consumer: Connection to broker lost. Trying to re-establish the connection...
Traceback (most recent call last):
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 318, in start
    blueprint.start(self)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/celery/bootsteps.py", line 119, in start
    step.start(parent)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/celery/worker/consumer/consumer.py", line 594, in start
    c.loop(*c.loop_args())
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/celery/worker/loops.py", line 88, in asynloop
    next(loop)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/kombu/async/hub.py", line 354, in create_loop
    cb(*cbargs)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 1040, in on_readable
    self.cycle.on_readable(fileno)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 337, in on_readable
    chan.handlers[type]()
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/kombu/transport/redis.py", line 714, in _brpop_read
    **options)
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/redis/connection.py", line 577, in read_response
    response = self._parser.read_response()
  File "/home/ubuntu/uugamingenv/local/lib/python2.7/site-packages/redis/connection.py", line 357, in read_response
    (e.args,))


0

主题

0

好友

970

积分

腾讯云论坛管理组

Rank: 20Rank: 20

云币
2990
威望
970
发表于 2017-9-4 11:03:21 |显示全部楼层
回复

使用道具 举报

1

主题

0

好友

80

积分

小白[LV1]

Rank: 1

云币
220
威望
80
发表于 2017-9-4 11:12:04 |显示全部楼层
没有提示认证失败, 我用的是第一种连接方式。   
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册
您需要登录后才可以发帖 QQ登录

联系我们|腾讯云平台|积分商城|腾讯云官方论坛    

GMT+8, 2018-12-13 20:09 , Processed in 1.167709 second(s), 28 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部