jeffutter / dokku-postgresql-plugin

Plugin to setup postgresql accounts for containers deployed with Dokku
GNU General Public License v2.0
35 stars 13 forks source link

Auth failed #10

Closed kevinob11 closed 10 years ago

kevinob11 commented 10 years ago

When I attempt to run my node js app I get the following error stating that auth failed:

Error creating a connection to Postgresql: error: password authentication failed for user "docapi"
error: A hook (`orm`) failed to load!
error: error: password authentication failed for user "docapi"
    at Connection.parseE (/app/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:561:11)
    at Connection.parseMessage (/app/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:390:17)
    at null.<anonymous> (/app/node_modules/sails-postgresql/node_modules/pg/lib/connection.js:92:20)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Socket.<anonymous> (_stream_readable.js:746:14)
    at Socket.EventEmitter.emit (events.js:92:17)
    at emitReadable_ (_stream_readable.js:408:10)
    at emitReadable (_stream_readable.js:404:5)
    at readableAddChunk (_stream_readable.js:165:9)
    at Socket.Readable.push (_stream_readable.js:127:10)
Error creating a connection to Postgresql: error: password authentication failed for user "docapi"
Error creating a connection to Postgresql: error: password authentication failed for user "docapi"

Possibly of note, when I try to run either postgresql:list or postgresql:console_admin I get the following error (different line call out for console_admin of course) as though psql isn't defined wherever this is being run. Possible I didn't install correctly or something?

/var/lib/dokku/plugins/postgresql/commands: line 89: psql: command not found
kevinob11 commented 10 years ago

Receiving this error during install that I didn't notice initially.

Unable to locate package postgresql-client-9.1
jeffutter commented 10 years ago

What os and version is your?

— Sent from Mailbox

On Mon, Apr 28, 2014 at 11:54 PM, Kevin OBrien notifications@github.com wrote:

Receiving this error during install that I didn't notice initially.

Unable to locate package postgresql-client-9.1

Reply to this email directly or view it on GitHub: https://github.com/jeffutter/dokku-postgresql-plugin/issues/10#issuecomment-41641544

kevinob11 commented 10 years ago

Ubuntu 14.04, Dokku 0.2.3, basically a current digital ocean default dokku droplet

jeffutter commented 10 years ago

Would you be able to try this branch: https://github.com/jeffutter/dokku-postgresql-plugin/tree/postgresql-versions 14.04 has a different version of postgresql so it wasn't installing the client packages. This branch should fix it but I don't have time to test at the moment.

kevinob11 commented 10 years ago

I'll give it a shot and let you know!

oal commented 10 years ago

I can confirm that this works.

kevinob11 commented 10 years ago

Working for me too!

jeffutter commented 10 years ago

Ok. Merged.

https://github.com/jeffutter/dokku-postgresql-plugin/pull/11