Installing sample-app-web gives error

The new version (1.7.4, aka the breaking version) seems to overload the inotify watchers limit that is preset on ubuntu.

This seems to resolve the issue:
https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers#the-technical-details

Please follow the instructions at that link, but in case that link doesn’t work, here are the commands to fix it:

# echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
# sudo sysctl -p

Hope this is helpful to someone else.

1 Like

Thanks for posting your solution @ZoomFan! Happy to hear you got it working! :slight_smile:

-Tommy

Hi folks,

I’ve got the error on Ubuntu 18.04-4 LTS with inotify watchers set to 1048576. Is here any other thing that I should consider?

I am using version 1.7.6 sample websdk.

When I was dealing with this installation, I got a lot of errors that all looked similar and had to debug them one at a time. What is the exact error you are getting?

Also, did you look at the debug log file at the end of the error to see if there were any clues in there?

I am getting the same error what you got (12 days ago).

Here is the error debug log file:

0 info it worked if it ends with ok

1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘start’ ]
2 info using npm@6.14.4
3 info using node@v12.16.2
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle websdk-local@1.7.6~prestart: websdk-local@1.7.6
6 info lifecycle websdk-local@1.7.6~start: websdk-local@1.7.6
7 verbose lifecycle websdk-local@1.7.6~start: unsafe-perm in lifecycle true
8 verbose lifecycle websdk-local@1.7.6~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/enrique/projects/sample-app-web/Local/node_modules/.bin:/home/enrique/.local/bin:/home/enrique/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle websdk-local@1.7.6~start: CWD: /home/enrique/projects/sample-app-web/Local
10 silly lifecycle websdk-local@1.7.6~start: Args: [
10 silly lifecycle ‘-c’,
10 silly lifecycle ‘set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch’
10 silly lifecycle ]
11 silly lifecycle websdk-local@1.7.6~start: Returned: code: 1 signal: null
12 info lifecycle websdk-local@1.7.6~start: Failed to exec start script
13 verbose stack Error: websdk-local@1.7.6 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open [http://localhost:9999/index.html](http://localhost:9999/index.html) --watch
13 verbose stack Exit status 113 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:310:20)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:310:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

14 verbose pkgid websdk-local@1.7.6
15 verbose cwd /home/enrique/projects/sample-app-web/Local
16 verbose Linux 4.15.0-96-generic
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “start”
18 verbose node v12.16.2
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error websdk-local@1.7.6 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open [http://localhost:9999/index.html](http://localhost:9999/index.html) --watch
22 error Exit status 1
23 error Failed at the websdk-local@1.7.6 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hey @emadridm,

What script are you running that throws this error?

Did you try what @ZoomFan suggested above?

Checkout this thread:

Thanks,
Tommy

Hi everyone!
I’m getting the same error when trying to install the Local Sample
I’ve followed this link’s instructions.
https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference
I’ve added my key and secret string (Developer Marketplace) on index.js
Then I’ve tried:

npm install @zoomus/websdk@1.7.6

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf

sudo sysctl -p

npm install http-server -g

but I’m still gettings these errors

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.6 https: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https true --open https://localhost:9999/index.html --watch
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-local@1.7.6 https script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-01T19_03_15_092Z-debug.log

Hey @s6pamend,

Can you try just running http-server and navigating to the localhost url?

Thanks,
Tommy

Hi All,

I’m also getting the same error in Ubuntu.

Ubuntu version 18.04.4 LTS

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘start’ ]
2 info using npm@6.14.4
3 info using node@v13.14.0
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle websdk-local@1.7.8~prestart: websdk-local@1.7.8
6 info lifecycle websdk-local@1.7.8~start: websdk-local@1.7.8
7 verbose lifecycle websdk-local@1.7.8~start: unsafe-perm in lifecycle true
8 verbose lifecycle websdk-local@1.7.8~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/anusha/Downloads/Local/Local/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
9 verbose lifecycle websdk-local@1.7.8~start: CWD: /home/anusha/Downloads/Local/Local
10 silly lifecycle websdk-local@1.7.8~start: Args: [
10 silly lifecycle ‘-c’,
10 silly lifecycle ‘set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch’
10 silly lifecycle ]
11 silly lifecycle websdk-local@1.7.8~start: Returned: code: 1 signal: null
12 info lifecycle websdk-local@1.7.8~start: Failed to exec start script
13 verbose stack Error: websdk-local@1.7.8 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:315:20)
13 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:315:20)
13 verbose stack at maybeClose (internal/child_process.js:1026:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid websdk-local@1.7.8
15 verbose cwd /home/anusha/Downloads/Local/Local
16 verbose Linux 5.3.0-53-generic
17 verbose argv “/usr/bin/node” “/usr/bin/npm” “run” “start”
18 verbose node v13.14.0
19 verbose npm v6.14.4
20 error code ELIFECYCLE
21 error errno 1
22 error websdk-local@1.7.8 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
22 error Exit status 1
23 error Failed at the websdk-local@1.7.8 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Hey @smadamshetty,

Please provide steps to reproduce your issue.

Thanks,
Tommy

npm run start

if directly run following command on terminal then it was working

sudo webpack-dev-server --config webpack.config.dev.js --watch

1 Like

Hey @smadamshetty,

Happy to hear you got it working! We will investigate why the script was not working.

Thanks,
Tommy

I have the same issue. I am running Ubuntu 20.04. I tried running the sample app using node 14 and 10. The suggested fix results in the same error.

Traceback:

> websdk-local@1.7.9 start /home/damian/zoom/Local
> set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch

ℹ 「wds」: Project is running at http://0.0.0.0:9999/
ℹ 「wds」: webpack output is served from /static
ℹ 「wds」: Content not from webpack is served from /home/damian/zoom/Local
events.js:291
      throw er; // Unhandled 'error' event
      ^

Error: spawn http://localhost:9999/index.html ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
    at onErrorNT (internal/child_process.js:468:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn http://localhost:9999/index.html',
  path: 'http://localhost:9999/index.html',
  spawnargs: [ 'http://0.0.0.0:9999/' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.9 start: `set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the websdk-local@1.7.9 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/damian/.npm/_logs/2020-07-03T17_02_50_630Z-debug.log

Hey @damian.owerko,

Can you just try opening the index.html file to use the Web SDK?

Thanks,
Tommy

I submitted a Pull Request on Github that fixes this issue: https://github.com/zoom/sample-app-web/pull/24

Can you review this, or direct it to somebody who can?

Hey @roger,

Thanks for contributing to the Web SDK! We will review your pull request. :slight_smile: (CS-2220)

-Tommy

1 Like

The issue only seems to occur with Linux based systems. I can run it fine on my windows machine but it fails on Linux. Is there any official fix yet?

Hey @gautamsharma2590,

This will be addressed in a future release. Thanks again for raising this with us!

Thanks,
Will

Hey @gautamsharma2590, @ZoomFan, @roger, @smadamshetty, @emadridm, @s6pamend, @damian.owerko,

The start script is now fixed in the sample app! :slight_smile:

Thanks,
Tommy

1 Like

Hello, around here I have exactly the same problem, did you manage to fix it?