退出的(nodejs)应用程序的谷歌应用程序引擎日志在哪里



我的谷歌应用程序引擎nodejs应用程序失败

在日志查看器中:

Start program failed: user application failed with exit code -1 (refer to 
stdout/stderr logs for more detail): signal: terminated

此后,它已在下一个HTTP请求中重新启动。

在哪里/如何找到用于事后分析的失败容器的stdout/stderr

日志:

终止信号退出:

{
"textPayload": "[start] 2020/03/04 07:55:39.816933 Quitting on terminated signal",
"insertId": "5e5f5efb000c7d312b1f44c8",
"resource": {
"type": "gae_app",
"labels": {
"module_id": "default",
"zone": "us-east1-2",
"project_id": "dev-keep-md",
"version_id": "20200303t212902"
}
},
"timestamp": "2020-03-04T07:55:39.818481Z",
"labels": {
"clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
},
"logName": "projects/dev-keep-md/logs/%2Fvar%2Flog%2Fgoogle_init.log",
"receiveTimestamp": "2020-03-04T07:55:39.824498567Z"
}

然后

启动程序失败:用户应用程序失败,退出代码为-1(有关更多详细信息,请参阅stdout/stderr日志(:信号:已终止

{
"textPayload": "[start] 2020/03/04 07:55:40.018902 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated",
"insertId": "5e5f5efc00004b70f29f00c9",
"resource": {
"type": "gae_app",
"labels": {
"version_id": "20200303t212902",
"module_id": "default",
"zone": "us-east1-2",
"project_id": "dev-keep-md"
}
},
"timestamp": "2020-03-04T07:55:40.019312Z",
"labels": {
"clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
},
"logName": "projects/dev-keep-md/logs/%2Fvar%2Flog%2Fgoogle_init.log",
"receiveTimestamp": "2020-03-04T07:55:40.158203987Z"
}

然后

容器名为出口(1(。

{
"textPayload": "Container called exit(1).",
"insertId": "5e5f5efc000661ed4ffa83fc",
"resource": {
"type": "gae_app",
"labels": {
"project_id": "dev-keep-md",
"version_id": "20200303t212902",
"module_id": "default",
"zone": "us-east1-2"
}
},
"timestamp": "2020-03-04T07:55:40.418038958Z",
"severity": "WARNING",
"labels": {
"clone_id": "00c61b117ccb894ade35709af1833ec830a1bb062e757cd255b73cdc295876d8ceda3377"
},
"logName": "projects/dev-keep-md/logs/varlog%2Fsystem",
"receiveTimestamp": "2020-03-04T07:55:40.420598849Z"
}

如本文档所述,日志应该在Stackdriver上,如果您需要了解当前正在编写的内容的更多信息,可以使用console.log()console.error()编写,这样可以更容易地进行调试。

希望你觉得这个有用。

相关内容

最新更新