上载大文件时出现内部服务器错误(AWS e Django)

时间:2017-07-19 22:05:23

标签: python django apache file-upload elastic-beanstalk

我在AWS中有一个由Elastic Beanstalk管理的Django API,其组成是EC2,RDS,存储是S3。

因此,上传文件工作正常,直到200MB,更多的时候,抛出以下异常:

The Postman app:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
    <head>
        <title>500 Internal Server Error</title>
    </head>
    <body>
        <h1>Internal Server Error</h1>
        <p>The server encountered an internal error or
           misconfiguration and was unable to complete
           your request.
        </p>
        <p>Please contact the server administrator at
           root@localhost to inform them of the time this error 
           occurred, and the actions you performed just before this 
           error.
        </p>
        <p>More information about this error may be available
           in the server error log.
        </p>
    </body>
</html>

Elastic Beanstalk日志:

MemoryError
During handling of the above exception, another exception occurred

有些观察:

  • 每个文件的S3存储桶限制为5T
  • 在我的本地服务器上一切正常

0 个答案:

没有答案
相关问题