Open jlegido opened 5 years ago
I am facing similar issue running docker-compose
postgresqltuner.pl version 1.0.1
DBI connect('dbname=template1;host=/var/run/postgresql;port=5432;','postgres',...) failed: 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"? at /usr/bin/postgresqltuner.pl line 246.
[OK] I can invoke executables
Connecting to /var/run/postgresql:5432 database template1 as user 'postgres'...
@jlegido Your issue seems related to the script trying to create an SSH connection to the container, have you tried running with the --skip-ssh
option?
I got below error running the docker container in a host which is running the postgresql server, but as a docker container:
I assume that this script is not intended to work in such this scenario.
Can somebody please confirm?
Thanks.