你好朋友,
我的朋友在他的系统上安装了 Ubuntu 16.10,我们在让 etherpad 与 Postgresql 一起工作时遇到了问题。 我们尝试了 Postgresql 9.4 和 9.5 版,但没有成功。 我们不断收到以下错误。
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)
我们的 settings.json 部分:+1:
"dbType" : "postgres",
"dbSettings" : {
"user" : "postgres",
"host" : "localhost",
"password": "PASSWORD",
"database": "DBNAME",
"charset" : "utf8mb4"
},
密码是正确的,因为我们的应用程序可以使用相同的密码连接数据库,但 etherpad 不能。 也尝试安装、卸载 etherpad,但没有成功。 我们做错了什么?m
我有相同的输出。 问题是 briac/node-postgres#1000,我能够像在那个问题中提到的那样修复它:briac/ node-postgres@77560fe
谢谢@Flakebi :这解决了问题。 :-)
这个可以重开吗? 要求用户手动修补一些代码并不是最好的解决方案。 我认为只需将 ueberdb2 依赖项更新到 3.5.0 即可解决
我错了,ueberdb2 也需要更新它们的依赖项。
见: https :
@blunckr :我有一个重新打开的选项,你想让我重新打开这个吗? 请告诉我重新打开时应该添加的文本。 谢谢。
好吧,问题确实出在 ueberdb 中,所以我不确定此时重新打开它是否有任何好处。 不过谢谢。
除了现在使用 psql 和密码时 etherpad 完全无法使用的事实。 如果有人不熟悉 etherpad 的打包/deps 机制,那么开始它似乎绝对没有希望。 我可能会去尝试手动修补所有有问题的文件.....
写信以确认我们也看到了这一点。 我们可以正常连接到数据库,但 etherpad-light 不能。 (错误的用户名/密码)
我已经手动修补了各种库中的所有 client.js [使用 brianc/ node-postgres@77560fe中的只要我禁用整个更新机制,它就可以工作。 这是丑陋的。
最有用的评论
我有相同的输出。 问题是 briac/node-postgres#1000,我能够像在那个问题中提到的那样修复它:briac/ node-postgres@77560fe