Note that there are some explanatory texts on larger screens.

plurals
  1. POUploading Unity WebPlayer app to Google App Engine getting 500 server error
    text
    copied!<p>I am competing in the Google App Challenge but I am unable to get the app working at the appspot domain website.I am using Python to deploy the app.Need Help</p> <p>The app.yaml file details are given below</p> <pre><code>application: abhicorp111 version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: - url: /WebPlayer\.unity3d static_files: WebPlayer/WebPlayer.unity3d upload: WebPlayer/WebPlayer\.unity3d - url: .* script: main.app libraries: - name: webapp2 version: "2.5.2" The main.py content #!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # from google.appengine.ext.webapp import template import webapp2 import os class MainHandler(webapp2.RequestHandler): def get(self): template_values = { 'greetings': 'greetings', } path = os.path.join('WebPlayer', 'WebPlayer.html') self.response.out.write(template.render(path, template_values)) app = webapp2.WSGIApplication([ ('/', MainHandler) ], debug=True) </code></pre> <p>After updating from command line getting the 500 server error<img src="https://i.stack.imgur.com/mwJZ8.png" alt="enter image description here"> The Folder structure for the app <img src="https://i.stack.imgur.com/f5cY7.png" alt="enter image description here"> The error that i am getting <img src="https://i.stack.imgur.com/QoRtm.png" alt="enter image description here"> The error log i got while uploading it through GAE log Console</p> <pre><code>&gt; 2013-11-20 09:27:34 Running command: "['C:\\Python27\\python.exe', &gt; 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', &gt; '--skip_sdk_update_check=yes', '--port=15080', '--admin_port=8007', &gt; u'E:\\GAEGame\\WebPlayer']" INFO 2013-11-20 09:27:35,315 &gt; devappserver2.py:660] Skipping SDK update check. WARNING 2013-11-20 &gt; 09:27:35,331 api_server.py:327] Could not initialize images API; you &gt; are likely missing the Python "PIL" module. WARNING 2013-11-20 &gt; 09:27:35,588 simple_search_stub.py:1009] Could not read search indexes &gt; from &gt; c:\users\santu\appdata\local\temp\appengine.abhicorp111\search_indexes &gt; INFO 2013-11-20 09:27:35,648 api_server.py:138] Starting API &gt; server at: http://localhost:4755 INFO 2013-11-20 09:27:35,674 &gt; dispatcher.py:168] Starting module "default" running at: &gt; http://localhost:15080 INFO 2013-11-20 09:27:35,700 &gt; admin_server.py:117] Starting admin server at: http://localhost:8007 &gt; ERROR 2013-11-20 03:57:44,651 wsgi.py:262] &gt; &gt; Traceback (most recent call last): &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 239, in Handle &gt; &gt; handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 298, in _LoadHandler &gt; &gt; handler, path, err = LoadObject(self._handler) &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 84, in LoadObject &gt; &gt; obj = __import__(path[0]) &gt; &gt; File "E:\GAEGame\WebPlayer\main.py", line 22 &gt; &gt; def get(self): &gt; &gt; ^ &gt; &gt; IndentationError: expected an indented block &gt; &gt; INFO 2013-11-20 09:27:44,663 module.py:599] default: "GET / &gt; HTTP/1.1" 500 - ERROR 2013-11-20 03:57:44,697 wsgi.py:262] &gt; &gt; Traceback (most recent call last): &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 239, in Handle &gt; &gt; handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 298, in _LoadHandler &gt; &gt; handler, path, err = LoadObject(self._handler) &gt; &gt; File "C:\Program Files &gt; (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line &gt; 84, in LoadObject &gt; &gt; obj = __import__(path[0]) &gt; &gt; File "E:\GAEGame\WebPlayer\main.py", line 22 &gt; &gt; def get(self): &gt; &gt; ^ &gt; &gt; IndentationError: expected an indented block &gt; &gt; INFO 2013-11-20 09:27:44,710 module.py:599] default: "GET &gt; /favicon.ico HTTP/1.1" 500 - </code></pre> <p>After updating and going through the errors and then starting the server i am getting this message This is done from another folder and then i called the appserver start command of python</p> <pre><code>C:\Windows\system32&gt;dev_appserver.py E:\ed23\WebPlayer1 INFO 2013-11-20 13:25:04,336 sdk_update_checker.py:245] Checking for updates to the SDK. WARNING 2013-11-20 13:25:06,148 api_server.py:327] Could not initialize images API; you are likely missing the Python "PIL" module. WARNING 2013-11-20 13:25:06,641 simple_search_stub.py:1009] Could not read sear ch indexes from c:\users\santu\appdata\local\temp\appengine.enginerite11\search_ indexes INFO 2013-11-20 13:25:06,688 api_server.py:138] Starting API server at: http ://localhost:20091 INFO 2013-11-20 13:25:06,713 dispatcher.py:168] Starting module "default" ru nning at: http://localhost:8080 INFO 2013-11-20 13:25:06,742 admin_server.py:117] Starting admin server at: http://localhost:8000 ERROR 2013-11-20 07:58:37,220 webapp2.py:1552] WebPlayer1.html Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1535, in __call__ rv = self.handle_exception(request, response, e) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1529, in __call__ rv = self.router.dispatch(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1102, in __call__ return handler.dispatch() File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 570, in dispatch return method(*args, **kwargs) File "E:\ed23\WebPlayer1\main.py", line 28, in get self.response.out.write(template.render(path, template_values)) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\weba pp\template.py", line 89, in render t = _load_internal_django(template_path, debug) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\weba pp\template.py", line 163, in _load_internal_django template = django.template.loader.get_template(file_name) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_interna l\django\template\loader.py", line 157, in get_template template, origin = find_template(template_name) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_interna l\django\template\loader.py", line 138, in find_template raise TemplateDoesNotExist(name) TemplateDoesNotExist: WebPlayer1.html INFO 2013-11-20 13:28:37,285 module.py:599] default: "GET / HTTP/1.1" 500 24 09 INFO 2013-11-20 13:28:37,497 module.py:599] default: "GET /favicon.ico HTTP/ 1.1" 200 1150 ERROR 2013-11-20 08:03:19,309 webapp2.py:1552] WebPlayer1.html Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1535, in __call__ rv = self.handle_exception(request, response, e) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1529, in __call__ rv = self.router.dispatch(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1278, in default_dispatcher return route.handler_adapter(request, response) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 1102, in __call__ return handler.dispatch() File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 572, in dispatch return self.handle_exception(e, self.app.debug) File "C:\Program Files (x86)\Google\google_appengine\lib\webapp2-2.5.2\webapp2 .py", line 570, in dispatch return method(*args, **kwargs) File "E:\ed23\WebPlayer1\main.py", line 28, in get self.response.out.write(template.render(path, template_values)) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\weba pp\template.py", line 89, in render t = _load_internal_django(template_path, debug) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\weba pp\template.py", line 163, in _load_internal_django template = django.template.loader.get_template(file_name) INFO 2013-11-20 13:33:19,326 module.py:599] default: "GET / HTTP/1.1" 500 24 09 File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_interna l\django\template\loader.py", line 157, in get_template template, origin = find_template(template_name) File "C:\Program Files (x86)\Google\google_appengine\google\appengine\_interna l\django\template\loader.py", line 138, in find_template raise TemplateDoesNotExist(name) TemplateDoesNotExist: WebPlayer1.html INFO 2013-11-20 13:33:19,427 module.py:599] default: "GET /favicon.ico HTTP/ 1.1" 304 - </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload