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.

etherpad-lite does not start after update

See original GitHub issue

Describe the bug Missing dependency:

[2021-03-05 09:01:44.433] [ERROR] runCmd|npm - npm ERR! peer dep missing: eslint-plugin-cypress@^2.11.2, required by eslint-config-etherpad@1.0.26
[2021-03-05 09:01:44.473] [ERROR] server - Error occurred while starting Etherpad
[2021-03-05 09:01:44.474] [ERROR] server - Error: Command exited with code 1: npm ls --long --json --depth=0 --no-production
    at exports (/home/user/etherpad-lite/src/node/utils/run_cmd.js:119:25)
    at Object.exports.getPackages (/home/user/etherpad-lite/src/static/js/pluginfw/plugins.js:125:48)
    at Object.exports.update (/home/user/etherpad-lite/src/static/js/pluginfw/plugins.js:99:34)
    at Object.exports.start (/home/user/etherpad-lite/src/node/server.js:140:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
[2021-03-05 09:11:15.493] [INFO] server - Exiting...
[2021-03-05 09:11:15.494] [INFO] server - Waiting for Node.js to exit...
[2021-03-05 09:11:20.493] [ERROR] server - Something that should have been cleaned up during the shutdown hook (such as a timer, worker thread, or open connection) is preventing Node.js from exiting
[2021-03-05 09:11:20.494] [INFO] console - [WTF Node?] open handles:
[2021-03-05 09:11:20.495] [INFO] console - - File descriptors: (note: stdio always exists)
[2021-03-05 09:11:20.496] [INFO] console -   - fd 1 (tty) (stdio)
[2021-03-05 09:11:20.496] [INFO] console -   - fd 2 (tty) (stdio)
[2021-03-05 09:11:20.497] [INFO] console - - Sockets:
[2021-03-05 09:11:20.498] [INFO] console -   - 127.0.0.1:58040 -> 127.0.0.1:3306
[2021-03-05 09:11:20.498] [INFO] console -     - Listeners:
[2021-03-05 09:11:20.499] [INFO] console -       - connect: bound  @ /home/user/etherpad-lite/src/node_modules/mysql/lib/Connection.js:98
[2021-03-05 09:11:20.500] [INFO] console - - Intervals:
[2021-03-05 09:11:20.500] [INFO] console -   - (100 ~ 100 ms) (anonymous) @ /home/user/etherpad-lite/src/node_modules/ueberdb2/lib/CacheAndBufferLayer.js:180
[2021-03-05 09:11:20.501] [INFO] console -   - (10000 ~ 10 s) (anonymous) @ /home/user/etherpad-lite/src/node_modules/ueberdb2/databases/mysql_db.js:62
[2021-03-05 09:11:20.502] [ERROR] server - Forcing an unclean exit...

To Reproduce Steps to reproduce the behavior:

I used 1.8.8 and then went to 1.8.12 using git checkout 1.8.12 and then I ran installDeps.sh.

I tried git checkout 1.8.8, but the error was still there. I had to restore the backup from yesterday, which is on 1.8.8 and I have no idea why that works.

Expected behavior

installDeps.sh installs the deps and etherpad-lite continues to work, just like 1.8.8.

Tried npm i eslint-plugin-cypress, but that did not solve it.

Screenshots

Server (please complete the following information):

  • Etherpad version: from 1.8.8 to 1.8.12
  • OS: [e.g., Ubuntu 20.04] CentOS
  • Node.js version (node --version): v12.19.0
  • npm version (npm --version): 6.14.8

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JohnMcLearcommented, Mar 6, 2021

backup package.json and package-lock.json remove them from your root etherpad folder and try to run.

1reaction
JohnMcLearcommented, Mar 5, 2021

Yea, we have CI in for this too as of about an hour ago, so it shouldn’t happen moving forward 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't start server after installing plugins · Issue #3002 - GitHub
I have just set up etherpad lite on my VPS and everything worked fine out of the box. However, no matter what plugin...
Read more >
etherpad update to 3.4.1 fails, APP not starting - Cloudron Forum
To resolve this, try to run npm i ep_markdown in the webterminal (if it keeps restarting and thus reconnecting, put the app in...
Read more >
etherpad-lite - cloud-infrastructure - CERN GitLab
Update to the latest version with git pull origin , then run bin\installOnWindows.bat , again. If cloning to a subdirectory within another project,...
Read more >
how to update etherpad-lite properly? - node.js - Stack Overflow
The update usually works, but afterwards one of these errors occurs: Plugins can no longer be installed; The service can no longer be...
Read more >
Etherpad v1.8.9 Manual & Documentation
Etherpad v1.8.9 Manual & Documentation. Table of Contents. About this Documentation; Statistics; Localization. Translating; Implementation.
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