我对服务器超时感到困惑,任何帮助将不胜感激。
我正在Google App Engine标准环境中使用带有Python 3.7的Flask应用程序,并与Postgres数据库连接。
应用程序在本地运行良好,gcloud应用程序部署正常完成。
在GAE上访问该应用程序可得到nginx 504。
显示日志文件(这是访问该应用程序后的许多报告之一):
{
insertId: "s=069897cdde6240dbb3e579eadb713d5c;i=17b2b5e;b=227b847458ad4fd28b0503a9371c67ec;m=8aba408962b;t=57cad3f1ce9ec;x=869595d416479b14-0@a2"
logName: "projects/provost-access-148820/logs/cloudsql.googleapis.com%2Fpostgres.log"
receiveTimestamp: "2018-12-10T16:13:39.959430992Z"
resource: {
labels: {
database_id: "provost-access-148820:cuny-courses"
project_id: "provost-access-148820"
region: "us-east1"
}
type: "cloudsql_database"
}
severity: "INFO"
textPayload: "LOG: unexpected EOF on client connection with an open transaction"
timestamp: "2018-12-10T16:13:34.079557Z"
}