example-voting-app
example-voting-app copied to clipboard
Permission denied
** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE EXAMPLE VOTING APP **
- If you have a bug working with Docker itself, not related to these labs, please file the bug on the Docker repo *
- If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the Docker Community and you'll get an invite. *
- Or go to the Docker Forums *
Please provide the following information so we can assess the issue you're having
Description
Steps to reproduce the issue, if relevant: 1. 2. 3.
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
(paste your output here)
Output of docker info:
(paste your output here)
Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
I have tried to run the vote app , creating the python app with the github repo: Git Source Repo: https://github.com/dockersamples/example-voting-app.git Source Ref: master Source Context Dir: /vote
but it ends up with : The container vote is crashing frequently. It must wait before it will be restarted again.
in the logs:
---> Running application from Python script (app.py) ...
| * Serving Flask app "app" (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: on
| Traceback (most recent call last):
| File "app.py", line 51, in
Any idea ? Thanks for help
Having the same error. Has anyone resolved this?
Any Update on this error
I am getting below error with latest repo, when deploying on opneshift
---> Running application from Python script (app.py) ... * Serving Flask app 'app' (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: on Traceback (most recent call last): File "app.py", line 51, in
We're sorry for the late response. Linux images have been refreshed, cleaned up, and are now multi-platform. If you're still having issues with the latest images, feel free to reopen this ticket.
Re-opening since same error is still being produced:
---> Running application from Python script (app.py) ...
- Serving Flask app 'app' (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: on
Traceback (most recent call last):
File "app.py", line 51, in
app.run(host='0.0.0.0', port=80, debug=True, threaded=True) File "/opt/app-root/lib/python3.6/site-packages/flask/app.py", line 920, in run run_simple(t.cast(str, host), port, self, **options) File "/opt/app-root/lib/python3.6/site-packages/werkzeug/serving.py", line 991, in run_simple s.bind(server_address) PermissionError: [Errno 13] Permission denied
Hi @k-rol! Sorry to hear that you're running into issues. It looks like it's occurring during the s.bind(server_address) call.
Out of curiosity, are you trying to run the application in your container as a non-root user? Or any other changes you're making to the app? Can you provide a little detail about how you're launching the app?
Looking deeper, @k-rol... are you running the application using the Compose file/containers? Your file paths indicate Python 3.6, while we're using 3.9 in the Dockerfile. The filepaths for the errors also look quite different than what we'd see running in the container environments.
is this issue fixed?
can you help me with the solution
is this issue fixed?
My bad, no fix for this from my side.