Results 1 to 2 of 2

Thread: Metasploit framework Faild to connect

  1. #1
    Join Date
    2014-Oct
    Posts
    7

    Metasploit framework Faild to connect

    Hi there,

    I'm have this issue and i'm have tried (a lot) in google to solve it, no luck!

    when i started the metasploit it gives me this:

    Code:
    A database appears to be already configured, skipping initialization
    [-] Failed to connect to the database: could not connect to server: Connection refused
    	Is the server running on host "localhost" (::1) and accepting
    	TCP/IP connections on port 5432?
    could not connect to server: Connection refused
    	Is the server running on host "localhost" (127.0.0.1) and accepting
    	TCP/IP connections on port 5432?
    
    [-] WARNING! The following modules could not be loaded!
    [-] 	/root/.msf5/modules/exploits/windows/smb/ms09_050_smb2_negotiate_func_index.rb: Errno::ENOENT No such file or directory @ rb_sysopen - /root/.msf5/modules/exploits/windows/smb/ms09_050_smb2_negotiate_func_index.rb
    Code:
    msf > db_status[*] postgresql selected, no connection
    i have tried to:
    service postgresql start

    and nothing changes,

    also tried

    /etc/init.d/postgresql start
    [ ok ] Starting postgresql (via systemctl): postgresql.service.

    still no luck

    any one has any idea how to solve this ?

    tks!! =)

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    I'd check /usr/share/metasploit-framework/config/database.yml and ensure it looks correct. I think the default postgresql credentials for the database are msf msf

    If that fails you can try removing & reinstalling.

Similar Threads

  1. Metasploit & Veil Framework
    By Artnet in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2020-01-12, 12:52
  2. Metasploit framework errors "could not connect to server"
    By webbsmurfen in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2019-10-04, 21:45
  3. Can't Update Metasploit Framework
    By Vandercast in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2017-05-26, 17:53
  4. Replies: 3
    Last Post: 2015-03-31, 14:50
  5. Metasploit Framework won't update!
    By murdoc in forum General Archive
    Replies: 1
    Last Post: 2014-11-03, 09:39

Posting Permissions

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