django - /etc/init.d/celeryd start fail on AWS -


hi i've been reading lot on forums don't have idea of what's going wrong right now, looks ok, don't work

i set local configuration (/etc/default/celeryd):

# or have 3 nodes: #celeryd_nodes="w1 w2 w3"  # absolute or relative path 'celery' command: #celery_bin="/usr/local/bin/celery" celery_bin="/home/ubuntu/.virtualenvs/wlenv/bin/celery"  # chdir @ start. celeryd_chdir="/var/www/dir_to_manage.py_folder"  # python interpreter environment. env_python="/home/ubuntu/.virtualenvs/wlenv/bin/python" #env_python="/usr/bin/python2.7"  # name of projects settings module. export django_settings_module="sec.settings"  # how call "manage.py celeryd_multi" celeryd_multi="$celeryd_chdir/manage.py celeryd_multi"  # arguments celeryd celeryd_opts="--time-limit 300 --concurrency=8"  # name of celery config module. celery_config_module="celeryconfig"  # %n replaced nodename. celeryd_log_file="/logs/celery/log/%n.log" celeryd_pid_file="/logs/celery/run/%n.pid"  # workers should run unprivileged user. celeryd_user="ubuntu" celeryd_group="ubuntu"  # if enabled pid , log directories created if missing, # , owned userid/group configured. celery_create_dirs=1 

when run /etc/init.d/celeryd start this:

celeryd-multi v3.0.9 (chiastic slide) > starting nodes...     > celery.ip-10-51-179-42: ok     > 300.ip-10-51-179-42: ok 

but workers not running (/etc/init.d/celeryd status):

error: no nodes replied within time constraint. 

i read run (sh -x /etc/init.d/celeryd start) , find error, of time file permissions error don't see nothing wrong

+ default_pid_file=/logs/celery/run/celeryd@%n.pid + default_log_file=/logs/celery/log/celeryd@%n.log + default_log_level=info + default_nodes=celery + default_celeryd=-m celery.bin.celeryd_detach + celery_defaults=/etc/default/celeryd + test -f /etc/default/celeryd + . /etc/default/celeryd + celery_bin=/home/ubuntu/.virtualenvs/wlenv/bin/celery + celeryd_chdir=/var/www/dir_to_manage.py_folder + env_python=/home/ubuntu/.virtualenvs/wlenv/bin/python + export django_settings_module=sec.settings + celeryd_multi=/var/www/dir_to_manage.py_folder/manage.py celeryd_multi + celeryd_opts=--time-limit 300 --concurrency=8 + celery_config_module=celeryconfig + celeryd_log_file=/logs/celery/log/%n.log + celeryd_pid_file=/logs/celery/run/%n.pid + celeryd_user=ubuntu + celeryd_group=ubuntu + celery_create_dirs=1 + [ -f /etc/default/celeryd ] + . /etc/default/celeryd + celery_bin=/home/ubuntu/.virtualenvs/wlenv/bin/celery + celeryd_chdir=/var/www/dir_to_manage.py_folder + env_python=/home/ubuntu/.virtualenvs/wlenv/bin/python + export django_settings_module=sec.settings + celeryd_multi=/var/www/dir_to_manage.py_folder/manage.py celeryd_multi + celeryd_opts=--time-limit 300 --concurrency=8 + celery_config_module=celeryconfig + celeryd_log_file=/logs/celery/log/%n.log + celeryd_pid_file=/logs/celery/run/%n.pid + celeryd_user=ubuntu + celeryd_group=ubuntu + celery_create_dirs=1 + celeryd_pid_file=/logs/celery/run/%n.pid + celeryd_log_file=/logs/celery/log/%n.log + celeryd_log_level=info + celeryd_multi=/var/www/dir_to_manage.py_folder/manage.py celeryd_multi + celeryd=-m celery.bin.celeryd_detach + celeryctl=celeryctl + celeryd_nodes=celery + export celery_loader + [ -n  ] + dirname /logs/celery/log/%n.log + celeryd_log_dir=/logs/celery/log + dirname /logs/celery/run/%n.pid + celeryd_pid_dir=/logs/celery/run + [ ! -d /logs/celery/log ] + [ ! -d /logs/celery/run ] + [ -n ubuntu ] + daemon_opts= --uid=ubuntu + chown ubuntu /logs/celery/log /logs/celery/run + [ -n ubuntu ] + daemon_opts= --uid=ubuntu --gid=ubuntu + chgrp ubuntu /logs/celery/log /logs/celery/run + [ -n /var/www/dir_to_manage.py_folder/contracts ] + daemon_opts= --uid=ubuntu --gid=ubuntu --workdir="/var/www/dir_to_manage.py_folder/contracts" + export path=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/sbin:/sbin + check_dev_null + [ ! -c /dev/null ] + check_paths + dirname /logs/celery/run/%n.pid + ensure_dir /logs/celery/run + [ -d /logs/celery/run ] + mkdir -p /logs/celery/run + chown ubuntu:ubuntu /logs/celery/run + chmod 02755 /logs/celery/run + dirname /logs/celery/log/%n.log + ensure_dir /logs/celery/log + [ -d /logs/celery/log ] + mkdir -p /logs/celery/log + chown ubuntu:ubuntu /logs/celery/log + chmod 02755 /logs/celery/log + start_workers + /var/www/dir_to_manage.py_folder/manage.py celeryd_multi start celery --uid=ubuntu --gid=ubuntu --workdir="/var/www/dir_to_manage.py_folder" --pidfile=/logs/celery/run/%n.pid --logfile=/logs/celery/log/%n.log --loglevel=info --cmd=-m celery.bin.celeryd_detach --time-limit 300 --concurrency=8 celeryd-multi v3.0.9 (chiastic slide) > starting nodes...     > celery.ip-10-51-179-42: ok     > 300.ip-10-51-179-42: ok + exit 0 

any ideas?

which version of celery using? when debugged used "c_fakefork=1 sh -x /etc/init.d/celeryd start" (with c_fakefork=1) right?

if using version 3.x+ dont need use "manage.py celery" (djangp-celery) instead have use "celery" command come celery itself. take this part of doc documentation. thanks!


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -