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.

ndb crashes after launching script

See original GitHub issue

Steps to reproduce: I’m launching ndb with ndb bot.js and it launches, starts the script and crashes, the same when i click “start” inside ndb and for example toggle “pause on exceptions” or change tab.

  • ndb version: 1.0.37
  • Platform / OS version: Microsoft Windows [Version 10.0.17134.407]
  • Node.js version: 10.14.1

There seems to be no problem with code since it works on normal node, but when i open it in ndb, then it crashes.

What happens instead?

ndb throws: events.js:167 throw er; // Unhandled ‘error’ event ^

Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed at ChildProcess.target.send (internal/child_process.js:628:16) at Rpc.routeMessage_ (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\rpc\rpc.js:379:9) at page_.exposeFunction.data (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\carlo.js:327:71) at Page._onBindingCalled (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Page.js:516:56) at CDPSession.Page.client.on.event (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Page.js:134:54) at CDPSession.emit (events.js:182:13) at CDPSession._onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Connection.js:216:12) at Connection._onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Connection.js:99:19) at PipeTransport._dispatch (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\PipeTransport.js:65:24) at Socket.PipeTransport._eventListeners.helper.addEventListener.buffer (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\PipeTransport.js:30:64) Emitted ‘error’ event at: at process.nextTick (internal/child_process.js:632:35) at process._tickCallback (internal/process/next_tick.js:61:11)

I’ve tried re-installing ndb, reinstalling all dependencies, reinstalling ms build tools, different flags and stuff. It did work, but lately stopped.

I can add that when this started occuring, the ndb got slow, instead of showing my files immediately, it showed them after 10s, and there are windows popping up, which weren’t before (node.EXE and npm)

Thanks in advance.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:52

github_iconTop GitHub Comments

3reactions
darcyparkercommented, Aug 20, 2019

I had same problem on Debian, and found I had to run:

 sudo sysctl -w kernel.unprivileged_userns_clone=1

https://github.com/GoogleChrome/puppeteer/blob/ff6d2a33f3edb8837bde3ab687c6d06510b5d4de/docs/troubleshooting.md#setting-up-chrome-linux-sandbox

In my case it is for a dev machine, so I am not too worried about changing this option.

3reactions
vaxerskicommented, Dec 8, 2018

reverted to ndb@1.0.13 - everything’s fine.

EDIT: ndb@1.0.17 - still fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

94180: NDBD crash on startup whilst rebuilding ordered indexes
Have tried with an empty cluster (--initial) on all nodes, running the distributed privileges script, then attempting to restart one node. Same ...
Read more >
MySQL NDB Cluster 7.2 Release Notes - Oracle Help Center
ndbmemcache: A memcached server running the NDB engine could crash after being ... The mysql.server script exited with an error if the status...
Read more >
QEMU - ArchWiki
After running the above script (which you may need to do as root to make sure nbd-server is able to access the partition),...
Read more >
Cisco Nexus Data Broker Release Notes, Release 3.3
Copy the script to the following path in the operating system: /etc/init.d/. 5. Start, stop and restart the NDB using the following commands:....
Read more >
crash Command
When crash is run on a running system, you will see a message about the possibility that crash may cause a system crash...
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