Skip to content
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

Does this tool support a postgresql running in a docker container? #53

Open
jlegido opened this issue Jul 17, 2019 · 2 comments
Open

Does this tool support a postgresql running in a docker container? #53

jlegido opened this issue Jul 17, 2019 · 2 comments

Comments

@jlegido
Copy link

jlegido commented Jul 17, 2019

I got below error running the docker container in a host which is running the postgresql server, but as a docker container:

ssh: connect to host dbhost port 22: Connection refused
Use of uninitialized value in division (/) at /usr/bin/postgresqltuner.pl line 624.
Argument "" isn't numeric in division (/) at /usr/bin/postgresqltuner.pl line 624.
Illegal division by zero at /usr/bin/postgresqltuner.pl line 624.

I assume that this script is not intended to work in such this scenario.

Can somebody please confirm?

Thanks.

@szymonk92
Copy link

szymonk92 commented Dec 3, 2019

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'...

@klimber
Copy link
Contributor

klimber commented Sep 30, 2023

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants