Knowledge Base

Ask A Question

Questions

5

Please Help (https://localhost:3790) Setup Error

If you could help me identify a problem with Metasploit I would greatly appreciate it. After installing, and running the https://localhost:3790 (Metasploit ui) I get this error: "PG::ConnectionBad (could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 7337? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 7337? ): activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize' activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `new' activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect' activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize' activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new' activerecord (4.2.10) lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout' C:/metasploit/ruby/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection' C:/metasploit/ruby/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection' activerecord (4.2.10) lib/active_record/connection_handling.rb:113:in `retrieve_connection' activerecord (4.2.10) lib/active_record/connection_handling.rb:87:in `connection' activerecord (4.2.10) lib/active_record/query_cache.rb:51:in `restore_query_cache_settings' activerecord (4.2.10) lib/active_record/query_cache.rb:43:in `rescue in call' activerecord (4.2.10) lib/active_record/query_cache.rb:31:in `call' activerecord (4.2.10) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.10) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.10) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.10) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.10) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.10) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.10) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.10) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.10) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.10) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.10) lib/rails/rack/logger.rb:20:in `call' request_store (1.4.0) lib/request_store/middleware.rb:19:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.8) lib/rack/methodoverride.rb:22:in `call' rack (1.6.8) lib/rack/runtime.rb:18:in `call' activesupport (4.2.10) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' actionpack (4.2.10) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.8) lib/rack/sendfile.rb:113:in `call' railties (4.2.10) lib/rails/engine.rb:518:in `call' railties (4.2.10) lib/rails/application.rb:165:in `call' railties (4.2.10) lib/rails/railtie.rb:194:in `public_send' railties (4.2.10) lib/rails/railtie.rb:194:in `method_missing' thin (1.7.2) lib/thin/connection.rb:86:in `block in pre_process' thin (1.7.2) lib/thin/connection.rb:84:in `catch' thin (1.7.2) lib/thin/connection.rb:84:in `pre_process' thin (1.7.2) lib/thin/connection.rb:53:in `process' thin (1.7.2) lib/thin/connection.rb:39:in `receive_data' eventmachine (1.2.5) lib/eventmachine.rb:194:in `run_machine' eventmachine (1.2.5) lib/eventmachine.rb:194:in `run' thin (1.7.2) lib/thin/backends/base.rb:73:in `start' thin (1.7.2) lib/thin/server.rb:162:in `start' thin (1.7.2) lib/thin/controllers/controller.rb:87:in `start' thin (1.7.2) lib/thin/runner.rb:203:in `run_command' thin (1.7.2) lib/thin/runner.rb:159:in `run!' thin (1.7.2) bin/thin:6:in `<top (required)>' thin_service.rb:68:in `load' thin_service.rb:68:in `block in service_init' HTTP/1.1 500 Internal Server Error Content-Type: text/html; charset=utf-8 Content-Length: 3614 X-Request-Id: 03d50b9b-8a51-47ee-9543-204e10e567d5 X-Runtime: 4.056651 Connection: close Server: thin <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- NOTE: This file is loaded via file:/// not https://. It is very important that all links be relative to the current directory. DO NOT RELY ON ROOT LINKS: (.e.g. /foo/bar) --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title>Bam! Application Error</title> <link rel="stylesheet" type="text/css" href="/errors.css" /> </head> <body><div id='wrap'> <div class='orange-strip'> </div> <div class='r7bottom-strip'> </div> <script type='text/javascript'> var div = document.createElement && document.createElement('div'); if (div) div.innerHTML = '<svg/>'; window['hasSvg'] = (div.firstChild && div.firstChild.namespaceURI == 'http://www.w3.org/2000/svg'); // check for SVG support. if supported, add some styles if (!window['hasSvg']){ document.body.onload = function() { document.body.style.padding = 0; document.body.style.margin = 0; document.body.style.background = '#f3f3f3'; document.body.style.backgroundImage = 'url(/assets/tileable_contours_white.jpg)'; document.body.style.backgroundRepeat = 'repeat'; var bottom = document.getElementsByClassName('r7bottom-strip')[0]; bottom.style.display = 'none'; var svn = document.getElementsByClassName('seven-bg')[0]; svn.style.display = 'none'; var svg = document.getElementsByTagName('svg')[0]; svg.parentNode.removeChild(svg); } } </script> <script>if (!window['hasSvg']) document.write('<!--');</script> <svg class='seven-bg' preserveAspectRatio="none" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 200 100" enable-background="new 0 0 200 100" xml:space="preserve"> <pattern id="img1" patternUnits="userSpaceOnUse" width="100" height="100"> <image preserveAspectRatio="xMinYMin" xlink:href="/assets/tileable_contours_white.jpg" x="0" y="0" width="100" height="100" /> </pattern> <g> <image overflow="visible" opacity="0.2" width="954" height="517" xlink:href="/seven_shadow.png" transform="matrix(0.24 0 0 0.24 -19.0732 -11)"> </image> </g> <polyline fill="url(#img1)" points="0.148,0 199.801,0 142.437,100 0.148,100 0.148,100 44.406,32.874 -2.08,32.874 -5.073,0.785 "/> </svg> <script>if (!window['hasSvg']) document.write('-->');</script> <div id='box-wrap'> <div id="box"> <div class="dialog-row"> <div class="before"></div> <div class="center" id="frame"> <div class='stripe'></div> <img src="/logo_pro_black_new_overlay.png" class='header'> <img src="/r7logo_new_dark.png" class='logo'> <div class="content"> <p class="justify">The Metasploit application encountered an error and was not able to process your request. If the problem persists, please visit the <a href="http://www.rapid7.com/customers/customer-login.jsp">Rapid7 Customer Center</a>. Users of the Community Edition are encouraged to use the <a href="https://community.rapid7.com/community/metasploit/">Rapid7 Community forums</a> for assistance. </p> <p style='text-align:center'><b><span style='font-size:1.5em'>&raquo;</span> Return to your <a href="javascript:history.back()">previous location</a></b></p> </div> </div> </div></div> </body> </html> "

Posted by Amy Hicks about a year ago