代码之家  ›  专栏  ›  技术社区  ›  Snaver

从应用程序接收间歇服务器错误

  •  0
  • Snaver  · 技术社区  · 6 年前

    有人看到下面的错误消息,从php7在谷歌应用程序引擎标准环境?

    Error: Server Error 
    The server encountered an error and could not complete your request.
    Please try again in 30 seconds.
    

    来自GCP的日志示例:

    xx.xxx.xxx.xx - - [01/Jul/2019:09:16:11 +0100] "GET /api/courses HTTP/1.1" 500 - - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" "example.com" ms=12009 cpu_ms=3303 cpm_usd=0 loading_request=0 instance=00c61b117c915eddeba77b2a4f20a2ae2b81fc81a941138beb270170b47b91aedffd87f2 app_engine_release=1.9.71 trace_id=1f2cdcf1c2ea56bc5ebf7cf12577b057
    

    我在php应用程序中看不到任何日志,因此不认为存在问题,但我也看不到gcp中错误的任何详细信息。

    我需要去哪里看看?感谢任何帮助!

    谢谢

    编辑

    使用 gcloud app logs tail 显示以下错误,不知道如何修复这些错误,或者它们是否是问题的原因!

    2019-07-01 19:21:29 default[20190701t094939]  nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /tmp/google-config/nginx.conf:3
    
    2019-07-01 19:21:27 default[20190701t094939]  [01-Jul-2019 19:21:27] ERROR: unable to read what child say: Bad file descriptor (9)
    
    2019-07-01 19:21:18 default[20190701t094939]  [01-Jul-2019 19:21:18] WARNING: [pool app] child 25 exited on signal 7 (SIGBUS) after 0.718745 seconds from start
    

    编辑2

    我在一个相当繁重的api端点上添加了缓存,它阻止了这些错误的发生,正如您在7月1日晚上部署更改后看到的那样。看看500个日志,它们似乎与流量峰值有关,所以如果我不得不猜测,可能是实例达到了内存/CPU限制?!

    GCP request graph

    0 回复  |  直到 6 年前
    推荐文章