Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've symbolic linked a S3 directory on my EC2 server. But a uploaded file was 0 byte when I uploaded file. It was work well before (I used just web server directory)

I don't have any idea dealing with this problem. Does anybody have a trouble like this problem on S3?

Thanks,

share|improve this question
2  
How exactly did you create this symlink? S3 is not a block store. I'm guessing you're using s3fs - in which case, this will likely never work. –  EEAA Feb 8 '12 at 21:24
    
I fixed this problem. I share to fix this for someone. stackoverflow.com/questions/9269081/… –  Hwan Feb 22 '12 at 1:19

1 Answer 1

up vote 5 down vote accepted

This isn't what you want to hear, but trying to interact with S3 via s3fs is a road fraught with pain and suffering.

Use HTTP to get objects into and out of S3. That's the way Amazon designed S3, and that's what will always be guaranteed to work in a sane, predictable fashion. You're using Django - so just install the Python Boto library and use that to put/get files as needed.

share|improve this answer
    
Should I use it? Because I'd like to use default Django Model. Thanks. –  Hwan Feb 9 '12 at 8:33
1  
My answer is clear - you should use nothing other than http calls with S3. –  EEAA Feb 9 '12 at 12:57
    
Do you have a good example Boto with django? Thanks, –  Hwan Feb 9 '12 at 21:32
    
No, that would be a better question for Stackoverflow. –  EEAA Feb 10 '12 at 1:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.