Etherpad hangs at /admin/plugins page
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
Plugin manager page always fetching,,,untill show:No plugins found
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!)
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...
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!
@JohnMcLear Mybe I can host and generate such json files. Is there an estimate with how many accesses i have to expect?
@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.
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..
Please test https://github.com/ether/etherpad-lite/pull/2294 and let me know if it works okay.
This is still an issue with the fresh 1.5.0. But I guess I need to go to #2294
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
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.