etherpad-lite icon indicating copy to clipboard operation
etherpad-lite copied to clipboard

Server Crash on plugin/search: TypeError: Cannot call method 'toLowerCase' of undefined

Open tabacha opened this issue 12 years ago • 4 comments

When I got to the plugin page and type "ldap" in the search box, the server crashed:

[2014-06-27 12:50:53.351] [INFO] ueberDB - Flushed 1 values [2014-06-27 12:51:19.631] [ERROR] console - TypeError: Cannot call method 'toLowerCase' of undefined at /home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:87:108 at /home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:66:20 at withNpm (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:7:26) at Object.exports.getAvailablePlugins (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:63:3) at Object.exports.search (/home/etherpad/etherpad-lite/src/static/js/pluginfw/installer.js:79:11) at Socket. (/home/etherpad/etherpad-lite/src/node/hooks/express/adminplugins.js:67:17) at Socket.EventEmitter.emit as $emit at SocketNamespace.handlePacket (/home/etherpad/etherpad-lite/src/node_modules/socket.io/lib/namespace.js:335:22) at Manager.onClientMessage (/home/etherpad/etherpad-lite/src/node_modules/socket.io/lib/manager.js:518:38) at XHRPolling.Transport.onMessage (/home/etherpad/etherpad-lite/src/node_modules/socket.io/lib/transport.js:369:20) [2014-06-27 12:51:19.632] [INFO] console - graceful shutdown... [2014-06-27 12:51:19.670] [INFO] console - db sucessfully closed.

tabacha avatar Jun 27 '14 10:06 tabacha

I can confirm this using the latest git version and the latest version of node.js

tmikaeld avatar Jul 01 '14 13:07 tmikaeld

Even listing the plugins cause this error:

[2014-07-01 13:48:38.775] [ERROR] console - RangeError: Invalid array length
    at /var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:97:15
    at Array.forEach (native)
    at /var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:96:26
    at cb (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:57:9)
    at RegClient.<anonymous> (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:133:16)
    at cb (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:158:9)
    at RegClient.<anonymous> (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:312:12)
    at Request._callback (/var/www/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:238:65)
    at Request.self.callback (/var/www/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:123:22)
    at Request.emit (events.js:98:17)

Maybe related?

tmikaeld avatar Jul 01 '14 13:07 tmikaeld

my error:

.com"},"repository":{"type":"git","url":"git://github.com/oJshua/servitude-conne
ct.git"},"time":{"modified":"2012-03-14T06:44:16.314Z"},"versions":{"0.0.2":"lat
est"},"keywords":["javascript","css","connect","middleware","sugar"]},"servlet":
{"name":"servlet","description":"Single thread, multiple host node application s
erver","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"dschwen","email":"
[email protected]"}],"author":{"name":"Daniel Schwen","email":"[email protected]"},"re
pository":{"type":"git","url":"https://github.com/dschwen/node-servlet.git"},"ti
me":{"modified":"2013-11-11T18:45:23.579Z"},"versions":{"0.0.7":"latest"},"keywo
rds":["server","watch","multiple","reload"]},"servlr":{"name":"servlr","descript
ion":"Tiny HTTP server for development. Does livereload and opens in the browser
.","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"kavanagh","email":"ltk
[email protected]"}],"readmeFilename":"README.md","homepage":"https://github.com
/kavanagh/servlr","keywords":["livereload","HTTP Server"],"repository":{"type":"
git","url":"https://github.com/kavanagh/servlr"},"author":{"name":"Luke Kavanagh
","email":"[email protected]"},"bugs":{"url"
    at Object.parse (native)
    at RegClient.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad-lite-
develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\npm-registry
-client\lib\request.js:266:23)
    at Request._callback (F:\liming\app\etherpad-lite-develop\etherpad-lite-deve
lop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\npm-registry-cli
ent\lib\request.js:238:65)
    at Request.self.callback (F:\liming\app\etherpad-lite-develop\etherpad-lite-
develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\request\requ
est.js:123:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad-lite-de
velop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\request\reques
t.js:893:14)
    at Request.EventEmitter.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (F:\liming\app\etherpad-lite-develop\etherpad
-lite-develop\node_modules\ep_etherpad-lite\node_modules\npm\node_modules\reques
t\request.js:844:12)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:910:16
npm ERR! registry error parsing json
npm WARN Building the local index for the first time, please be patient
npm WARN Building the local index for the first time, please be patient
npm WARN Building the local index for the first time, please be patient
FATAL ERROR: JS Allocation failed - process out of memory

liuliming2008 avatar Aug 13 '14 03:08 liuliming2008

Closing this in favor of https://github.com/ether/etherpad-lite/issues/2217

JohnMcLear avatar Nov 01 '14 20:11 JohnMcLear