我的应用程序已成功部署,但显示500服务器错误

时间:2013-11-12 19:20:14

标签: google-app-engine server-error

Google App Engine

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上部署应用时,会生成此日志。但它正在显示

  

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

     

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

我可以告诉我,为什么我会看到这个错误? APP几个小时后工作正常。 您可以在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)

2 个答案:

答案 0 :(得分:0)

该应用现在正在运作。谷歌应用引擎在最初启动时经常显示错误500,因为它启动速度很慢,并且当它无法满足自己的响应请求的最后期限时就会自杀。

答案 1 :(得分:0)

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

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

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

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

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