Andrew Colin Kissa schreef:
On 28 Jun 2011, at 9:45 AM, Johan Hendriks wrote:
https://github.com/ask/celery/blob/master/contrib/generic-init.d/celeryd
The generic init script uses CELERYD_MULTI not CELERYD so set
CELERYD_MULTI="/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd_multi"
to /usr/local/etc/baruwa/baruwa
Ok i was to soon with my yahoo.
It start, but it does not run as baruwa.
This is from my celery.log file when i start with the init script.
beasty run # /usr/local/etc/rc.d/celery start && tail -f
/var/log/celery/celeryd.log
celeryd-multi v2.2.6
> Starting nodes...
> beasty.beasty.double-l.local: OK
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqplib://guest@localhost:5672/
- ** ---------- . loader: celery.loaders.default.Loader
- ** ---------- . logfile: /var/log/celery/celeryd.log@INFO
- ** ---------- . concurrency: 4
- ** ---------- . events: OFF
- *** --- * --- . beat: OFF
-- ******* ----
--- ***** ----- [Queues]
-------------- . celery: exchange:celery (direct) binding:celery
[Tasks]
[2011-06-28 16:25:47,142: INFO/PoolWorker-1] child process calling
self.run()
[2011-06-28 16:25:47,144: INFO/PoolWorker-2] child process calling
self.run()
[2011-06-28 16:25:47,149: INFO/PoolWorker-3] child process calling
self.run()
[2011-06-28 16:25:47,153: INFO/PoolWorker-4] child process calling
self.run()
[2011-06-28 16:25:47,153: WARNING/MainProcess]
[email protected] has started.
[2011-06-28 16:25:50,163: ERROR/MainProcess] Consumer: Connection Error:
Socket closed. Trying again in 2 seconds...
I have this with ps
ps -auxww | grep celery
celery 10357 0.5 0.9 78336 29140 ?? S 4:31PM 0:01.19
/usr/local/bin/python
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd --time-limit=300 -n beasty.beasty.double-l.local --loglevel=INFO
--logfile=/var/log/celery/celeryd.log --pidfile=/var/run/celery/celeryd.pid
celery 10373 0.0 0.8 75520 28532 ?? S 4:31PM 0:00.01
/usr/local/bin/python
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd --time-limit=300 -n beasty.beasty.double-l.local --loglevel=INFO
--logfile=/var/log/celery/celeryd.log --pidfile=/var/run/celery/celeryd.pid
celery 10374 0.0 0.8 75520 28540 ?? S 4:31PM 0:00.01
/usr/local/bin/python
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd --time-limit=300 -n beasty.beasty.double-l.local --loglevel=INFO
--logfile=/var/log/celery/celeryd.log --pidfile=/var/run/celery/celeryd.pid
celery 10375 0.0 0.8 75520 28544 ?? S 4:31PM 0:00.01
/usr/local/bin/python
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd --time-limit=300 -n beasty.beasty.double-l.local --loglevel=INFO
--logfile=/var/log/celery/celeryd.log --pidfile=/var/run/celery/celeryd.pid
celery 10376 0.0 0.8 75520 28544 ?? S 4:31PM 0:00.01
/usr/local/bin/python
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd --time-limit=300 -n beasty.beasty.double-l.local --loglevel=INFO
--logfile=/var/log/celery/celeryd.log --pidfile=/var/run/celery/celeryd.pid
When i run it straigt from the command line it looks like it works
better, the broker is not baruwa@ like it should.
beasty run #
/usr/local/lib/python2.7/site-packages/baruwa-1.1.0-py2.7.egg/baruwa/manage.py
celeryd
[2011-06-28 16:29:50,349: WARNING/MainProcess]
/usr/local/lib/python2.7/site-packages/celery-2.2.6-py2.7.egg/celery/apps/worker.py:124:
UserWarning: Running celeryd with superuser privileges is not encouraged!
"Running celeryd with superuser privileges is not encouraged!")
[2011-06-28 16:29:50,352: WARNING/MainProcess]
-------------- [email protected] v2.2.6
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqplib://[email protected]:5672/baruwa
- ** ---------- . loader: djcelery.loaders.DjangoLoader
- ** ---------- . logfile: [stderr]@WARNING
- ** ---------- . concurrency: 4
- ** ---------- . events: OFF
- *** --- * --- . beat: OFF
-- ******* ----
--- ***** ----- [Queues]
-------------- . beasty.double-l.local: exchange:default (direct)
binding:beasty.double-l.local
. default: exchange:default (direct) binding:default
[2011-06-28 16:29:50,378: WARNING/MainProcess]
[email protected] has started.
Any more hints what could be wrong.!! or to be more precise what i am
doing wrong ! :D
And thanks again..
regards,
Johan Hendriks
If i got this working i will create a baruwa howto on the FreeBSD forum.
_______________________________________________
Baruwa mailing list
[email protected]
http://lists.baruwa.org/mailman/listinfo/baruwa