Apps won't run on GAE - 'unable to bind to localhost:0'

后端 未结 7 945
谎友^
谎友^ 2020-12-14 20:10

I recently upgraded Google App Engine to 1.7.7. and have not been able to run any apps locally since. This includes apps that worked before the update and apps I\'ve created

7条回答
  •  无人及你
    2020-12-14 20:48

    Ubuntu 14.04 has a lightweight server named "webfs" listening on localhost:8000. Run - sudo netstat -taupen | grep ":8000" - in a terminal to confirm. If it's listening run - sudo killall -q /usr/bin/webfsd - to kill it it. GAE uses ports 8000 and 8080 and won't start if one or both are busy. On reflection, the webfs daemon can also be turned on and off as a service: sudo service webfs start/stop. However, as both methods require root privileges, they are not easy to automate. As I start appengine locally from the command line, simply changing the admin port from 8000 to 8001 on startup proved a more considered approach. My command line looks like: google_appengine/dev_appserver.py --admin_port 8001 projects/helloworld/

提交回复
热议问题