Kloadut / dokku-pg-plugin

PostgreSQL plugin for Dokku
201 stars 75 forks source link

'psql' not found when executing dokku postgresql:console <db> #83

Open lastmjs opened 9 years ago

lastmjs commented 9 years ago

On a fresh installation of Ubuntu 14.04 x64, with a fresh installation of Dokku (all versions should be latest), when I run

dokku postgresql:console <db> 

with my database's name, I get this:

'psql' not found. Is the package 'postgresql-client' installed?

I looked into the issue a little and found this question: http://stackoverflow.com/questions/23909574/console-access-to-dokkus-postgresql-plugin

It looks like the person with the accepted answer had a pull request merged in to fix the issue. Even trying his semantically incorrect solution, I get the same error. So when I try

postgresql:restore <db> 

I get:

'psql' not found. Is the package 'postgresql-client' installed?
Nilloc commented 9 years ago

At the bottom of the Readme.md is a note that if backup or console isn't working to run sudo apt-get install postgresql-client-9.3

Did you try this? It installs the psql cli.

lastmjs commented 9 years ago

I did try that, and I believe it worked. Thanks