Closed howdyhyber closed 6 years ago
Which version of ROS is that and which version of the GraphQL service? Also, did it work with a previous ROS version?
I used GraphQL version 2.6.0 and ROS 3.6.12, it works in previous version, 3.4.2, we upgraded our server to the latest version, and this is what we experience now.
What command do you use to start ROS? If you used ros init
to initialize a typescript template, can you run npm run start
and paste the output?
We use pm2 to start our ROS, ill provide it in a bit.
Closing this for now as it refers to an outdated version of ROS and there has not been feedback from the user for over a month. Please reopen if the issue resurfaces.
I have encountered an error in ROS with GraphQl. This is the logs
0 info it worked if it ends with ok 1 verbose cli [ '/home/ubuntu/.nvm/versions/node/v8.10.0/bin/node', 1 verbose cli '/home/ubuntu/.nvm/versions/node/v8.10.0/lib/node_modules/pm2/lib/ProcessContainerFork.js', 1 verbose cli 'start' ] 2 info using npm@6.0.1 3 info using node@v8.10.0 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle my-ros-app@1.0.0~prestart: my-ros-app@1.0.0 6 info lifecycle my-ros-app@1.0.0~start: my-ros-app@1.0.0 7 verbose lifecycle my-ros-app@1.0.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle my-ros-app@1.0.0~start: PATH: /home/ubuntu/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ubuntu/spingine/node_modules/.bin:/home/ubuntu/.nvm/versions/node/v8.10.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games 9 verbose lifecycle my-ros-app@1.0.0~start: CWD: /home/ubuntu/spingine 10 silly lifecycle my-ros-app@1.0.0~start: Args: [ '-c', 'npm run build && node dist/index.js' ] 11 silly lifecycle my-ros-app@1.0.0~start: Returned: code: 1 signal: null 12 info lifecycle my-ros-app@1.0.0~start: Failed to exec start script 13 verbose stack Error: my-ros-app@1.0.0 start: (/home/ubuntu/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:283:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (/home/ubuntu/.nvm/versions/node/v8.10.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid my-ros-app@1.0.0
15 verbose cwd /home/ubuntu/spingine
16 verbose Linux 3.13.0-100-generic
17 verbose argv "/home/ubuntu/.nvm/versions/node/v8.10.0/bin/node" "/home/ubuntu/.nvm/versions/node/v8.10.0/lib/node_modules/pm2/lib/ProcessContainerFork.js" "start"
18 verbose node v8.10.0
19 verbose npm v6.0.1
20 error code ELIFECYCLE
21 error errno 1
22 error my-ros-app@1.0.0 start:
npm run build && node dist/index.js
13 verbose stack Exit status 1 13 verbose stack at EventEmitter.npm run build && node dist/index.js
22 error Exit status 1 23 error Failed at the my-ros-app@1.0.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ] ~~