大发龙虎首页    注册   登录
大发龙虎 = way to explore
大发龙虎 是一个大发龙虎关于 分享和探索的地方
现在注册
已注册用户请  登录
大发龙虎推荐 学习书目
Learn Python the Hard Way
Python 学习手册
Python Cookbook
Python 基础教程
Python Sites
PyPI - Python Package Index
http://www.simple-is-better.com/
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
大发龙虎  ›  Python

celery+redis 定时任务,每过一两天就挂掉,错误日志显示项目路径错误?但是已经跑了一两天了啊

  •  
  •   wuwukai007 · 63 天前 · 1164 次点击
    这是一个创建于 63 天前的主题,其中的信息可能已经有所发展或是发生改变。
    190587 [2019-09-10 01:53:06,549: INFO/ForkPoolWorker-2] Task celery_ta.tasks_new.run[fc97244c-6511-4572-9313-db220bc6ff9e] succeeded in 784.9328733524308s: None
    190588 [2019-09-10 02:08:58,151: INFO/MainProcess] beat: Shutting down...
    190589
    190590 -------------- [email protected] v4.2.0 (大发龙虎Win dowlicker)
    190591 ---- **** -----
    190592 --- * *** * -- Linux-4.4.0-130-generic-x86_64-with-Ubuntu-16.04-xenial 2019-09-09 07:31:13
    190593 -- * - **** ---
    190594 - ** ---------- [config]
    190595 - ** ---------- .> app: celery_ta.tasks_new:0x7f5b60bd69e8
    190596 - ** ---------- .> transport: redis://localhost:6379/0
    190597 - ** ---------- .> results: redis://localhost:6379/1
    190598 - *** --- * --- .> concurrency: 1 (prefork)
    190599 -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
    190600 --- ***** -----
    190601 -------------- [queues]
    190602 .> celery exchange=celery(direct) key=celery

    190605 [tasks]
    190606 . celery_ta.tasks_new.run
    190607
    190608 Traceback (most recent call last):
    190609 File "/usr/local/lib/python3.5/dist-packages/celery/app/utils.py", line 359, in find_app
    190610 sym = symbol_by_name(app, imp=imp)
    190611 File "/usr/local/lib/python3.5/dist-packages/celery/bin/base.py", line 504, in symbol_by_name
    190612 return imports.symbol_by_name(name, imp=imp)
    190613 File "/usr/local/lib/python3.5/dist-packages/kombu/utils/imports.py", line 62, in symbol_by_name
    190614 return getattr(module, cls_name) if cls_name else module
    190615 AttributeError: module 'celery_ta' has no attribute 'tasks_new'
    190616
    190617 During handling of the above exception, another exception occurred:
    190618
    190619 Traceback (most recent call last):
    190620 File "/usr/local/lib/python3.5/dist-packages/kombu/connection.py", line 431, in _reraise_as_library_errors
    190621 yield
    190622 File "/usr/local/lib/python3.5/dist-packages/kombu/connection.py", line 510, in _ensured
    190623 return fun(*args, **kwargs)
    190624 File "/usr/local/lib/python3.5/dist-packages/kombu/messaging.py", line 203, in _publish
    190625 mandatory=mandatory, immediate=immediate,
    190626 File "/usr/local/lib/python3.5/dist-packages/kombu/transport/virtual/base.py", line 608, in basic_publish
    190627 return self._put(routing_key, message, **kwargs)
    190628 File "/usr/local/lib/python3.5/dist-packages/kombu/transport/redis.py", line 779, in _put
    190629 client.lpush(self._q_for_pri(queue, pri), dumps(message))
    190630 File "/usr/local/lib/python3.5/dist-packages/redis/client.py", line 1611, in lpush
    190631 return self.execute_command('LPUSH', name, *values)
    190632 File "/usr/local/lib/python3.5/dist-packages/redis/client.py", line 775, in execute_command
    190633 return self.parse_response(connection, command_name, **options)
    190634 File "/usr/local/lib/python3.5/dist-packages/redis/client.py", line 789, in parse_response
    190635 response = connection.read_response()
    190636 File "/usr/local/lib/python3.5/dist-packages/redis/connection.py", line 642, in read_response
    190637 raise response
    190638 redis.exceptions.ReadOnlyError: You can't write against a read only slave.
    190639
    6 回复  |  直到 2019-09-11 15:55:33 +08:00
        1
    Hopetree   63 天前
    为啥大发龙虎我 看最后一行日志是在说读写权限问题?
        2
    BBCCBB   63 天前
    You can't write against a read only slave.

    大发龙虎你 这是写到了 slave 上了?
        3
    wuwukai007   63 天前 via Android
    看了下 redis 日志,莫名其妙有主从了,把 redis 重装了一下,不知道怎么样
        4
    lolizeppelin   63 天前
    写个代码的人,那么抵触读英文?
        5
    julyclyde   62 天前
    @wuwukai007 大发龙虎你 居然不研究原因就无脑重装了一下
        6
    John60676   62 天前
    AttributeError: module 'celery_ta' has no attribute 'tasks_new'
    大发龙虎关于   ·   FAQ   ·   API   ·   大发龙虎大发龙虎我 们 的愿景   ·   广告投放   ·   感谢   ·   实用小大发龙虎工具   ·   4051 人在线   最高记录 5043   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.3 · 24ms · UTC 06:40 · PVG 14:40 · LAX 22:40 · JFK 01:40
    ♥ Do have faith in what you're doing.