-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after new git pull msfdb error postgresql not in the path #10939
Comments
If I understand correctly you are attempting to use If you would like to use the source from GitHub I would suggest reviewing the wiki on Setting Up a Metasploit Development Environment. Depending on your current setup, you may only need to install PostgreSQL on your system to get up and running. |
./msfdb not work
but
./msfconsole work fine
correct postgresql connexion
Le 13/11/2018 à 20:50, Matthew Kienow a écrit :
… If I understand correctly you are attempting to use |msfdb| from a
source install ("after git pull"). The nightly installer build is the
4.x branch, while the master branch is 5.x. In addition, the nightly
installer build packages its own copy of PostgreSQL which it adds to the
path dynamically.
If you would like to use the source from GitHub I would suggest
reviewing the wiki on Setting Up a Metasploit Development Environment
<https://github.com/rapid7/metasploit-framework/wiki/Setting-Up-a-Metasploit-Development-Environment>.
Depending on your current setup, you may only need to install PostgreSQL
on your system to get up and running.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10939 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWVcF8glOCUu7phRzJIkRXJP3SqCi-QVks5uuyKEgaJpZM4YWxn->.
|
The reason you are getting the message "PostgreSQL does not appear to be installed or is not in the environment path" from Would you provide the output from the following commands:
|
terminal
:~$ postgresql_cmds=( psql pg_ctl initdb createdb ); for i in
"${postgresql_cmds[@]}"; do which $i; done
/usr/bin/psql
/usr/bin/createdb
inside ./msfconsole
msf5 > db_status
[*] Connected to msf. Connection type: postgresql.
msf5 > db_connect -l
Data Services
=============
current name url default?
------- ---- --- --------
msf5 >
Le 13/11/2018 à 22:13, Matthew Kienow a écrit :
… The reason you are getting the message "PostgreSQL does not appear to be
installed or is not in the environment path" from |msfdb | is one or
more of the following commands is not found on in your path: |psql|,
|pg_ctl|, |initdb|, |createdb|. |./msfconsole| can start and work
without a database. Are you certain the |./msfconsole| from the repo is
connected to a database?
Would you provide the output from the following commands:
1. From your terminal: |postgresql_cmds=( psql pg_ctl initdb createdb
); for i in "${postgresql_cmds[@]}"; do which $i; done|
2. From inside |./msfconsole|: |db_status| and |db_connect -l|
3. From
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#10939 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWVcFwYcVcSRnIZhfyLPLtclMXKBkPldks5uuzYLgaJpZM4YWxn->.
|
I'm not familiar with how Kali handles their PostgreSQL installation, but the reason |
Debian (and thus Ubuntu and Kali as well) do not provide See #11369 for my request to better handle this case. |
@rhertzog I agree having looked into this further since this issue was opened. We have a ticket on our backlog to address using the |
Steps to reproduce
after git pull
:~/metasploit-framework$ ./msfdb reinit
Missing requirement: PostgreSQL does not appear to be installed or is not in the environment path
but Nightly build work fine
everything worked very well some time ago
kali rolling up to date
How'd you do it?
This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.
Expected behavior
What should happen?
Current behavior
What happens instead?
You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log
or~/.msf4/logs/framework.log
for relevant stack tracesSystem stuff
Metasploit version
Get this with the
version
command in msfconsole (orgit log -1 --pretty=oneline
for a source install).I installed Metasploit with:
OS
What OS are you running Metasploit on?
The text was updated successfully, but these errors were encountered: