Metasploit-framework: Metasploit could not conection database

Created on 31 May 2018  路  1Comment  路  Source: rapid7/metasploit-framework

Hello, I have big problem with metasploit database. I have upgraded my distro and installed packages and I'm running now postgresql 10. As from now, i can see the postgresql service is active. I then run msfdb init and I get this

A database appears to be already configured, skipping initialization
I run msfconsole but then the connection error shows up:

Failed to connect to the database: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
finally if i type db_status i get
"postgresql selected, no connection"

On the forums it is written that you need to fix the postgresql file.conf, but I don't have this file, although all packages are installed.

I will be very grateful if someone will help me.

bug

Most helpful comment

I guess this issue already has an answer here.

>All comments

I guess this issue already has an answer here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akefallonitis picture akefallonitis  路  28Comments

esfomeado picture esfomeado  路  35Comments

anthraxx picture anthraxx  路  31Comments

Rogdham picture Rogdham  路  47Comments

apollyonfirstcome picture apollyonfirstcome  路  42Comments