Armitage Error, Could Not Connect to Database

The following error messages appear while starting ARMITAGE:

i cant found a database.yml file i really need it. hre how to fix this:

  1. try setting MSF-DATABASE-CONFIG to file that exists
  2. did you use sudo to start this program? try sudo -E
  3. kali linux 1.x users try this :

service metasploit start service metasploit stop

kali linux 2.x users, try this: msfdb init

(Am using LUBUNTU distribution)

1 Answer

I went through this problem too, this is how I solved:

  1. Check the location of your database.yml file, it could be in 2 places: /opt/metasploit-framework/ /home/youruser/.msf4/

  2. Then set the variable MSF_DATABASE_CONFIG to that location: MSF_DATABASE_CONFIG=/thelocation

  3. Finally, launch the armitage as root, while preserving the user enviroment: sudo -E armitage

it should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest