Skip to content

Running etherpad-lite on nodejs 4.2.0 doesn't connect to Mysql #2803

@MorrisJobke

Description

@MorrisJobke
$ sudo -u etherpad /usr/share/webapps/etherpad-lite/bin/run.sh -s /etc/webapps/etherpad-lite/settings.json
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.

> ws@0.5.0 install /usr/share/webapps/etherpad-lite/src/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Verzeichnis „/usr/share/webapps/etherpad-lite/src/node_modules/ws/build“ wird betreten
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
bufferutil.target.mk:92: die Regel für Ziel „Release/obj.target/bufferutil/src/bufferutil.o“ scheiterte
make: Verzeichnis „/usr/share/webapps/etherpad-lite/src/node_modules/ws/build“ wird verlassen
npm WARN EPACKAGEJSON ep_etherpad-lite@1.5.7 No license field.
Ensure jQuery is downloaded and up to date...
Clearing minified cache...
Ensure custom css/js files are created...
Started Etherpad...
[2015-10-13 09:21:50.895] [ERROR] console - ERROR: Problem while initalizing the database
[2015-10-13 09:21:50.898] [ERROR] console - Error: Handshake inactivity timeout
    at Handshake.<anonymous> (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/protocol/Protocol.js:154:17)
    at emitNone (events.js:67:13)
    at Handshake.emit (events.js:166:7)
    at Handshake._onTimeout (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/protocol/sequences/Sequence.js:116:8)
    at Timer.listOnTimeout (timers.js:92:15)
    --------------------
    at Protocol._enqueue (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/protocol/Protocol.js:135:48)
    at Protocol.handshake (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/protocol/Protocol.js:52:41)
    at Connection.connect (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/Connection.js:109:18)
    at Connection._implyConnect (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/Connection.js:387:10)
    at Connection.query (/usr/share/webapps/etherpad-lite/src/node_modules/mysql/lib/Connection.js:174:8)
    at exports.database.init (/usr/share/webapps/etherpad-lite/src/node_modules/ueberDB/mysql_db.js:74:6)
    at exports.database.init (/usr/share/webapps/etherpad-lite/src/node_modules/ueberDB/CacheAndBufferLayer.js:110:18)
    at exports.database.init (/usr/share/webapps/etherpad-lite/src/node_modules/ueberDB/CloneAndAtomicLayer.js:48:11)
    at Object.exports.init (/usr/share/webapps/etherpad-lite/src/node/db/DB.js:41:6)
    at /usr/share/webapps/etherpad-lite/src/node/server.js:62:8

I then downgraded to nodejs 0.12.7 and etherpad just starts fine.

cc @Gared

This could also be very likely a nodejs problem, but I'm unsure where and how to report this.

@Gared I add you, because you added the switch: Gared@bf7930f - I also admit that I used a 1.5.7 and only applied your patch. Maybe this couldn't work, but on ther other side I also couldn't find big changes between 1.5.7 and the current HEAD: 8359756...develop#diff-5d2aa4336c4964b828a123e20e09b73c

Feel free to simply close this, if I just did it the wrong way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions