Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install moduls via admin interface #5569

Closed
simondueckert opened this issue Jul 24, 2022 · 6 comments
Closed

Can't install moduls via admin interface #5569

simondueckert opened this issue Jul 24, 2022 · 6 comments

Comments

@simondueckert
Copy link

I just updated my Debian server from version 10 to 11. I did a fresh install of etherpad-lite (with this tutorial: https://www.howtoforge.com/how-to-install-etherpad-on-debian-11/). I use my old mariadb database and the old settings.json. Node/Npm was also updated:

Node: v16.16.0
Npm: 8.11.0

When I try to install my needed plugins (e.g. adminpads2, headings2) via /admin/plugins the UI shows "installing" for a long time. When I reload the page the secion "Installed Plugins" is empty again.

Any ideas what that might be?

@muzzol
Copy link

muzzol commented Jul 27, 2022

it's the same for me. fresh git install on debian 11 and plugins fail to install from /admin page.

if I do it with commands it works ok BUT be careful with docs recomendation:

npm install --no-save --legacy-peer-deps ep_$plugin_name

that fails for me on some plugins, so I just removed extra parameters and did it like usual:

npm install  ep_themes

maybe someone should take a look at outdated docs: https://github.com/ether/etherpad-lite/wiki/Available-Plugins

also, remember you can easily restart your instance from /admin/settings

@JedMeister
Copy link

FWIW, I hit this same issue too.

The "fix" is to either use Node v14 (and everything will "just work") or install newer npm into Etherpad. Etherpad ships with npn v6 internally and uses that for installing plugins. In theory it should work ok, but in practice, it appears to cause issues and instability. Updating Etherpad's npm to v8 appears to resolve (most of) this issue. It will complain about deprecated switches, but otherwise appears to work fine.

@github-actions github-actions bot removed the Stale No recent activity label Oct 26, 2022
@hikatanguy
Copy link

hikatanguy commented Dec 12, 2022

@JedMeister Thanks for the info. Would you have any hint or link on the how-to update the Etherpad NPM version? I have v9.2.0 on my Debian, but v6.x inside Etherpad and it is causing the same issue as mentioned here.

@JedMeister
Copy link

JedMeister commented Dec 13, 2022

@hikatanguy - I ended up just running Node 14. But I did confirm that updating the internal npm did solve the problem - at least on face value. I didn't "battle test" it.

I don't recall the exact steps, but I did a normal install (under Node 16) but once that was done, I cd'd into the Etherpad dir and somewhere in there (in a bin sub dir IIRC?) you'll find a npm executable (actually, I think it's a symlink. I then ran that to update itself. I'm not super familiar with Node and don't recall the details, but google says that the command should be something like:

./path/to/bin/npm install npm@8

Good luck!

[edit] actually I just had a thought, IIRC the bin/npm was actually a symlink. So fingers crossed, this should find it (assuming Etherpad is installed to /opt/etherpad):

find /opt/etherpad -type l -name npm

@JohnMcLear
Copy link
Member

See #5643

@SamTV12345
Copy link
Member

We can finally close this issue. Everything solved in Etherpad 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants