Closed securitytime closed 3 years ago
It works when I run the psql command as the postgres
user:
root@ubuntu:~# psql -c "SELECT version()" postgres
psql: error: could not connect to server: FATAL: role "root" does not exist
root@ubuntu:~# su -l postgres
postgres@ubuntu:~$ psql -c "SELECT version()" postgres
version
-------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 12.4 (Ubuntu 12.4-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0, 64-bit
(1 row)
Yes, the command needs to be run with the postgres user
Issue Type
Bug Report
Faraday version
Faraday v3.12 (deb)
Steps to reproduce
I installed Faraday on a fresh and up-to-date Ubuntu Server 20.04.1.
During installation I followed the steps outlined in the installation wiki under https://github.com/infobyte/faraday/wiki/Install-Guide.
So first I downloaded Faraday's installer (step 1) and installed PostgreSQL (step 2):
As for step 3, I wanted to verify the PostgreSQL version as mentioned in the wiki. However, I got the following error message:
The rest of the installation went fine and Faraday is running normally.
Expected results
When running the command from step 3 then the PostgreSQL version should be shown instead of an error message. Perhaps PostgreSQL version 12 is not supported by the wiki.
OS