Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

raise _SystemExceptionFromAppError(e) error: [Errno 13] Permission denied #27

Closed
tim-hub opened this issue Nov 26, 2016 · 2 comments
Closed

Comments

@tim-hub
Copy link

tim-hub commented Nov 26, 2016

when I follow this http://flask.pocoo.org/docs/0.11/patterns/packages/
to make the app bigger. I got the error:

File "/Users/projects/flask-app/run.py", line 2, in <module>
  app.run(debug=False)
File "/Users/projects/flask-app/lib/flask/app.py", line 843, in run
  run_simple(host, port, self, **options)
File "/Users/projects/flask-app/lib/werkzeug/serving.py", line 694, in run_simple
  inner()
File "/Users/projects/flask-app/lib/werkzeug/serving.py", line 656, in inner
  fd=fd)
File "/Users/projects/flask-app/lib/werkzeug/serving.py", line 550, in make_server
  passthrough_errors, ssl_context, fd=fd)
File "/Users/projects/flask-app/lib/werkzeug/serving.py", line 464, in __init__
  HTTPServer.__init__(self, (host, int(port)), handler)
File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 417, in __init__
  self.server_bind()
File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind
  SocketServer.TCPServer.server_bind(self)
File "/usr/local/Cellar/python/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 431, in server_bind
  self.socket.bind(self.server_address)
File "/Users/tim/bin/google-cloud-sdk/platform/google_appengine/google/appengine/dist27/socket.py", line 222, in meth
  return getattr(self._sock,name)(*args)
File "/Users/tim/bin/google-cloud-sdk/platform/google_appengine/google/appengine/api/remote_socket/_remote_socket.py", line 676, in bind
  raise _SystemExceptionFromAppError(e)
error: [Errno 13] Permission denied
INFO     2016-11-26 10:32:02,654 module.py:788] default: "GET / HTTP/1.1" 500 -


I do not know why? Even the simplest hello world, it will show this error.

But if I do not use gae dev_appserver.py, but only the flask environment in my machine, it worked well.

Hope your help.

Thanks in advance.

@tim-hub
Copy link
Author

tim-hub commented Nov 27, 2016

follow a new way to achieve this:
https://github.com/kelp404/Flask-GAE/

@tim-hub tim-hub closed this as completed Nov 27, 2016
@theacodes
Copy link
Contributor

@tim-hub glad you found a workaround, but it looks like this bug might have been caused by trying to use Flask's app.run which isn't compatible with the way that app engine works. Instead, you just have dev_appserver run the app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants