YunoHost-Apps / etherpad_mypads_ynh

Etherpad MyPads package for YunoHost
http://etherpad.org/
GNU General Public License v3.0
16 stars 13 forks source link

I can't install/update/uninstall plugins #106

Open mrtpcet opened 4 years ago

mrtpcet commented 4 years ago

Hello !

I think since the last update, I can no longer install, update or uninstall plugins without getting this message :

An error occurred while installing ep_align 
ENOENT: no such file or directory, rename '/var/www/etherpad_mypads/node_modules/.staging/ep_etherpad-lite-629fb491/node_modules/@babel/code-frame' -> '/var/www/etherpad_mypads/node_modules/.staging/@babel/code-frame-525bc192'

Capture d’écran 2020-05-28 à 14 42 02

mrtpcet commented 4 years ago

Sorry, I've just seen the pull request and try to upgrade to the testing branch

mrtpcet commented 4 years ago

No, same error even with the testing version 1.8.4

maniackcrudelis commented 4 years ago

Remove /var/www/etherpad_mypads/src/package-lock.json, or move it if you're not sure. It should fix your issue.

mrtpcet commented 4 years ago

Thanks for your quick answer ! But the issue is still here

maniackcrudelis commented 4 years ago

Arg... I've unfortunately no other solution for you, because I don't know why it doesn't work in the first place... This error already happened, https://github.com/YunoHost-Apps/etherpad_mypads_ynh/issues/90, and that fix solved the issue. Even though not sure why/how...

I didn't find any useful resources about that issue, and the dev of etherpad didn't help to find out... Sorry to not provide any real solution. If you find what the problem is though, it would be interesting to know !

mrtpcet commented 4 years ago

Ok ! Don't worry, I still can use Etherpad. I'll search for a solution too !

mrtpcet commented 4 years ago

So, still in the test build, I upgrade npm in the etherpad_mypads folder with : sudo n stable npm cache clean

I run bin/installDeps.sh I run bin/run.sh

I restart etherpad_mypads service

I delete package-lock.json I delete etherpad_mypads/package-lock.json

And now that's works. I'm not a specialist, so I'm just giving you my experience. !

colmoneill commented 3 years ago

Hi all,

I've been having the same issue described by @mrtpcet

Overall I'm delighted with the implementation and list of pre-installed plugins with this ynh app, but I wanted to remove the ep_automatic_logut plugin because I didn't need it.

Accessing the list of plugins via /admin/ works fine, but when install or uninstall buttons were clicked, nothing happened.

I tried removing the package-lock.json file from /var/www/etherpad_mypads/src but that didn't do it, so I tried the steps described by @mrtpcet above.

The first command seems incomplete to me, so I assumed is was sudo npm stable ? Didn't seem to do anything. The second command cleared the cache.

Running the two scripts in the bin/ folder both returned the following error: Your npm version "3.10.10" is too old. npm 5.5.x or higher is required.

But removing package-lock.json from /var/www/etherpad_mypads AND /var/www/etherpad_mypads/src seemed to do the trick.

I was able to remove the plugin, so I restarted the service, it looks like that step re-created the package-lock.json files.

Now however, I am back in the same situation: I was testing this by trying to add a different plugin and this time I got the following: Screenshot from 2020-10-21 17-31-06

Hope some of the above helps!

Thanks for the app!

All the best,

C