我安装了 Etherpad lite 并尝试将其与 PostgreSQL 数据库一起使用,但出现此错误:
events.js:72
throw er; // Unhandled 'error' event
^
error: language "plpgsql" does not exist
at Connection.parseE (/opt/openerp/etherpad/etherpad-lite/src/node_modules/$
at Connection.parseMessage (/opt/openerp/etherpad/etherpad-lite/src/node_mo$
at Socket.<anonymous> (/opt/openerp/etherpad/etherpad-lite/src/node_modules$
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)
RESTART!
在其他服务器中,我使用带有 Etherpad 的 PostgreSQL 没有这样的问题。我使用以下命令创建了数据库:
crate database etherpad WITH TEMPLATE template0;
我在 etherpad 中的配置是这样的:
"dbType" : "postgres",
"dbSettings" : {
"user" : "db_user",
"host" : "localhost",
"password": "my_password",
"database": "etherpad"
},
其他一切都保持不变,除了我评论了脏数据库设置。带有脏数据库的 PS 它可以工作。