question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't start server after installing plugins

See original GitHub issue

I have just set up etherpad lite on my VPS and everything worked fine out of the box. However, no matter what plugin I tried to install it seems to crash the server instantly after a restart. Uninstalling the plugin through npm uninstall solves the problem, but doing this would mean that I can’t use any plugins. I’m running Ubuntu 16.04 LTS, npm version 3.9.3, and nodejs version 6.2.1.

Here are the error messages:

etherpad@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. Ensure jQuery is downloaded and up to date… Clearing minified cache… Ensure custom css/js files are created… Started Etherpad… [2016-06-11 06:50:05.992] [ERROR] console - (node:30075) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. [2016-06-11 06:50:07.934] [INFO] console - Installed plugins: ep_cursortrace@2.0.15 [2016-06-11 06:50:07.939] [INFO] console - Report bugs at https://github.com/ether/etherpad-lite/issues [2016-06-11 06:50:07.940] [INFO] console - Your Etherpad version is 1.6.0 (44370f1) [2016-06-11 06:50:08.068] [ERROR] console - Error: ENOENT: no such file or directory, stat ‘/home/etherpad/etherpad-lite/node_modules/ep_cursortrace/locales’ at Error (native) at fs.statSync (fs.js:981:18) at extractLangs (/home/etherpad/etherpad-lite/src/node/hooks/i18n.js:21:9) at getAllLocales (/home/etherpad/etherpad-lite/src/node/hooks/i18n.js:44:34) at Object.exports.expressCreateServer as hook_fn at normalizedhook (/home/etherpad/etherpad-lite/src/static/js/pluginfw/hooks.js:15:27) at hookCallWrapper (/home/etherpad/etherpad-lite/src/static/js/pluginfw/hooks.js:21:14) at /home/etherpad/etherpad-lite/src/static/js/pluginfw/hooks.js:76:14 at Function..map..collect (/home/etherpad/etherpad-lite/src/node_modules/underscore/underscore.js:172:24) at Object.exports.callAll (/home/etherpad/etherpad-lite/src/static/js/pluginfw/hooks.js:75:24) [2016-06-11 06:50:08.068] [INFO] console - graceful shutdown… [2016-06-11 06:50:08.068] [INFO] console - db sucessfully closed.

Thanks for your time!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
milan-wcommented, Jun 16, 2016

The problem has been introduced by this commit: https://github.com/ether/etherpad-lite/commit/835bca7967473dc21fa6de4eb56357c92e4f43a3

fs.statSync can’t be used synonymously to fs.exists. fs.statSync throws an exception if the file/direcotry does not exist. See https://blog.raananweber.com/2015/12/15/check-if-a-directory-exists-in-node-js/

1reaction
ghostcommented, Jun 16, 2016

Using the master-branch of etherpad instead of develop seems to work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My Minecraft Server Won't Start - Knowledgebase - Shockbyte
Temporarily rename your plugins directory and restart your server. This will load your server with no plugins, so if this resolves the issue,...
Read more >
Solved - Plugin doesn't load on start - SpigotMC
Your plugin class is loaded before some server functions may be fully initialized, you should do this in onEnable. Next, have you tried...
Read more >
Trouble installing the plug-in? - Microsoft Support
If you still can't install the plug-in, review this list of issues and errors. Plug-in download fails ... Plug-in isn't detected after installation....
Read more >
Solved - Plugins won't Install. Why? | Bukkit Forums
Ok, so when I try to install some plugins to my server. A lot of plugins won't install. Plugins that Installed: SimpleMOTD, KeepXP, ......
Read more >
How to Install Plugins on a Minecraft Java Server - Apex Hosting
If you are trying to manually install plugins to the server but cannot find the plugins folder then either your server does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found