【问题标题】:My Application was deployed successfully but showing 500 server error我的应用程序已成功部署,但显示 500 服务器错误
【发布时间】:2013-11-12 19:20:13
【问题描述】:

谷歌应用引擎

2013-11-13 00:45:52 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files (x86)\\Google\\google_appengine\\appcfg.py', '--no_cookies', u'--email=sulemannbd@gmail.com', '--passin', 'update', 'C:\\google\\test']"
12:45 AM Application: testcboy; version: 1
12:45 AM Host: appengine.google.com
12:45 AM 
Starting update of app: testcboy, version: 1
12:45 AM Getting current resource limits.
Password for sulemannbd@gmail.com: 12:46 AM Scanning files on local disk.
12:46 AM Cloning 167 application files.
12:46 AM Uploading 7 files and blobs.
12:46 AM Uploaded 7 files and blobs
12:46 AM Compilation starting.
12:46 AM Compilation completed.
12:46 AM Starting deployment.
12:46 AM Checking if deployment succeeded.
12:46 AM Deployment successful.
12:46 AM Checking if updated app version is serving.
12:46 AM Completed update of app: testcboy, version: 1
2013-11-13 00:46:18 (Process exited with code 0)

You can close this window now.

当我在 Google 上部署应用程序时生成了此日志。但它显示了

错误:服务器错误服务器遇到错误,无法 完成您的请求。

如果问题仍然存在,请报告您的问题并提及 错误消息和导致它的查询。

谁能告诉我,为什么我会看到这个错误? 应用在几个小时前运行良好。 您可以通过http://testcboy.appspot.com/查看应用程序

错误日志

XX.XXX.XXX.XX - - [12/Nov/2013:11:32:49 -0800] "GET / HTTP/1.1" 500 0 - "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36" "testcboy.appspot.com" ms=61 cpu_ms=0 loading_request=1 exit_code=204 app_engine_release=1.8.7 instance=00c61b117ca04018be59d2d5878f8fb3467f71
I 2013-11-12 11:32:49.816
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application.
W 2013-11-12 11:32:49.816
A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)

【问题讨论】:

  • 查看应用引擎控制台中的日志,过滤到“错误”并以这种方式查看原因。此外,如果您有 debug=True,您应该会得到更多的错误,然后是 500。
  • @PaulCollingwood 我在问题中添加了错误日志,请告诉我如何解决这些错误。

标签: google-app-engine server-error


【解决方案1】:

该应用程序正在运行。 Google App Engine 在最初启动时经常显示错误 500,因为它启动速度太慢,并且在未能满足自己的响应请求的最后期限时会自行终止。

【讨论】:

  • 谢谢,我也想知道,我可以将外部数据库用于托管在 Google Aap 引擎上的应用程序...我有一个托管在 GoDaddy.in 上的数据库
  • 我不知道 - 请提出一个新问题。
【解决方案2】:

问题是因为 app.yaml 文件。 我在 GAE 上的 locahost 中使用如下所示,它工作正常,但在服务器上部署时它不起作用。

- url: /(.*)\.php
  script: /\1.php

要在服务器上部署它,您需要这样做。

  • 网址:/(.*).php 脚本:\1.php

第二个实现不以斜杠开头(即在第二行脚本中:-no-slash-here\1.php)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-23
    • 2019-07-27
    • 2018-11-14
    • 1970-01-01
    • 1970-01-01
    • 2013-04-23
    • 2021-12-04
    • 1970-01-01
    相关资源
    最近更新 更多