View Issue Details

IDProjectCategoryView StatusLast Update
0001160Kali LinuxGeneral Bugpublic2014-05-06 11:20
Reporterparieo Assigned Tomuts  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
OSKaliOS Version1.06 
Product Version1.0.6 
Summary0001160: Failed to connect to the database msf
Description

down vote favorite

root@kali:~# msfconsole

[-] 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?


3Kom SuperHack II Logon __
User Name: [ security ]
Password: [ ]
[ OK ]
__
http://metasploit.pro
__

Frustrated with proxy pivoting? Upgrade to layer-2 VPN pivoting with
Metasploit Pro -- type 'go_pro' to launch it now.

   =[ metasploit v4.9.2-2014041601 [core:4.9 api:1.0] ]
  • -- --=[ 1294 exploits - 708 auxiliary - 206 post ]
  • -- --=[ 335 payloads - 35 encoders - 8 nops ]

msf >

by the way i did start postgresql and meta services

Activities

dookie

dookie

2014-04-23 18:13

reporter   ~0001725

We require a lot more information than you have provided here. Please refer to the following and update your bug report.

http://docs.kali.org/troubleshooting/submitting-issues-kali-bug-tracker

LeeRock

LeeRock

2014-04-28 01:17

reporter   ~0001733

I had the some thing happen last Thursday when the new Metasploit package was pushed out.
This should fix your issue:
www.offensive-security.com/metasploit-unleashed/Using_the_Database

In Kali, you will need to start up the postgresql server before using the database.
root@kali:~# service postgresql start
[ ok ] Starting PostgreSQL 9.1 database server: main.

Once you start the metasploit service it will create a msf3 datauser user and database called msf3.

root@kali:~# service metasploit start
Configuring Metasploit...
Creating metasploit database user 'msf3'...
Creating metasploit database 'msf3'...
insserv: warning: current start runlevel(s) (empty) of script metasploit' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of scriptmetasploit' overrides LSB defaults (0 1 6).
[ ok ] Starting Metasploit rpc server: prosvc.
[ ok ] Starting Metasploit web server: thin.
[ ok ] Starting Metasploit worker: worker.

muts

muts

2014-05-06 11:20

reporter   ~0001739

Closed.

Issue History

Date Modified Username Field Change
2014-04-22 01:15 parieo New Issue
2014-04-23 18:13 dookie Note Added: 0001725
2014-04-23 18:13 dookie Status new => feedback
2014-04-28 01:17 LeeRock Note Added: 0001733
2014-05-06 11:20 muts Note Added: 0001739
2014-05-06 11:20 muts Status feedback => closed
2014-05-06 11:20 muts Assigned To => muts
2014-05-06 11:20 muts Resolution open => no change required