Skip to content

WindowsError: [Error 87] The parameter is incorrect Error on Celery 4  #3551

Closed
@PovilasKud

Description

@PovilasKud

Cannot start Celery 4 worker.

OS: Windows 10 x64
Python: 2.7
Celery version: 4
VirtualEnv, Django 1.10

ERROR:
`[2016-11-05 20:23:25,759: CRITICAL/MainProcess] Unrecoverable error: TypeError('must be integer, not _subprocess_handle',)
Traceback (most recent call last):
File "c:\development\env\zillow2\lib\site-packages\celery\worker\worker.py", line 203, in start
self.blueprint.start(self)
File "c:\development\env\zillow2\lib\site-packages\celery\bootsteps.py", line 119, in start
step.start(parent)
File "c:\development\env\zillow2\lib\site-packages\celery\bootsteps.py", line 370, in start
return self.obj.start()
File "c:\development\env\zillow2\lib\site-packages\celery\concurrency\base.py", line 131, in start
self.on_start()
File "c:\development\env\zillow2\lib\site-packages\celery\concurrency\prefork.py", line 112, in on_start
**self.options)
File "c:\development\env\zillow2\lib\site-packages\billiard\pool.py", line 1008, in init
self._create_worker_process(i)
File "c:\development\env\zillow2\lib\site-packages\billiard\pool.py", line 1117, in _create_worker_process
w.start()
File "c:\development\env\zillow2\lib\site-packages\billiard\process.py", line 122, in start
self._popen = self._Popen(self)
File "c:\development\env\zillow2\lib\site-packages\billiard\context.py", line 383, in _Popen
return Popen(process_obj)
File "c:\development\env\zillow2\lib\site-packages\billiard\popen_spawn_win32.py", line 64, in init
_winapi.CloseHandle(ht)
TypeError: must be integer, not _subprocess_handle

(zillow2) C:\DEVELOPMENT\zillow2\project>Traceback (most recent call last):
File "", line 1, in
File "c:\development\env\zillow2\lib\site-packages\billiard\spawn.py", line 159, in spawn_main
new_handle = steal_handle(parent_pid, pipe_handle)
File "c:\development\env\zillow2\lib\site-packages\billiard\reduction.py", line 121, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
WindowsError: [Error 87] The parameter is incorrect
`
I was able to run Celery worker only when degraded celery version to 3

Activity

malinoff

malinoff commented on Nov 7, 2016

@malinoff
Contributor

Sorry, windows is not officially supported by celery 4, http://docs.celeryproject.org/en/latest/whatsnew-4.0.html#removed-features

vladimir-poleh

vladimir-poleh commented on Nov 14, 2016

@vladimir-poleh

Problem is incorrect handle closing for the Python 2.7. I have fix for it, but there is another issue with nested class instance pickling.

obskyr

obskyr commented on Nov 21, 2016

@obskyr

Nguhhhh. I have the same problem. I'm doing my main development on Windows, too, so this is a bit of a tough situation.

In addition, I can't get Celery 3.x.x working, but I suppose that's just because I'm doing something wrong.

PovilasKud

PovilasKud commented on Nov 21, 2016

@PovilasKud
Author

Well I just downgraded to 3.x.x

NwawelAIroume

NwawelAIroume commented on Nov 24, 2016

@NwawelAIroume

same issue on my side! i think will use the downgraded too!

ghost

ghost commented on Feb 21, 2017

@ghost

When will this be likely fixed? Just ran into the same issue
celery==4.0.2, will probably downgrade as well as no issue previously running
celery==3.1.18

PovilasKud

PovilasKud commented on Feb 22, 2017

@PovilasKud
Author

Microsoft Windows is no longer supported.

The test suite is passing, and Celery seems to be working with Windows, but we make no guarantees as we are unable to diagnose issues on this platform. If you are a company requiring support on this platform, please get in touch.

Probably not going to be fixed.

JonnathanCalderon

JonnathanCalderon commented on May 19, 2017

@JonnathanCalderon

I'm on Windows 7 and I cant downgrade python3.6 because of some lib-errors with python.version<=3.5. So, I gotta to develop a hackish way cause Celery is anti-windows?

PovilasKud

PovilasKud commented on May 19, 2017

@PovilasKud
Author

JonnathanCalderon you have to "downgrade" celery not python. Just create new virtualenv and install proper versions.

rsoumyassdi

rsoumyassdi commented on Dec 13, 2017

@rsoumyassdi

I had celery 4,
celery==3.1.18 worked for me.. If anyone still has the issue,
Just wanted to share.

auvipy

auvipy commented on Dec 17, 2017

@auvipy
Member

follow this to fix #4078

locked as resolved and limited conversation to collaborators on Dec 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @malinoff@obskyr@vladimir-poleh@auvipy@PovilasKud

        Issue actions

          WindowsError: [Error 87] The parameter is incorrect Error on Celery 4 · Issue #3551 · celery/celery