error gunicorn activation and removing 8000 port

i just try to set gunicorn setting and wanted to removing 8000, i fallow all command but still gunicorn activation failed plz gave me solution for this error or where im gong wrong…


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @shubhamshirbhate310,

I’m not quite sure I understood, did you want to start gunicorn on another port rather than 8000 and it failed or it failed because you wanted to start it on port 8000.

If you wanted to start gunicorn on another port, I’ll recommend reading the Documentation Here. There are a couple of ways to do it explained in the docs. Here is one example

gunicorn --paste development.ini -b :8080 --chdir /path/to/project

You’ll, of course, need to change the /path/to/project with the actual path.

If you wanted to start it on port 8000 and it failed then, most probably something was already listening to that port. You can check that by running the following command on your droplet

netstat -tulpen | grep 8000

It will show you what’s listening on the said port.

Regards, KDSys