PDA

View Full Version : Postgresql problem



charsta
2013-05-28, 22:45
Hello all,

I'm new to pentest world and I am trying to figure out/learn how metasploit and armitage work on Kali.
I made a search about the steps to run Armitage and i found this: source (http://blog.strategiccyber.com/2013/02/06/getting-started-with-armitage-and-the-metasploit-framework-2013/)
In order to run armitage i need to run this first:
service postgresql start

But I can't make it work. Every time I run the above command I am getting an error saying that it failed to run:


[....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output:
2013-05-28 23:41:47 BST LOG: could not bind IPv6 socket: Address already in use
2013-05-28 23:41:47 BST HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2013-05-28 23:41:47 BST LOG: could not bind IPv4 socket: Address already in use
2013-05-28 23:41:47 BST HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2013-05-28 23:41:47 BST WARNING: could not create listen socket for "localhost"
2013-05-28 23:41:47 BST FAIL could not create any TCP/IP sockets ... failed!


Can someone explain me if I do something wrong or how can I fix this?

Thank you for your time.

root-boy
2013-05-29, 09:00
Looks like postgresql is already started or you have another process using the port 5432. please give us the output of this following command:


netstat -tulpn | grep 5432

charsta
2013-06-01, 16:14
Turned out that this was caused by nexpose. After I uninstalled nexpose, postgresql run correctly! Thank you!