Using the Code Star Wizard, I created a Flask-ELB application. When attempting to run the application (using the big green Run button) I first get an error that flask is not found. I install flask, now I get a permission denied error:
Creating a virtual environment and running "application.py" directly gives me a similar error.
* Serving Flask app "application" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
Traceback (most recent call last):
File "/home/ec2-user/environment/stevej-newrelic/helloworld/application.py", line 37, in <module>
port=int(options.port)
File "/home/ec2-user/.local/lib/python3.6/site-packages/flask/app.py", line 990, in run
run_simple(host, port, self, **options)
File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 1017, in run_simple
inner()
File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 966, in inner
fd=fd,
File "/home/ec2-user/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 790, in make_server
host, port, app, request_handler, passthrough_errors, ssl_context, fd=fd
super().__init__(server_address, handler) # type: ignore
File "/usr/lib64/python3.6/socketserver.py", line 456, in __init__
self.server_bind()
File "/usr/lib64/python3.6/http/server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "/usr/lib64/python3.6/socketserver.py", line 470, in server_bind
self.socket.bind(self.server_address)
PermissionError: [Errno 13] Permission denied