← 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
Found this useful? Share it.
Make it count. Join free to earn XP for what you read and solve, keep a streak, and track your progress.
Join free