msf database not starting

msf6 > msfdb init
[*] exec: 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:0x000055a36e4962b0> 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 <to
p (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/ker
nel.rb:34:in require' /usr/share/metasploit-framework/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/ker nel.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 <to
p (required)>’
(See full trace by running task with --trace)
msf6 >