-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
gunicorn: error: unrecognized arguments: --workers=2 server:app #1867
Comments
what's your command line? How do you launch gunicorn? |
Make sure that you are in the same directory as |
well, I have resolved this problem. it ended up that I had ArgumentParser attempting to get arguments from CLI - I commented that out and it works. @benoitc @teemukataja |
@cyzLoveDream what did you comment out? |
I've been beating my head on a similar problem. Read this thread and recognized a possibility. I was using the argparse module. I removed it from my .py file and gunicorn started working. |
Really helpful!! gunicorn service file, nginx setting everything was perfect but still i was not getting error 'ERR_EMPTY_RESPONSE'. |
thx!! |
if uses gunicorn command in a shell script file , the last row must be empty. |
how to solve this problem
The text was updated successfully, but these errors were encountered: