run-llama / sec-insights

A real world full-stack application using LlamaIndex
https://www.secinsights.ai/
MIT License
2.32k stars 631 forks source link

ERROR: [Errno 48] Address already in use #21

Closed 345ishaan closed 1 year ago

345ishaan commented 1 year ago

While running make run to launch the backend server, i am frequently seeing this error. I checked if other background processes and also change the port in .env but neither worked. any suggestions?

siddarthreddygsr commented 1 year ago

can you share the output of sudo netstat -tulpn | grep LISTEN

JeroenJADS commented 1 year ago

I had this as well, but asking netstat which process listened on port 8000 and closing that one worked.

sourabhdesai commented 1 year ago

+1 to what @siddarthreddygsr and @JeroenJADS said. Also, if you previously tried starting the service with docker compose up, you may want to check if the llama-app-fastapi container is still active. If so, you can stop it with docker compose stop llama-app-fastapi

sourabhdesai commented 1 year ago

Closing the issue as there's no follow-up. Please re-open if you continue having an issue related to this!

345ishaan commented 1 year ago

Thanks for the suggestions. I was able to solve it by stopping the docker container via Docker-Desktop app.