← All Kali Issues
Metasploit

Database not connected

D Database Critical

🔴 Error Message

Database not connected or cache not built

📖 What This Means

PostgreSQL is not running or not initialized for Metasploit.

🔧 Step-by-Step Fix

  1. Start PostgreSQL: sudo systemctl start postgresql
  2. Initialize: sudo msfdb init
  3. Check: db_status in msfconsole
  4. Reinitialize: sudo msfdb reinit