我的应用程序已成功部署,但显示500服务器错误 [英] My Application was deployed successfully but showing 500 server error

查看:174
本文介绍了我的应用程序已成功部署,但显示500服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google App Engine

  2013-11-13 00:45:52运行命令:['C:\ \Python27\\pythonw.exe','-u','C:\\Program Files(x86)\\Google\\google_appengine\\appcfg.py',' - -no_cookies',u'--email=sulemannbd@gmail.com','--passin','update','C:\\\\\\\\\\\''
12:45 AM应用程序:testcboy;版本:1
12:45 AM主持人:appengine.google.com
12:45 AM
开始更新app:testcboy,版本:1
12:45 AM获得最新动态资源限制。
sulemannbd@gmail.com的密码:上午12:46扫描本地磁盘上的文件。
12:46 AM克隆167个应用程序文件。
12:46 AM上传7个文件和blob。
12:46 AM上传了7个文件和blob
12:46 AM编译开始。
12:46 AM编译完成。
12:46 AM开始部署。
12:46 AM检查部署是否成功。
12:46 AM部署成功。
12:46 AM检查是否更新的应用版本正在投放。
12:46 AM完成更新的应用程序:testcboy,版本:1
2013-11-13 00:46:18(进程退出,代码为0)

您可以关闭现在这个窗口。

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


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



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


我可以告诉我,为什么我看到这个错误?
APP几个小时后工作正常。
您可以在 http://testcboy.appspot.com/



错误日志

  XX.XXX.XXX.XX  -  [12 / Nov / 2013:11:32:49 -0800]GET / HTTP / 1.1500 0  - Mozilla / 5.0(Windows NT 6.2; WOW64 )AppleWebKit / 537.36(KHTML,如Gecko)Chrome / 30.0.1599.101 Safari / 537.36testcboy.appspot.comms = 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
此请求导致您的应用程序启动一个新进程,从而导致您的应用程序代码首次加载。因此这个请求可能需要更长的时间,并且比使用应用程序的典型请求使用更多的CPU
W 2013-11-12 11:32:49.816
处理此请求的进程遇到问题,导致它退出。这很可能会导致下一个请求应用程序使用新的进程。 (错误代码204)


解决方案

问题出在应用程序.yaml文件。
我在GAE上的locahost中使用了下面给出的,它工作正常,但在服务器上部署时却不工作。

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

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


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

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

    >

    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.
    

    This log generated, when i deployed app on Google. But it is showing the

    Error: Server Error The server encountered an error and could not complete your request.

    If the problem persists, please report your problem and mention this error message and the query that caused it.

    Can I anyone tell me , why i am seeing this error?? APP was working fine few hours back. You can check the app at http://testcboy.appspot.com/

    Error Log

    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)
    

    解决方案

    The problem was because of app.yaml file. I was using as given belowin my locahost on GAE and it was working fine , but it dont work when deployed on server.

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

    for deploying it on server you need to do it like this.

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

    second implementation dont start with slash(i.e in 2nd line script: -no-slash-here\1.php)

    这篇关于我的应用程序已成功部署,但显示500服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆