Question

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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