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 closes instantly after launch (Ubuntu)

See original GitHub issue

I’ve installed it locally, globally and as a dev dependency but to no avail.

Tell us about your environment:

  • ndb version: 1.1.5
  • Platform / OS version: Ubuntu 22.04 Jammy Jellyfish, window manager: bspwm, compositor: picom
  • Node.js version: 16.15.0

What steps will reproduce the problem?

package.json file { "name": "natours", "version": "1.0.0", "description": "Learning node, express and mongoDB", "main": "app.js", "scripts": { "start": "nodemon server.js", "start:prod": "NODE_ENV=production nodemon server.js", "debug": "ndb server.js" }, "author": "Jonathan Koziel", "license": "ISC", "dependencies": { "dotenv": "^16.0.0", "express": "^4.17.3", "mongoose": "^5.13.14", "morgan": "^1.10.0", "slugify": "^1.6.5", "validator": "^13.7.0" }, "devDependencies": { "eslint": "^8.13.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-prettier": "^8.5.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jsx-a11y": "^6.5.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.29.4", "ndb": "^1.1.5", "prettier": "^2.6.2", "puppeteer-core": "^14.1.1" }, "engines": { "node": ">=10.0.0" } }

What is the expected result? ndb should open and work

What happens instead? ndb opens a window and disappears immediately after. Video:

https://user-images.githubusercontent.com/68497216/169686127-b13dde7a-a50b-497a-ae6f-44d39808ac59.mp4

When I use sudo no window opens but instead i get an error mentioned in a previous issue. Error log: sudo ndb server.js
events.js:291 throw er; // Unhandled ‘error’ event ^

Error: read ECONNRESET at Pipe.onStreamRead (internal/stream_base_commons.js:209:20) Emitted ‘error’ event on Socket instance at: at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21) { errno: ‘ECONNRESET’, code: ‘ECONNRESET’, syscall: ‘read’ }

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
AmritPantcommented, Jul 19, 2022

@j-koziel Welcome

1reaction
j-kozielcommented, Jul 19, 2022

Thanks for the suggestion 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

ndb crashes after launching script · Issue #204 - GitHub
Steps to reproduce: I'm launching ndb with ndb bot. js and it launches, starts the script and crashes, the same when i click...
Read more >
Ndb debugger for node.js won't start - Stack Overflow
Im trying to start the ndb debugger from VS code, but every time i run the "ndb server.js" command, a window opens and...
Read more >
NBD booted clients don't close the connection on shutdown
Temporarily I'm working around the problem by running "nbd-client -d /dev/nbd0; echo o > /proc/sysrq-trigger" in an upstart script, but that's ...
Read more >
Ubuntu Manpage: nbd-client - connect to a server running nbd ...
With nbd-client, you can connect to a server running nbd-server, thus using raw diskspace from that server as a blockdevice on the local...
Read more >
Game Details for STAR WARS: The Old Republic - ProtonDB
51 hours overall11 hours on Linux ... First time launcher worked fine, second launch = no launcher but steam still see ... Just...
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