Sunday, February 17, 2019

Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use

This issue happens when I installed Postgres in my vagrant (vm) and then I after a while I removed it. But the service is still running in the system causing the default 5432 port is not available to be used.





first I run this command

sudo apt-get --purge remove postgresql


but still, it didn't totally remove. so I have to run this command to list all running postgres

dpkg -l | grep postgres



then, I run again this command

sudo apt-get --purge remove postgresql postgresql-doc postgresql-common






Eureka!

Thanks for this reference
https://askubuntu.com/questions/32730/how-to-remove-postgres-from-my-installation

free online comma separating tool

https://delim.co/#