dee
(dee pee)
June 23, 2018, 6:19pm
1
here is the problem
each time i try to create or reinitialize my msfdb it fails at creating schema
below is the error code i get , any help i get will be deeply appreciated
#msfdb reinit
[i] Database already started
[+] Dropping databases ‘msf’
[+] Dropping databases ‘msf_test’
[+] Dropping database user ‘msf’
[+] Deleting configuration file /usr/share/metasploit-framework/config/database.yml
[+] Stopping database
[+] Starting database
[+] Creating database user ‘msf’
[+] Creating databases ‘msf’
[+] Creating databases ‘msf_test’
[+] Creating configuration file ‘/usr/share/metasploit-framework/config/database.yml’
[+] Creating initial database schema
rake aborted!
NoMethodError: undefined method without' for #<Bundler::Settings:0x000055c302f507b0> Did you mean? with_options /usr/share/metasploit-framework/Rakefile:18:in
rescue in <top (required)>’
/usr/share/metasploit-framework/Rakefile:12:in <top (required)>' /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in
<top (required)>’
Caused by:
LoadError: cannot load such file – rspec/core
/usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/backports-3.11.3/lib/backports/std_lib.rb:9:in require' /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/backports-3.11.3/lib/backports/std_lib.rb:9:in
require_with_backports’
/usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in block in require' /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:240:in
load_dependency’
/usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.10/lib/active_support/dependencies.rb:274:in require' /usr/share/metasploit-framework/Rakefile:13:in
<top (required)>’
/usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>’
(See full trace by running task with --trace)
1 Like
g0rbe
June 23, 2018, 8:19pm
2
I dont know what cause the error, i am also interested
But if i check the db_status, it shows me that “connected”
you can check this at: msfconsole
> db_status
meowCat
January 30, 2019, 11:04pm
3
This still seems to be an issue.
meowCat
February 5, 2019, 10:36pm
4
The resolution can be found here:
Hi guys. Kali and Linux newbie here. I have upgraded both my distro and installed packages and I'm running now metasploit 4.12.42 and postgresql 9.6(.1 i guess). As instructed, I removed postgresql 9.5. As from now, i can see the postgresql service...
My issue was Postgresql has changed its default port.
NinoX
(Antonino)
April 23, 2021, 9:11pm
5
Hi,
Do you have any news about this ?
I got a similar problem with the last version
Dear All,
I recently installed Parrot os and updated. this is the output from uname command
5.10.0-6parrot1-amd64 #1 SMP Debian 5.10.28-6parrot1 (2021-04-12) x86_64 GNU/Linux.
I tried to start postgresql but I had some problems related to the socket. Fortunately I solved this problem by updating the /etc/hosts file. I don’t why but after the installation it is empty and then does not contain the localhost address. I suggest to update this file, since it might produce some errors with other tools, like nmap. Postgresql runs properly now and I can see it also through nmap.
However, some problems still persists when I try to configure it into metasploit. In particular, this is the output from the msfdb init command
msfdb init
[+] Starting database
[+] Creating database user ‘msf’
[+] Creating databases ‘msf’
[+] Creating databases ‘msf_test’
[+] Creating configuration file ‘/usr/share/metasploit-framework/config/database.yml’
[+] Creating initial database schema
rake aborted!
NoMethodError: undefined method without' for #<Bundler::Settings:0x000055bd489b8858> Did you mean? with_options /usr/share/metasploit-framework/Rakefile:19:in rescue in <top (required)>’
/usr/share/metasploit-framework/Rakefile:13:in <top (required)>' /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in <top (required)>’
Caused by:
LoadError: cannot load such file – rspec/core
/usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in require' /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in require’
/usr/share/metasploit-framework/Rakefile:14:in <top (required)>' /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/exe/rake:27:in <top (required)>’
(See full trace by running task with --trace)
I would really apprecciate if you can help me to fix this.
Thank you in advance
Thank you in advance