question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Etherpad authentication failed with postgres

See original GitHub issue

Hello friends,

My friend installed Ubuntu 16.10 on his system and we are having problem with getting etherpad working with Postgresql. Postgresql version 9.4 and 9.5 we tried, but no luck. We keep getting the error below.


events.js:160
      throw er; // Unhandled 'error' event
      ^

error: password authentication failed for user "postgres"
    at Connection.parseE (/usr/local/lib/node_modules/etherpad-lite/src/node_modules/pg/lib/connection.js:534:11)
    at Connection.parseMessage (/usr/local/lib/node_modules/etherpad-lite/src/node_modules/pg/lib/connection.js:361:17)
    at Socket.<anonymous> (/usr/local/lib/node_modules/etherpad-lite/src/node_modules/pg/lib/connection.js:105:22)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at TCP.onread (net.js:551:20)

Our settings.json part 👍

  "dbType" : "postgres",
  "dbSettings" : {
		  "user"    : "postgres",
                    "host"    : "localhost",
                    "password": "PASSWORD",
                    "database": "DBNAME",
                    "charset" : "utf8mb4"

                 },

The password is correct, as our applications are able to connect with the DB with same password, but etherpad cannot,. Tried installing, unisntalling etherpad as well, no luck. What are we doing wrong?m

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
Flakebicommented, Feb 3, 2017

I had the same output. The issue was brianc/node-postgres#1000 and I was able to fix it like it was mentioned in that issue: brianc/node-postgres@77560fe

1reaction
blunckrcommented, Mar 14, 2017

I was wrong, ueberdb2 needs to update their dependency too.

See: https://github.com/Pita/ueberDB/pull/93

Read more comments on GitHub >

github_iconTop Results From Across the Web

Etherpad v1.8.14 Manual & Documentation
DEPRECATED: Use authnFailure or authzFailure instead. This hook is called to handle an authentication or authorization failure. Plugins that supply an ...
Read more >
Getting error: Peer authentication failed for user "postgres ...
The problem is still your pg_hba.conf file*. This line: local all postgres peer. Should be: local all postgres md5. After altering this file,...
Read more >
Troubleshooting Etherpad In Google Cloud - Curious DBA
This time it got as far as Etherpad, but the error message was more ... Password: psql: error: FATAL: password authentication failed for ......
Read more >
How To Install the Etherpad Collaborative Web Editor on ...
Etherpad is a web application that enables real-time ... run the Etherpad Docker container, and connect it to a managed PostgreSQL database.
Read more >
etherpad-lite Cookbook - Chef Supermarket
nodejs - etherpad-lite runs on javascript; postgresql - we use postgres ... This setting is used if you require authentication of all users....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found