example-voting-app icon indicating copy to clipboard operation
example-voting-app copied to clipboard

Permission denied

Open Gregorutti48 opened this issue 4 years ago • 12 comments

** 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.):

Gregorutti48 avatar Apr 13 '21 13:04 Gregorutti48

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   | 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 990, in run   | run_simple(host, port, self, **options)   | File "/opt/app-root/lib/python3.6/site-packages/werkzeug/serving.py", line 1030, in run_simple   | s.bind(server_address)   | PermissionError: [Errno 13] Permission denied

Any idea ? Thanks for help

Gregorutti48 avatar Apr 13 '21 13:04 Gregorutti48

Having the same error. Has anyone resolved this?

geekosg avatar Jul 28 '21 07:07 geekosg

Any Update on this error

Nkopalle avatar Dec 02 '21 12:12 Nkopalle

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 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

mayankjain-sudo avatar Mar 31 '22 07:03 mayankjain-sudo

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.

BretFisher avatar Dec 17 '22 03:12 BretFisher

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

karoltheguy avatar Jan 05 '23 19:01 karoltheguy

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?

mikesir87 avatar Jan 06 '23 21:01 mikesir87

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.

mikesir87 avatar Jan 06 '23 21:01 mikesir87

is this issue fixed?

srmanthena83 avatar Jun 21 '23 10:06 srmanthena83

can you help me with the solution

srmanthena83 avatar Jun 22 '23 05:06 srmanthena83

is this issue fixed?

My bad, no fix for this from my side.

Gregorutti48 avatar Jun 22 '23 07:06 Gregorutti48