View Issue Details

IDProjectCategoryView StatusLast Update
0001715Kali LinuxKali Package Bugpublic2025-07-14 09:38
Reporterahenry Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionwon't fix 
Product Version1.0.7 
Summary0001715: on apt-get upgrade, metasploit no longer starts up automatically
Description

1) although I did correctly replace the services into update-rc.d, they still do not start. I have added the start lines to my .profile.

2) This one is major. msfconsole, db_status gives the response "postgresql selected, no connection."

after many obscure google searches:
solution one:
cat /opt/metasploit/apps/pro/ui/config/database.yml
in msfconfig, db_connect username_field:password_field@localhost/database_field
solution two, only slightly better:
in msfconfig, db_connect -y /opt/metasploit/apps/pro/ui/config/database.yml

But of course when I power down the computer and power it back up, this still isn't connected.

solution three, best patch:
ln -s /opt/metasploit/apps/pro/ui/config/database.yml ~/.msf4/database.yml
(still starting the services in .profile)

This is because the initial installation of Kali puts these files into a non-standard place. After an apt-get update, metasploit no longer expects them in /opt/metasploit/apps/pro/ui/config/, it expects them in /root/.msf4

This is how much research I had to do to find this:

https://forums.kali.org/showthread.php?340-Metasploit-Broke-with-Update
https://community.rapid7.com/thread/4246
https://community.rapid7.com/thread/2024

Thanks for listening.

Activities

rhertzog

rhertzog

2015-08-31 12:25

administrator   ~0003854

This bug is no longer relevant with metasploit-framework and Kali 2.

Issue History

Date Modified Username Field Change
2014-09-10 21:32 ahenry New Issue
2015-08-31 12:25 rhertzog Note Added: 0003854
2015-08-31 12:25 rhertzog Status new => closed
2015-08-31 12:25 rhertzog Assigned To => rhertzog
2015-08-31 12:25 rhertzog Resolution open => won't fix
2025-07-14 09:38 g0tmi1k Severity crash => minor