jezdez/django_compressor — Issue #180: always getting error running compressor under Apache+mod_wsgi
Author: heckj
Created: 2011-12-13 18:28:08+00:00
State: open

Hoping someone's seen this -

when running compressor and taking advantage of the lessc setup to render/compress the less --> CSS, I'm always getting an error under apache+mod_wsgi. I've run the exact command that the filter is invoking as the www-data user (which is defined as the wsgi user in the WSGIDaemonProcess directive, and verified that it works and everything has permissions to write the file.

I've hacked on the code in compressor/filters/base.py live on that system, and it seems that ANY command attempting to get invoked is getting a returncode of -6 after the proc.communicate() invocation.

I'm hoping someone's seen this before - or that it rings some bell. It works fine on this machine outside of the apache+mod_wsgi process (i.e. running the process as a dev server) as well. I'm just not clear on what might be blocking the subprocess.Popen() invocations.