1. David Larlet
  2. django-storages
  3. Issues


Issue #191 new

collectstatic fails with error: [Errno 32] Broken pipe

Kunal Kerkar
created an issue

I have the following in my settings file and collectstatic always fails with [Errno 32] Broken pipe

DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
STATICFILES_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_STORAGE_BUCKET_NAME = '<bucket_name>'
S3_URL = 'http://%s.s3.amazonaws.com/' % AWS_STORAGE_BUCKET_NAME

date_two_months_later = datetime.date.today() + datetime.timedelta(2 * 365 / 12) 
expires = date_two_months_later.strftime("%A, %d %B %Y 20:00:00 GMT")

    'Expires': expires,
    'Cache-Control': 'max-age=86400',

if not DEBUG:

Comments (6)

  1. Chris B

    It would be hacky, but would it be possible to add an offset for the modified date comparison? Right now I assume it checks to see if the updated file is newer than the S3 modified date. What if there was a configurable option that overwrote any files that are "24 hours older or less" or newer than the modified date? This would not be perfect but it would avoid having to sync up timezones.

  2. Log in to comment