このエラーについてはすでに多くの投稿があることを理解していますが、少なくとも私の観点からは、私の問題は独特のようです。私が間違っていることを証明してください!私はPython2.7を使用しており、jinja2とdbをインポートしていfrom google.appengine.ext import db
ます。これらのパッケージをインポートしない他の単純なアプリは問題なくデプロイされますが、これはをスローしError: Server Error
ます。これは私のコードと関係がありますか、それともこれはGoogle側の問題ですか?これは最近よくあるエラーのようですが、多くの診断もあるようです。ただし、一部のアプリはデプロイされ、他のアプリはデプロイされないため、これは疑わしいものです。ありがとう。
-いくつかの追加情報-
コメントで述べたように、ローカル実行は正常に機能し、デプロイはサーバーエラーをスローします。
**ローカル実行後のログ出力:
*** Running dev_appserver with the following flags: --admin_console_server= --port=8080
Python command: /usr/local/bin/python2.7
WARNING 2013-03-17 03:06:52,527 dev_appserver.py:3578] The datastore file stub is
deprecated, and will stop being the default in a future release.
Append the --use_sqlite flag to use the new SQLite stub.
You can port your existing data using the --port_sqlite_data flag or
purge your previous test data with --clear_datastore.
WARNING 2013-03-17 03:06:52,550 dev_appserver.py:3682] Could not initialize images API;
you are likely missing the Python "PIL" module. ImportError: No module named _imaging
INFO 2013-03-17 03:06:52,572 dev_appserver_multiprocess.py:656] Running application
dev~app1 on port 8080: http://localhost:8080
INFO 2013-03-17 03:06:52,572 dev_appserver_multiprocess.py:658] Admin console is
available at: http://localhost:8080/_ah/admin
**デプロイ後のログ出力:
*** Running appcfg.py with the following flags:
--no_cookies --email=***@gmail.com --passin update
08:02 PM Host: appengine.google.com
08:02 PM Application: app1; version: 1
08:02 PM
Starting update of app: app1, version: 1
08:02 PM Getting current resource limits.
08:02 PM Scanning files on local disk.
08:02 PM Cloning 1 static file.
08:02 PM Cloning 4 application files.
08:02 PM Compilation starting.
08:02 PM Compilation completed.
08:02 PM Starting deployment.
08:02 PM Checking if deployment succeeded.
08:02 PM Deployment successful.
08:02 PM Checking if updated app version is serving.
08:02 PM Completed update of app: app1, version: 1
Password for ***@gmail.com: If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 0 ***
--UPDATE--変数の名前付けエラーが発生しましたが、それが解消されたとき、500サーバーエラーは発生しませんでした。スローされたエラーは、通常、この特定のケース以外のものであるため、もう少し説明的であるといいのですが。学んだ教訓-このような状況に陥った場合、それは確かにコードのエラーです。皆様のご協力に感謝いたします。