Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipeline.exceptions.CompressorError #318

Closed
ErikEvenson opened this issue Feb 20, 2014 · 12 comments
Closed

pipeline.exceptions.CompressorError #318

ErikEvenson opened this issue Feb 20, 2014 · 12 comments

Comments

@ErikEvenson
Copy link

I occasionally (once every 10 runs or so?) get this error when django-pipeline is compressing my JS:

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 173, in handle_noargs
    collected = self.collect()
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 118, in collect
    for original_path, processed_path, processed in processor:
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/storage.py", line 39, in post_process
    packager.pack_javascripts(package)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/packager.py", line 110, in pack_javascripts
    return self.pack(package, self.compressor.compress_js, js_compressed, templates=package.templates, **kwargs)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/packager.py", line 104, in pack
    content = compress(paths, **kwargs)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/compressors/__init__.py", line 65, in compress_js
    js = getattr(compressor(verbose=self.verbose), 'compress_js')(js)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/compressors/yuglify.py", line 13, in compress_js
    return self.compress_common(js, 'js', settings.PIPELINE_YUGLIFY_JS_ARGUMENTS)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/compressors/yuglify.py", line 10, in compress_common
    return self.execute_command(command, content)
  File "/home/vagrant/.virtualenvs/VBEZ/local/lib/python2.7/site-packages/pipeline/compressors/__init__.py", line 237, in execute_command
    raise CompressorError(stderr)
pipeline.exceptions.CompressorError: Killed

The only way I have found to continue is to restart the vagrant box that I am developing on.

@cyberdelia
Copy link
Member

It looks like yuglify command gets killed while pipeline runs it. Maybe it crashed or get killed by something else?

@rickeyvisinski-kanban
Copy link
Contributor

This is fixed by #281. Something in the js caused Yuglify to send an error message to stderr and and stderr output raised a fatal exception.

@cyberdelia, has the latest release been pushed with this fix?

@cyberdelia
Copy link
Member

@rickeyvisinski-kanban Yes it does.

@rickeyvisinski-kanban
Copy link
Contributor

Great, thanks.

@ErikEvenson
Copy link
Author

This seems to be happening more often in 1.3.23.

@rickeyvisinski-kanban
Copy link
Contributor

It is because something is causing the yuglify command to exit with a non-zero exit code. I don't know the yuglify specific error codes, but there is some kind of error compression. Try running yuglify outside of pipeline to uncover what the actual error is.

@DFieldFL
Copy link

I just wanted to update that this is still happening in pipline v1.4.3 and yuglify v0.1.4. Switched to https://github.com/mishoo/UglifyJS2/ for the mean time.

@ErikEvenson
Copy link
Author

For what it is worth, I'm running pipeline 1.3.23 and yuglify 0.1.4 and haven't seen the error in a long time. Guess I should look into upgrading to 1.4 sometime...

@cyberdelia
Copy link
Member

Closing as it seems to be resolved.

@thanos
Copy link

thanos commented May 19, 2015

Still open
python2.7

django-pipeline==1.5.0
Django==1.8.1
yuglify@0.1.4

Crashing is normal but some decent error hanlding would be good.

@cpury
Copy link

cpury commented Jul 17, 2017

Also still seeing this in 1.5.4

@smrrrazu
Copy link

Still having this problem with django-pipeline==1.6.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants