【问题标题】:Getting task timeout error when accessing the django application which is deployed on AWS访问部署在 AWS 上的 django 应用程序时出现任务超时错误
【发布时间】:2018-12-14 06:21:08
【问题描述】:

我在 AWS 上部署了我的 django 应用程序。到目前为止它工作正常,但是当我尝试点击部署在 ec2 实例上的 url 时,它显示任务超时错误。有什么办法可以克服它。

[1556766665330] [DEBUG] 2018-12-14T05:46:25.330Z 98072431-ff63-11e8-97db- 
 2d7bd216d81f Starting new HTTP connection (1): 1.2.3.4:3000

[1544799995279] 2018-12-14T05:46:55.279Z 98072431-ff63-11e8-97db-2d7bd216d81f 
 Task timed out after 30.03 seconds  

我的 django 应用通过 zappa 部署在 aws 上

【问题讨论】:

  • 你检查安全组了吗?
  • @BanjoObayomi 是的,我在 zappa_settings.json 中将安全组设置为 "vpc_config" : { "SubnetIds": [ "subnet-65xxxxxx","subnet-6cxxxxxx" ], "SecurityGroupIds": [“sg-012e8860cxxxxxxxx”]}

标签: django amazon-web-services zappa


【解决方案1】:

默认的 zappa 配置是 30 秒后超时。见documentation for zappa_settings.json

这是默认设置,因为 API 网关超时为 30 秒 (https://seancoates.com/blogs/api-gateway-timeout-workaround/)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-11-14
    • 2011-10-28
    • 1970-01-01
    • 2021-06-10
    • 2017-11-05
    • 2020-03-31
    • 2021-12-06
    相关资源
    最近更新 更多