IOError, Permission Denied using Amazon s3 w/ django-storage?

165 views
Skip to first unread message

easypie

unread,
Dec 9, 2012, 2:18:25 AM12/9/12
to django...@googlegroups.com
I encountered an error where whenever I go to upload a file, it tells me that a folder doesn't have enough permission. What kind of permission do we give these folders? I use Apache server. Do I change the whole project folder to group www-data? Then set chmod to 775 to the project folder and all files in the project recursively? Here is my traceback error log: http://dpaste.org/5KUMf/

easypie

unread,
Dec 9, 2012, 3:40:22 AM12/9/12
to django...@googlegroups.com
I got it working by granting 775 permission for that fold and its sub-folder where the files had to be created and lacked enough privilege to do so. Now everything works! ...I just need to figure out why the uploads won't accept .jpg files =\

On Saturday, December 8, 2012 11:18:25 PM UTC-8, easypie wrote:
I encountered an error where whenever I go to upload a file, it tells me that a folder doesn't have enough permission. What kind of permission do we give these folders? I use Apache server. Do I change the whole project folder to group www-data? Then set chmod to 775 to the project folder and all files in the project recursively? Here is my traceback error log: http://dpaste.org/5KUMf/!

Chris Cogdon

unread,
Dec 9, 2012, 6:50:45 PM12/9/12
to django...@googlegroups.com
If you're using ImageField, that by default verifies that what you've uploaded is in fact an image. It uses PIL (python image library, aka python-imaging) to do that. make sure you have PIL installed and it is working.

easypie

unread,
Dec 10, 2012, 12:19:47 AM12/10/12
to django...@googlegroups.com
Yeah. It's uploaded and by using django-filebrowser I can upload image, create folder and move them around but I am not able to use those image in posts. I am using Mezzanine btw. I put up a post over at their user group: https://groups.google.com/forum/?fromgroups=#!topic/mezzanine-users/SMHtMX1YgBY

Mario Gudelj

unread,
Dec 10, 2012, 4:35:02 PM12/10/12
to django...@googlegroups.com

I suspect you're on a Mac and your jpglib is not compiled properly. If you are on Mac make sure you look into that.

Cheers,

mario
www.zenbookings.com

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Drz7gK3Zxz8J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

easypie

unread,
Dec 10, 2012, 10:29:55 PM12/10/12
to django...@googlegroups.com
This is on Ubuntu. I am using Mezzanine framework built on top of Django. 'pip install mezzanine' helps grab all the dependencies like Pillow (PIL). I'm not sure if this is what's causing the problem but thank you. I'll take a look at this.
Reply all
Reply to author
Forward
0 new messages