ask/celery — Issue #608: Starting celeryd with the -B option throws 'force_execv' AttributeError
Author: JoeJasinski
Created: 2012-02-11 21:26:47+00:00
State: open

When running the master version (2.5.0.rc2) of celery with the -B option to enable beats, I get the error below. I'm using a fresh install of Ubuntu 11.10 in a VirtualBox vm, and the following features. Django Celery is installed, though the stacktrace doesn't seem to indicate mention djcelery anywhere in it, which points me to celery.

RabbitMQ
Python 2.7
celery==2.5.0 rc2
djcelery==2.5.0 rc2

(testcelery)demo@ubuntu:~/testcelery/proj/testcelery$ ./manage.py shell
Python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import celery, djcelery
>>> celery.VERSION
(2, 5, 0, 'rc2')
>>> djcelery.VERSION
(2, 5, 0, 'rc1')

(testcelery)demo@ubuntu:~/testcelery/proj/testcelery$ ./manage.py celeryd -B
/home/demo/testcelery/local/lib/python2.7/site-packages/djcelery/loaders.py:86: UserWarning: Using settings.DEBUG leads to a memory leak, never use this setting in production environments!
warnings.warn("Using settings.DEBUG leads to a memory leak, never "
/home/demo/testcelery/src/celery/celery/decorators.py:33: CDeprecationWarning:
The `celery.decorators` module and the magic keyword arguments
are pending deprecation and will be deprecated in 2.4, then removed
in 3.0.

`task.request` should be used instead of magic keyword arguments,
and `celery.task.task` used instead of `celery.decorators.task`.

See the 2.2 Changelog for more information.

"""))
[2012-02-01 03:51:24,906: WARNING/MainProcess]

-------------- celery@ubuntu v2.5.0rc2
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://my_rabbit_user@127.0.0.1:5672//my_vhost
- ** ---------- . loader: djcelery.loaders.DjangoLoader
- ** ---------- . logfile: [stderr]@WARNING
- ** ---------- . concurrency: 1
- ** ---------- . events: OFF
- *** --- * --- . beat: ON
-- ******* ----
--- ***** ----- [Queues]
-------------- . celery: exchange:celery (direct) binding:celery

[2012-02-01 03:51:24,992: ERROR/MainProcess] Unrecoverable error: AttributeError("'_Process' object has no attribute 'force_execv'",)
Traceback (most recent call last):
File "/home/demo/testcelery/src/celery/celery/worker/__init__.py", line 230, in start
component.start()
File "/usr/lib/python2.7/multiprocessing/process.py", line 130, in start
self._popen = Popen(self)
File "/home/demo/testcelery/src/celery/celery/concurrency/processes/forking.py", line 59, in __init__
self.force_execv = process_obj.force_execv
AttributeError: '_Process' object has no attribute 'force_execv'
(testcelery)demo@ubuntu:~/testcelery/proj/testcelery$