question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collectstatic freezes

See original GitHub issue

Sometimes, running python manage.py collectstatic just freezes after a couple of files (usually after 2, but sometimes after 30/40). I had this problem before and I just ran the command again. It usually worked after 2-3 attempts. Now I cannot get it to complete anymore. It just hangs after Copying 2 files…

Here is part of my configuration (staticfiles/pipeline):

STATIC_ROOT = os.path.join(PROJECT_PATH, 'tmp/static')

STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)

INSTALLED_APPS = (
  ...
  'django.contrib.staticfiles',
  ...
  'pipeline',
)

STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage'

PIPELINE_CSS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yui.YUICompressor'
PIPELINE_YUI_BINARY = 'java -jar ' + os.path.join(PROJECT_PATH, 'external/yuicompressor-2.4.7.jar')

PIPELINE_COMPILERS = ('pipeline.compilers.less.LessCompiler',)

PIPELINE_LESS_BINARY = 'lessc'

Have you guys encountered this before? Any hints what I’m doing wrong?

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
cristiandreicacommented, Dec 4, 2012

Does anyone else have this problem?

0reactions
arvind-dascommented, Jun 14, 2015

Does it work with python3, setting PIPELINE_YUI_BINARY to java yui processor starts to compress but fails and yuicompressor from node just hungs up. Am I doing something wrong?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Django: collectstatic command freezes - Stack Overflow
Using django-storages==1.4 with django 1.9.2. while running python manage.py collectstatic hangs enter image description here.
Read more >
error while running '$ python manage.py collectstatic --noinput'.
The absolute path to the directory where collectstatic will collect static files for deployment. Something like this should work:.
Read more >
Deploying a Django application to Elastic Beanstalk
Run pip freeze , and then save the output to a file named requirements.txt . ... Run manage.py collectstatic to populate the static...
Read more >
28154 (Infinite loop in collectstatic with broken symlinks)
If the static directory contains a broken symlink in place of a file that collectstatic wishes to copy*, then the code gets stuck...
Read more >
Application Error Loading 'Successfully Deployed' Web App ...
11:23:50 AM project: 'collectstatic' exited with exit code 1. ... 11:23:50 AM prject: File "<frozen importlib.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found