Results 1 to 3 of 3

Thread: Postgresql problem

  1. #1
    Join Date
    2013-Apr
    Posts
    7

    Question Postgresql problem

    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
    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:
    Code:
    [....] 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.

  2. #2
    Join Date
    2013-Apr
    Posts
    126
    Looks like postgresql is already started or you have another process using the port 5432. please give us the output of this following command:

    Code:
    netstat -tulpn | grep 5432

  3. #3
    Join Date
    2013-Apr
    Posts
    7
    Turned out that this was caused by nexpose. After I uninstalled nexpose, postgresql run correctly! Thank you!

Similar Threads

  1. postgresql-15
    By kopepoc in forum NetHunter General Questions
    Replies: 4
    Last Post: 2023-06-03, 10:57
  2. Need a little help with postgresql
    By James123456 in forum TroubleShooting Archive
    Replies: 4
    Last Post: 2021-03-05, 09:03
  3. Help with postgresql
    By YoungAr in forum Installing NetHunter
    Replies: 0
    Last Post: 2020-11-12, 16:06
  4. Kali v2.0 + msfdb + postgresql + armitage problem
    By brunoaduarte in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2015-12-30, 12:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •