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

Etherpad hangs at /admin/plugins page

Open mmitsui opened this issue 12 years ago • 11 comments

I'm using an installation that was working for a while (for adding/removing plugins); it would correctly load the complete list of plugins for the plugin manager. Eventually, it stopped showing this list, timing out every 20 seconds for about 1-2 minutes before crashing. With a fresh installation of Etherpad, the initial index is never made: it hangs until it crashes.

I'm not sure what could be going wrong here. The final error that causes the crash in both cases is RangeError: Invalid array length at <etherpad directory>/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js

mmitsui avatar Aug 07 '14 00:08 mmitsui

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

liuliming2008 avatar Aug 13 '14 02:08 liuliming2008

So I have been looking into this to see if there is a fix yet hoping maybe npm would have got decent search and sadly it's still not the case.

The best results look like this:

http://eirikb.github.io/nipster/#ep_ and come from http://nipster.blob.core.windows.net/cdn/npm-datatables.json

So I guess the real fix here is that we periodically curate and host a .json blob of etherpad plugins and also maybe serve a blob (and some available plugins) for those who are offline?

I think this is beyond the scope of what I'm comfortable doing this weekend, I'd suggest we'd need a corporate sponsor to host that blob..

Suggestion and probably the best win...

Perhaps a nightly script that searches npm then pushes/commits a json blob up to github wouldn't be too offensive? I feel like plugin authors would be happy waiting 24 hours for their plugin to be installed by remote users (or the remote user could potentially install using CLI!)

JohnMcLear avatar Nov 01 '14 20:11 JohnMcLear

Btw, for those who get timeouts etc. The file it's downloading is the entire fsking npm index.

This is going to get worst before it gets better.........

The only fix current hosts have is to use the CLI to install plugins

npm install ep_slideshow for example...

JohnMcLear avatar Nov 01 '14 20:11 JohnMcLear

Hi JohnMcLear, many thanks a lot for taking care of this. We have an etherpad app on arkos (http://arkos.io), the slow plugins page is really something that gave me a headache. Thanks again!

heinzK1X avatar Nov 01 '14 21:11 heinzK1X

@JohnMcLear Mybe I can host and generate such json files. Is there an estimate with how many accesses i have to expect?

Akasch avatar Nov 01 '14 21:11 Akasch

@Akasch We would need a guarantee of 1M+ requests per hour. I don't think this is something we want to use an untested environment for.

JohnMcLear avatar Nov 01 '14 22:11 JohnMcLear

Upstream bug exists, this problem is affecting a lot of people which is good as it's likely to get addressed. I shared our use case and hopefully we will get covered. I'm investigating the potential of pushing up a json blob to etherpad.org nightly, watch this space..

JohnMcLear avatar Nov 04 '14 14:11 JohnMcLear

Please test https://github.com/ether/etherpad-lite/pull/2294 and let me know if it works okay.

JohnMcLear avatar Nov 04 '14 17:11 JohnMcLear

This is still an issue with the fresh 1.5.0. But I guess I need to go to #2294

lkraav avatar Jan 01 '15 21:01 lkraav

Are you having troubles loading the available plugins? This is a problem due to the empty json file on etherpad.org. I've opened a pull request to fix this https://github.com/ether/ether.github.com/pull/13

Gared avatar Jan 01 '15 21:01 Gared

Yes, the available plugin list crashes while downloading, with what I'm seeing from issue search, is an old friend "jaan 01 23:05:50 gusto etherpad-lite[20521]: [2015-01-01 23:05:50.917] [ERROR] console - RangeError: Invalid array length"

And yes I thought that empty json file was weird. Looking forward to an update on this.

EDIT I don't know why or how but it finally received the plugin list on the 10th try or so.

lkraav avatar Jan 01 '15 21:01 lkraav