PDA

View Full Version : msfconsole doesn't start (PG::UndefinedFile)



NCols
2019-12-04, 12:18
Hi there,

I am running Kali Linux in VMWare Workstation on a Ubuntu host. I just upgraded to Kali 2019.4. Everything seems to have gone fine.

Except I can't get msfconsole to run. postgresql is running, the database is initiated. I started msfconsole once. Then quit. And now when I try to reopen it, I get an error at startup. I uninstalled and reinstalled via apt, same issue.

If anyone could help me figure out how to solve this, that would be very much appreciated.

Thanks in advance for any assistance.

Here's the error I get:


root@host:~# msfconsole
Traceback (most recent call last):ork console...|
46: from /usr/bin/msfconsole:49:in `<main>'
45: from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:82:in `start'
44: from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:48:in `start'
43: from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `driver'
42: from /usr/share/metasploit-framework/lib/metasploit/framework/command/console.rb:62:in `new'
41: from /usr/share/metasploit-framework/lib/msf/ui/console/driver.rb:161:in `initialize'
40: from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `init_module_paths'
39: from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:49:in `each'
38: from /usr/share/metasploit-framework/lib/msf/base/simple/framework/module_paths.rb:50:in `block in init_module_paths'
37: from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `add_module_path'
36: from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:40:in `each'
35: from /usr/share/metasploit-framework/lib/msf/core/module_manager/module_paths.rb:41:in `block in add_module_path'
34: from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:133:in `load_modules'
33: from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:133:in `each'
32: from /usr/share/metasploit-framework/lib/msf/core/module_manager/loading.rb:135:in `block in load_modules'
31: from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:256:in `load_modules'
30: from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:256:in `each'
29: from /usr/share/metasploit-framework/lib/msf/core/modules/loader/base.rb:259:in `block in load_modules'
28: from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:109:in `recalculate'
27: from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:109:in `each_pair'
26: from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:122:in `block in recalculate'
25: from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:122:in `each_pair'
24: from /usr/share/metasploit-framework/lib/msf/core/payload_set.rb:186:in `block (2 levels) in recalculate'
23: from /usr/share/metasploit-framework/lib/msf/core/payload.rb:212:in `size'
22: from /usr/share/metasploit-framework/lib/msf/core/payload/windows/encrypted_reverse_tcp.rb:32:in `generate'
21: from /usr/share/metasploit-framework/lib/msf/core/payload/uuid/options.rb:81:in `generate_payload_uuid'
20: from /usr/share/metasploit-framework/lib/msf/core/payload/uuid/options.rb:107:in `record_payload_uuid'
19: from /usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/payload_data_proxy.rb:15:in `create_payload'
18: from /usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/core.rb:166:in `data_service_operation'
17: from /usr/share/metasploit-framework/lib/metasploit/framework/data_service/proxy/payload_data_proxy.rb:16:in `block in create_payload'
16: from /usr/share/metasploit-framework/lib/msf/core/db_manager/payload.rb:4:in `create_payload'
15: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
14: from /usr/share/metasploit-framework/lib/msf/core/db_manager/payload.rb:6:in `block in create_payload'
13: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/core.rb:187:in `find_by'
12: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/statement_cache.rb:107:in `execute'
11: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/querying.rb:39:in `find_by_sql'
10: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all'
9: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
8: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select'
7: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
6: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:585:in `execute_and_clear'
5: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:601:in `exec_cache'
4: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
3: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
1: from /usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:602:in `block in exec_cache'
/usr/share/metasploit-framework/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/postgresql_adapter.rb:602:in `exec_prepared': PG::UndefinedFile: ERROR: could not open file "base/16385/17552": No such file or directory (ActiveRecord::StatementInvalid)
: SELECT "payloads".* FROM "payloads" WHERE "payloads"."uuid" = $1 LIMIT 1