Getting TemplateSyntaxError: Couldn't get the thumbnail if THUMBNAIL_DEFAULT_STORAGE = 'cumulus.storage.CloudFilesStorage' #156

Closed
angvp opened this Issue Jun 1, 2012 · 5 comments

2 participants

@angvp

Well,

I've migrated from the S3 to Rackspace CloudFiles .. i've migrated even the files on the bucket / container from S3 to CF.. but the problem now is that I cannot load the old thumbnails and I cannot generate new thumbnails.

And this is a real problem because I use the thumbnail tag a lot on my templates.

When I don't set the THUMBNAIL_DEBUG variable to True I just see noo image and the src of the image is just empty. When I put the THUMBNAIL_DEBUG = True in order to figure out what's happening, I see this message:

TemplateSyntaxError: Couldn't get the thumbnail ./images/lc_bae20120530175504707030.gif: The source file does not appear to be an image

The file exists on the bucket and it's in fact an image.

Maybe I didn't configured something well but with Amazon this worked out of the box.

Any ideas?

@SmileyChris
Owner

I've seen this before as a PIL misconfiguration: have you verified that PIL (on the server) can load the image?

@angvp

Digging around .. I found this exception :

unsupported operand type(s) for +: 'int' and 'NoneType'

Which is sent from the source generator. I don't know what can be wrong, i've just changed one kind of CDN (Amazon) for Another new (Rackspace Cloudfiles), so I don't know really what's happening here. The PIL on the server loads the images fine if I change the settings back to Amazon S3.

Any ideas?

@SmileyChris
Owner

Really need a full traceback to make any sense of that

@angvp

If you want, give me a mail address, in order to add you to the admin site and you can see the full traceback, and send you another e-mail with the settings.py and all the configs / logs needed.

@angvp

Ok I've found this django-cumulus/django-cumulus#44 .. seems that it was a cumulus error. Thanks for the time.

@angvp angvp closed this Jun 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment