local development server (dev_appserver.py) not running in http://localhost:8080/

148 views
Skip to first unread message

Supratik Nag

unread,
Oct 29, 2021, 5:57:37 AM10/29/21
to Google App Engine
Hello,

I have followed the instructions mentioned in the below page:

Local configuration:
  • Debian (10) Linux
  • Python 2.7.16
  • Google Cloud SDK 362.0.0
  • cat /etc/hosts 
    • 127.0.0.1 localhost
    • 127.0.0.1       mx-Xfce
I have tried 2 running the app in 2 different ways:
  1. From inside Python2.7 virtualenv: sudo /opt/google-cloud-sdk/bin/dev_appserver.py ./app.yaml
  2. From inside gc sdk bin directory: python dev_appserver.py /home/<user>/appengine-guestbook-python/app.yaml
I get below messages in terminal:
INFO     2021-10-28 21:21:28,722 devappserver2.py:316] Skipping SDK update check.
INFO     2021-10-28 21:21:28,832 <string>:383] Starting API server at: http://localhost:37783
INFO     2021-10-28 21:21:28,900 dispatcher.py:281] Starting module "default" running at: http://localhost:8080
INFO     2021-10-28 21:21:28,900 admin_server.py:150] Starting admin server at: http://localhost:8000
INFO     2021-10-28 21:21:30,910 instance.py:294] Instance PID: 2803

admin server http://localhost:8000 runs fine but default http://localhost:8080 does not:
This page isn’t working

localhost is currently unable to handle this request.

HTTP ERROR 500

Please help to understand me what am I doing wrong here.

Thanks,
Supratik

NoCommandLine

unread,
Oct 29, 2021, 3:35:40 PM10/29/21
to Google App Engine

Your link has a Dependencies section which lists Jinja2 and Webapp2. Did you install those dependencies? 

Note: The Dependencies also mentions "Twitter Bootstrap" but there is a folder for it which means you don't have to download it



  ..... NoCommandLine ......
 https://nocommandline.com

A GUI for Google App Engine

Supratik Nag

unread,
Nov 1, 2021, 6:05:29 AM11/1/21
to Google App Engine
Hi,

I didnt install those packages in first place. Now those are installed. But still same thing. Firefox shows a blank page and chrome the below messages:
This page isn’t working

localhost is currently unable to handle this request.

HTTP ERROR 500

(.venvp2) snag@mx-Xfce ~> pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Package    Version
---------- -------
Jinja2     2.11.3
MarkupSafe 1.1.1
pip        20.3.4
setuptools 44.1.1
webapp2    2.5.2
wheel      0.37.0
(.venvp2) snag@mx-Xfce ~> 

Thaks.

wesley c

unread,
Nov 1, 2021, 2:12:19 PM11/1/21
to google-a...@googlegroups.com
A 500 generally indicates an issue w/the application code. Can you paste your entrypoint code here as well as any other log entries that may be useful so people can help debug? (Less relevant: any reason for not using Python 3?)

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/55a7a7c4-a73d-459c-9496-763317399884n%40googlegroups.com.


--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
    wesley chun :: @wescpy :: Software Architect & Engineer
    Developer Advocate at Google Cloud by day; at night...
    Python training & consulting : http://CyberwebConsulting.com
    "Core Python" books : http://CorePython.com
    Python blog: http://wescpy.blogspot.com

NoCommandLine

unread,
Nov 16, 2021, 3:34:32 PM11/16/21
to Google App Engine
While working on documentation for some features we just launched for our App (we now support Datastore Emulator which automatically builds your index file if one is needed), I remembered that not having a working index can lead to status 500 errors.  I checked the GitHub that you are following and it has an index.yaml file. Do you have this file in your own version? Is it located in the root of your project folder?

 ..... NoCommandLine ......
 https://nocommandline.com

A GUI for Google App Engine
Reply all
Reply to author
Forward
0 new messages