Fast-track can not connect to database after updating
i have the feeling i am the only one with that problem. fast-track works great after a fresh install of backtrack but when i update my system it suddenly stops working and gives me the following error - Database not connected. Here is the output -
=[ metasploit v3.4.1-dev [core:3.4 api:1.0]
+ -- --=[ 556 exploits - 267 auxiliary
+ -- --=[ 209 payloads - 23 encoders - 8 nops
=[ svn r9452 updated today (2010.06.08)
msf > db_destroy pentest
dropdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
msf > db_create pentest
[-]
[-] Warning: The db_create command is deprecated, use db_connect instead.
[-] The database and schema will be created automatically by
[-] db_connect. If db_connect fails to create the database, create
[-] it manually with your DBMS's administration tools.
[-]
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[-] Error while running command db_create: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Call stack:
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1670:in `db_create_postgresql'
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1222:in `send'
/pentest/exploits/framework3/lib/msf/ui/console/command_dispatcher/db.rb:1222:in `cmd_db_create'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_single'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/pentest/exploits/framework3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
/pentest/exploits/framework3/lib/rex/ui/text/shell.rb:141:in `run'
/pentest/exploits/framework3/msfconsole:112
msf > db_nmap 192.168.0.101
[-] Database not connected
msf > db_autopwn -p -t -e -r
[-] Database not connected
msf > sleep 5
msf > jobs -K
Stopping all jobs...
msf >
msf >
msf >
msf >
msf > sessions -l
Active sessions
===============
No active sessions.
I searched the forums for a solution but could not find one.
Re: Fast-track can not connect to database after updating
use sqlite3 as db_driver or search for the howto pgsql thread from sickness.
Re: Fast-track can not connect to database after updating
I too, have this same issue. I have looked and looked all over google and elsewhere....no luck
I hope that this was not already addressed, and we missed out on the fix?
If so could someone please post a link.:o
I know that the newer version will break the process, but how to get the old one back?
Oh Wise Gods of BT, please shine your light of wisdom on this matter.
Re: Fast-track can not connect to database after updating
I have the same problem as the first note. It worked fine after fresh install, then when I updated and ran an nmap, it went downhill from there.
msf > db_create test1
[-]
[-] Warning: The db_create command is deprecated, use db_connect instead.
[-] The database and schema will be created automatically by
[-] db_connect. If db_connect fails to create the database, create
[-] it manually with your DBMS's administration tools.
[-]
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[-] Error while running command db_create: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Call stack:
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1684:in `db_create_postgresql'
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1236:in `send'
/opt/metasploit3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1236:in `cmd_db_create'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `send'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:246:in `run_command'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:208:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `each'
/opt/metasploit3/msf3/lib/rex/ui/text/dispatcher_shell.rb:202:in `run_single'
/opt/metasploit3/msf3/lib/rex/ui/text/shell.rb:141:in `run'
./msfconsole:112
Re: Fast-track can not connect to database after updating
If you haven't found the fix, here it is. mezo36 noted it on another thread:
msf> db_driver sqlite3
Re: Fast-track can not connect to database after updating
Omg read your errors next time it clearly sais postgreSQL, and I've made a tutorial on how to make postgreSQL work.
Code:
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[-] Error while running command db_create: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Re: Fast-track can not connect to database after updating
Not a BT bug.
Moved.
I don't believe rel1k even maintains or updates fasttrack any more.
Re: Fast-track can not connect to database after updating
Quote:
Originally Posted by
sickness
Omg read your errors next time it clearly sais postgreSQL, and I've made a tutorial on how to make postgreSQL work.
Code:
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
[-] Error while running command db_create: Failed to connect to the database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
can u plz paste ur totorial url here abt how to make postgresql!! im new to the form n need time to understand its where abouts !!