-
Notifications
You must be signed in to change notification settings - Fork 230
ndb wont start #13
Comments
Same exact issue here on Arch Linux ( I tried Node 10.0.7 and 9.11.2 as well as ndb 1.0.0, 1.0.1, 1.0.2, and 1.0.3. |
Ndb uses puppeteer. Most likely this issue is related to pptr issue: puppeteer/puppeteer#290. Could you please try to install all required dependencies and try to launch ndb again? |
@ak239 I checked the troubleshooting link you provided and figured out that this seems to be a sandboxing issue with Puppeteer. DetailsModifying the Puppeteer launch arguments here:Lines 35 to 38 in 97d893c
To include diff --git a/ndb.js b/ndb.js
index 13fa599..6947312 100755
--- a/ndb.js
+++ b/ndb.js
@@ -34,7 +34,8 @@ updateNotifier({pkg: require('./package.json')}).notify();
userDataDir: await setupUserDataDir(configDir),
args: [
'--app=data:text/html,<style>html{background:#242424;}</style>',
- '--enable-features=NetworkService'
+ '--enable-features=NetworkService',
+ '--no-sandbox',
]
}); Enabling sudo sysctl -w kernel.unprivileged_userns_clone=1 |
Thanks a lot! I created PR that added |
This flag may produce error at start on some Linux distributions. At the same time we control what code is executed in browser and expose some capabilities like way to run node process so sandboxing is not as usefull as it is inside Chrome. Fixes #13
fix is available in 1.0.4 and already published to npm 😄 |
@ak239 thanks, it is working now |
Having the same issue in a docker environment. node: 10.7.0 This is the output:
Is there any possibile solution? Thank you 😄 |
Having the same issue as @FedericoBiccheddu with |
Could you try to install all dependencies mentioned in puppeteer thread? RUN apt-get update && \
apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget``` |
Having the same issue as @FedericoBiccheddu with |
After installing the above suggested dependencies, I get:
|
Steps to reproduce
$ npm i -g ndb
$ ndb
Tell us about your environment:
What is the expected result?
ndb to start
What happens instead?
ECONNRESET error
Thanks for this project. Looking forward to try it out!
The text was updated successfully, but these errors were encountered: