Comments (9)
Thanks for the detailed issue @vincecao!
Unfortunately I can't seem to reproduce the issue on my local machine.
Some additional questions for you:
- How many times do you run
npm run deploy:twilio-cli -- --override
before the error occurs? - How frequently do you run
npm run deploy:twilio-cli -- --override
? - Does this happen in both MacOS and Windows for you?
- How much RAM and free disk space does your system have?
It's a strange error, and it's hard to tell exactly what is happening. Have you checked google or stackoverflow for info related to the ELIFECYCLE
error code?
from twilio-video-app-react.
I have exactly the same issue, identical logs.
This is my first install (and first attempt at using Twilio -- less than awesome to fail at first hurdle) - onto Ubuntu 18.04 8GB RAM 23GB free disk space.
from twilio-video-app-react.
DDGing ELIFECYCLE - first hit gives me https://stackoverflow.com/questions/30744964/what-does-the-elifecycle-node-js-error-mean
"It's basically saying it fails to spawn your process not due to permission but to an error in your script."
from twilio-video-app-react.
Thanks for the information @patrickomatik and @vincecao!
I suspect that you are both encountering a known issue that has been discussed here: twilio-labs/plugin-rtc#16
If you are interested, you can enable logs to see if you getting the same error message: npm run deploy:twilio-cli -- --override -l debug
.
We have identified the root cause of the issue, and the Serverless team here at Twilio will have a fix out in the next few days. In the meantime, there is a workaround to get things working again.
First, upgrade the Twilio CLI plugin: twilio plugins:update
.
Then, run twilio rtc:apps:video:delete
. The app that was deployed is likely in a corrupt state, and running this command will remove it.
Once the app is deleted, try running npm run deploy:twilio-cli
again. It should deploy without problems.
Good luck, and please let me know if you continue to see problems. Thanks!
from twilio-video-app-react.
This issue has now been fixed by Twilio's Serverless team, so I'll close the issue.
from twilio-video-app-react.
i have the same issue
from twilio-video-app-react.
Hi @gomobishop - We would be happy to help out! Can you please create a new issue and fill out the issue template with all of the relevant details? In order to help, we will need to know more about the exact problem that you face. Thanks!
from twilio-video-app-react.
+1. Having same issue. Is there a workaround for this? Just signed up for a new twilio account and following the documentation lead me to this error.
from twilio-video-app-react.
I'm also having the same issue.
The error message triggering seems to be
Details as follows:
Steps to Reproduce
git clone https://github.com/twilio/twilio-video-app-react
cd twilio-video-app-react
npm install
npm install twilio-cli -g
# Account SID and Auth Token from: https://www.twilio.com/console/
twilio login
twilio plugins:install @twilio-labs/plugin-rtc
npm run deploy:twilio-cli
^ Bug occurs on deploy last step with note:
» twilio-cli encountered an unexpected error. To report this issue, execute the command with the "-l debug" flag, then copy the output to a new issue here: "https://github.com/twilio-labs/plugin-rtc"
Error Output
npm run deploy:twilio-cli -l debug
> [email protected] deploy:twilio-cli /Users/leepowers/work/takeda/video-app/twilio-video-app-react
> cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build "debug"
> [email protected] build /Users/leepowers/work/takeda/video-app/twilio-video-app-react
> node ./scripts/build.js
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
271.8 KB build/static/js/2.4d5918e3.chunk.js
15.15 KB build/static/js/main.431b0198.chunk.js
787 B build/static/js/runtime-main.d9f235a9.js
› Error: EEXIT: 1
› Code: EEXIT
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy:twilio-cli: `cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy:twilio-cli 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:
Debug Log File
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/Cellar/node/14.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'deploy:twilio-cli'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [
4 verbose run-script 'predeploy:twilio-cli',
4 verbose run-script 'deploy:twilio-cli',
4 verbose run-script 'postdeploy:twilio-cli'
4 verbose run-script ]
5 info lifecycle [email protected]~predeploy:twilio-cli: [email protected]
6 info lifecycle [email protected]~deploy:twilio-cli: [email protected]
7 verbose lifecycle [email protected]~deploy:twilio-cli: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~deploy:twilio-cli: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/leepowers/work/takeda/video-app/twilio-video-app-react/node_modules/.bin:/Applications/dart-sass:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle [email protected]~deploy:twilio-cli: CWD: /Users/leepowers/work/takeda/video-app/twilio-video-app-react
10 silly lifecycle [email protected]~deploy:twilio-cli: Args: [
10 silly lifecycle '-c',
10 silly lifecycle 'cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build'
10 silly lifecycle ]
11 silly lifecycle [email protected]~deploy:twilio-cli: Returned: code: 1 signal: null
12 info lifecycle [email protected]~deploy:twilio-cli: Failed to exec deploy:twilio-cli script
13 verbose stack Error: [email protected] deploy:twilio-cli: `cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:314:20)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:314:20)
13 verbose stack at maybeClose (internal/child_process.js:1047:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/leepowers/work/takeda/video-app/twilio-video-app-react
16 verbose Darwin 18.7.0
17 verbose argv "/usr/local/Cellar/node/14.10.0/bin/node" "/usr/local/bin/npm" "run" "deploy:twilio-cli"
18 verbose node v14.10.0
19 verbose npm v6.14.8
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] deploy:twilio-cli: `cross-env REACT_APP_SET_AUTH=passcode npm run build && twilio rtc:apps:video:deploy --authentication=passcode --app-directory ./build`
22 error Exit status 1
23 error Failed at the [email protected] deploy:twilio-cli script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
from twilio-video-app-react.
Related Issues (20)
- twilio-video upgrade HOT 1
- Second participant audio is not playing on first participant screen HOT 2
- WhiteBoard Feature HOT 2
- waiting room HOT 1
- document and present Capability HOT 1
- token generation failed overall but also succeeded intermittently. HOT 1
- Screen sharing audio capabilities and the ability to see your own shared content. HOT 1
- Error when attempting to build local server HOT 1
- The request body is undefined unless we add bodyParser or express.json
- Camera light remains open once user disconnects from the room HOT 6
- Using WebAudio - AudioWorkletProcessors to process Audio Data
- Transcribing calls
- Upgrade security of the app with a token from our server. Passcode gets in the way when the app is deployed. HOT 1
- what is the use of web sockets
- Passcode starting with number '0' causes a bad passcode error.
- A thumbs up appears in the middle of the screen... HOT 1
- Mac OS Safari Screen Sharing performance degrades during recording
- Refactoring of code smells
- can anyone tell me what is the issue in me code
- Download the attachement added in the chat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilio-video-app-react.