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

Crash when searching plugins.

Open FlorianWendelborn opened this issue 12 years ago • 6 comments

Installation:

I used the default installation for Ubuntu 13.10 (GNU/Linux 3.11.0-12-generic x86_64). I set up a new user for etherpad and changed the config to enable the admin account. Also I updated all packages via apt-get update && apt-get upgrade && npm update && npm update -g.

Reproduction:

I can't test it on another machine, but the error always appears when typing something in the search form in the admin/plugins panel.

Console Log:

etherpad@master-ubuntu:~/etherpad-lite$ ./bin/run.sh
Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] 'repositories' (plural) Not supported. Please pick one as the 'repository' field
npm WARN package.json [email protected] No repository field.
Ensure jQuery is downloaded and up to date...
Clear minfified cache...
ensure custom css/js files are created...
start...
[2014-05-08 18:13:29.729] [WARN] console - DirtyDB is used. This is fine for testing but not recommended for production.
[2014-05-08 18:13:29.902] [WARN] pluginfw - /home/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client requires semver@'^2.2.1' but will load
/home/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/semver,
which is version 2.2.1 'unmet dependency'
[2014-05-08 18:13:29.904] [WARN] pluginfw - /home/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data requires github-url-from-username-repo@'^0.1.0' but will load
/home/etherpad/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/github-url-from-username-repo,
which is version 0.1.0 'unmet dependency'
[2014-05-08 18:13:30.138] [INFO] console - Installed plugins: ep_etherpad-lite
[2014-05-08 18:13:30.158] [INFO] console - Your Etherpad git version is 32898de
[2014-05-08 18:13:30.158] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues
[2014-05-08 18:13:30.186] [INFO] console -    info  - 'socket.io started'
[2014-05-08 18:13:30.227] [INFO] console - You can access your Etherpad instance at http://0.0.0.0:9001/
[2014-05-08 18:13:30.228] [INFO] console - The plugin admin page is at http://0.0.0.0:9001/admin/plugins
[2014-05-08 18:13:35.801] [INFO] socket.io - handshake authorized 'vDBHyZN9XtIjX3Q7nGzL'
npm http GET https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1399565589804
npm http 200 https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1399565589804
[2014-05-08 18:13:41.050] [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.<anonymous> (/home/etherpad/etherpad-lite/src/node/hooks/express/adminplugins.js:67:17)
    at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
    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:488:38)
    at XHRPolling.Transport.onMessage (/home/etherpad/etherpad-lite/src/node_modules/socket.io/lib/transport.js:387:20)
[2014-05-08 18:13:41.051] [INFO] console - graceful shutdown...
[2014-05-08 18:13:41.051] [INFO] console - db sucessfully closed.

FlorianWendelborn avatar May 08 '14 16:05 FlorianWendelborn

I think the whole plugin infrastructure is pretty fubar'd due to npm growing far too large and providing no way for us to easily grab our plugins only...

JohnMcLear avatar May 08 '14 16:05 JohnMcLear

I have the same issue.

Installed plugins:

  • headings 0.1.6
  • historicalsearch 0.0.8
  • markdown 0.0.4
  • push2delete 0.1.2
  • small_list 0.0.3
  • syntaxhighlighting 0.1.4
  • timesliderdiff 0.0.3

A work-around for this issue is simply to scroll down to the bottom of the plugins page to display all the available plugins and then use your browser search/find functionality to look for keywords in the page.

Lucas-C avatar Jul 01 '14 11:07 Lucas-C

Plugin manager page always fetching,,,untill show:No plugins found

liuliming2008 avatar Aug 13 '14 02:08 liuliming2008

Read your error output

----- Reply message ----- From: "liuliming2008" [email protected] To: "ether/etherpad-lite" [email protected] Cc: "John McLear" [email protected] Subject: [etherpad-lite] Crash when searching plugins. (#2151) Date: Wed, Aug 13, 2014 03:40

Plugin manager page always fetching,,,untill show:No plugins found

— Reply to this email directly or view it on GitHubhttps://github.com/ether/etherpad-lite/issues/2151#issuecomment-52003436.

JohnMcLear avatar Aug 13 '14 07:08 JohnMcLear

It's ok now, do nothing! because of node repos,maybe

liuliming2008 avatar Aug 14 '14 04:08 liuliming2008

Please close the issue

----- Reply message ----- From: "liuliming2008" [email protected] To: "ether/etherpad-lite" [email protected] Cc: "John McLear" [email protected] Subject: [etherpad-lite] Crash when searching plugins. (#2151) Date: Thu, Aug 14, 2014 05:11

It's ok now, do nothing! because of node repos,may

— Reply to this email directly or view it on GitHubhttps://github.com/ether/etherpad-lite/issues/2151#issuecomment-52141908.

JohnMcLear avatar Aug 14 '14 08:08 JohnMcLear