芹菜在点云部署上失败,出现IO错误



Celery在我的一个点云部署中失败,我不知道如何修复。该部署几乎与现有的点云部署相同(通过进行文件差异验证),后者似乎工作正常

我在dj芹菜日志中得到的错误:

dotcloud@hack-default-www-0:/var/log/supervisor$more djceley_error.log/home/dotcloud/env/lib/python2.6/site packages/django/conf/_init__.py:75:Depre位置警告:ADMIN_MEDIA_PREFIX设置已删除;使用STATIC_URL instead。"请改用STATIC_URL。",DeprecationWarning)/home/dotcloud/env/lib/python2.6/site packages/djcele/loaders.py:108:UserWarning:使用设置。DEBUG导致内存泄漏,切勿在prod中使用此设置施工环境!warnings.warn("使用settings.DEBUG会导致内存泄漏,永远不会"〔2012-06-04 03:27:32139:警告/主进程〕---------------celery@hack-default-www-0 v2.5.3----***--------***--[配置]--*-****---。经纪人:amqp://root@hack-OQVADQ2K.dotcloud.com:29210//-**--------。loader:djcelery.loaders.DjangLoader-**--------。日志文件:[stderr]@INFO-**--------。并发:2-**--------。事件:打开-***---***。节拍:关闭--*******-------*****-----[队列]--------------。芹菜:交换:芹菜(直接)绑定:芹菜[任务].实验.任务.推送消息到iPhone.实验.任务.发送测试消息〔2012-06-04 03:27:32172:INFO/PoolWorker-1〕子进程调用self.run()〔2012-06-04 03:27:32185:INFO/PoolWorker-2〕子进程调用self.run()〔2012-06-04 03:27:32188:警告/主进程〕celery@hack-default-www-0有started。〔2012-06-04 03:27:35315:错误/MainProcess〕使用者:连接错误:套接字关闭2秒钟后重试。。。〔2012-06-04 03:27:40374:错误/MainProcess〕使用者:连接错误:套接字关闭4秒钟后重试。。。〔2012-06-04 03:27:47479:错误/MainProcess〕使用者:连接错误:套接字关闭6秒钟后重试。。。〔2012-06-04 03:27:56509:错误/MainProcess〕消费者:连接错误:套接字

有趣的是,芹菜摄像头的错误日志显示了一些不同的东西。我不确定这是不是在转移注意力。。

/home/dotcloud/env/lib/python2.6/site packages/django/conf/__init__.py:75:Depre位置警告:ADMIN_MEDIA_PREFIX设置已删除;使用STATIC_URL instead。"请改用STATIC_URL。",DeprecationWarning)〔2012-06-04 03:27:3173:INFO/MainProcess〕->evcam:使用djce拍摄快照lery.snapshot.Camera(每1.0秒)追踪(最近一次通话):文件"hack/manage.py",第14行,在execute_manager(设置)文件"/home/dotcloud/env/lib/python2.6/site-packages/django/core/management/__init__.py",第459行,在execute_manager中utility.execute()文件"/home/dotcloud/env/lib/python2.6/site-packages/django/core/management/__init__.py",第382行,执行中self.fetch_command(子命令).run_from_argv(self.argv)文件"/home/dotcloud/env/lib/python2.6/site-packages/djcelery/management/base。py",第74行,在run_from_argv中return super(CeleryCommand,self).run_from_argv(argv)文件"/home/dotcloud/env/lib/python2.6/site-packages/django/core/management/base.py",第196行,在run_from_argv中self.execute(*args,**options.__dict__)文件"/home/dotcloud/env/lib/python2.6/site-packages/djcelery/management/base。py",第67行,执行中super(CeleryCommand,self).execute(*args,**options)文件"/home/dotcloud/env/lib/python2.6/site-packages/django/core/management/base.py",第232行,执行中output=self.handle(*参数,**选项)文件"/home/dotcloud/env/lib/python2.6/site-packages/djcelery/management/commands/celeycam.py",第26行,手柄中ev.run(*参数,**选项)文件"/home/dotcloud/env/lib/python2.6/site packages/celery/bin/celeryv.py",线路38,运行中detach=分离)文件"/home/dotcloud/env/lib/python2.6/site packages/celery/bin/celeryv.py",第70行,在run_evcam中回程凸轮()文件"/home/dotcloud/env/lib/python2.6/site-packages/celery/events/snapshot.py",第116行,在evcam中recv.capture(限制=无)文件"/home/dotcloud/env/lib/python2.6/site packages/celece/events/__init__.py",第204行,捕获中list(self.itercapture(limit=limit,timeout=timeout,wakeup=wakeup)文件"/home/dotcloud/env/lib/python2.6/site packages/celece/events/__init__.py",第193行,在itercapture中以self.consumer(唤醒=唤醒)作为消费者:文件"/usr/lib/python2.6/contextlib.py",第16行,在__enter中__return self.gen.next()文件"/home/dotcloud/env/lib/python2.6/site packages/celece/events/__init__.py",第185行,在consumer中queues=[self.queue],no_ack=True)文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/messaging.py",第行279,在__init__self.revenue(self.channel)文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/messaging.py",第行286,复活channel=channel.default_channel文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/connection.py",line 581,在default_channel中自连接文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/connection.py",line 574,连接自我_连接=自身_建立连接()文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/connection.py",line 533,在_estabilish_connection中conn=self.transport.sestablish_connection()文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/transport/amqplib.py",第279行,在建立连接中connect_timeout=conninfo.connect_timeout)文件"/home/dotcloud/env/lib/python2.6/site packages/kombu/transport/amqplib.py",第89行,在__init__super(连接,self)__init__(*args,**kwargs)文件"/home/dotcloud/env/lib/python2.6/site-packages/amqplib/client_0_8/connection.py",第144行,在__init中__(10,30),#tune文件"/home/dotcloud/env/lib/python2.6/site-packages/amqplib/client_0_8/abstract_channel.py",第95行,正在等待self.channel_id,allowed_methods)文件"/home/dotcloud/env/lib/python2.6/site-packages/amqplib/client_0_8/connection.py",第202行,在_wait_method中self.method_reader.read_method()文件"/home/dotcloud/env/lib/python2.6/site-packages/amqplib/client_0_8/meethod_framework.py",第221行,在read_method中升高mIOError:套接字已关闭

我的监督文件:

[程序:djcelene]directory=/home/dotcloud/current/command=/home/dotcloud/env/bin/python hack/manage.py celeryd-E-l info-c 2stderr_logfile=/var/log/supervisor/%(程序名)s_error.logstdout_logfile=/var/log/supervisor/%(program_name)s.log[程序:celerycam]directory=/home/dotcloud/current/command=/home/dotcloud/env/bin/python hack/manage.py celerycamstderr_logfile=/var/log/supervisor/%(程序名)s_error.logstdout_logfile=/var/log/supervisor/%(program_name)s.log

如前所述,我在另一个运行良好的点云帐户下部署了几乎相同的代码。

rabbitmqbroker的状态:

$/dotcloud信息黑客.broker别名:-hackxxxx.dotcloud.com配置:密码:xxxxrabbitmq_management:true用户:root创建日期:1338702527.075196数据中心:Amazon-us-east-1cimage_version:924a079b622a(最新)内存:49M/512M(9%)端口:-名称:ssh网址:ssh://dotcloud@hackxxx.dotcloud.com:29209-名称:amqp网址:amqp://root:xxxx@hackxxxx.dotcloud.com:29210-名称:http网址:http://root:xxx@hack1-xxxxx.dotcloud.com/状态:运行类型:rabbitmq

看起来它与您的broker的连接有问题。你是否确认可以连接到你的经纪人,并且它已经启动并运行?

你用什么做经纪人?

相关内容

  • 没有找到相关文章

最新更新