Collectstatic freezes
See original GitHub issueSometimes, 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:
- Created 11 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Does anyone else have this problem?
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?