Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied #202

Open
Gregorutti48 opened this issue Apr 13, 2021 · 11 comments
Open

Permission denied #202

Gregorutti48 opened this issue Apr 13, 2021 · 11 comments

Comments

@Gregorutti48
Copy link

** 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 Gregorutti48 changed the title Try to just start the python app with the /vote in the repository and got hte following: Permission denied Apr 13, 2021
@Gregorutti48
Copy link
Author

Gregorutti48 commented Apr 13, 2021

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

@geekosg
Copy link

geekosg commented Jul 28, 2021

Having the same error. Has anyone resolved this?

@Nkopalle
Copy link

Nkopalle commented Dec 2, 2021

Any Update on this error

@mayankjain-sudo
Copy link

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

@BretFisher
Copy link
Collaborator

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.

@karoltheguy
Copy link

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

@mikesir87
Copy link
Member

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 mikesir87 reopened this Jan 6, 2023
@mikesir87
Copy link
Member

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.

@srmanthena83
Copy link

is this issue fixed?

@srmanthena83
Copy link

can you help me with the solution

@Gregorutti48
Copy link
Author

is this issue fixed?

My bad, no fix for this from my side.

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

No branches or pull requests

8 participants