Dragon pulse not working

96boards

#1

Hi ,

The dragon pulse is not working . Please see details below.
Please provide what is missing and technical inputs


ttaching policy DragonPulse to principal for thing 1203384677044c49859afb94da8513d1

Detected 1203384677044c49859afb94da8513d1 as Thing ID

***Installing Certificates for the Device…
***Building Client…
npm WARN aws-iot-thing-sdk-dragonpulse-js@1.0.0 license should be a valid SPDX license expression

up to date in 2.885s
################################################

Build Complete

################################################

Access your DragonPulse API Gateway here: https://8w41e9qtuc.execute-api.us-east-2.amazonaws.com/dev

Access your DragonPulse Dashboard here: http://dragonpulse-pulsetester2.s3-website-us-east-2.amazonaws.com

root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonpulse-js/scripts# cd …
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonpulse-js# cd DragonBoard/
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard# sudo npm start

aws-iot-thing-sdk-dragonpulse-js@1.0.0 start /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard
node src/app.js

running general information task
{“thingId”:“1203384677044c49859afb94da8513d1”,“timestamp”:1515406750547,“deviceType”:“DragonBoard”,“os”:“linux”,“osVariant”:“Debian”,“osVersion”:“9.2”,“build”:“4.9.56-linaro-lt-qcom”,“architecture”:“aarch64”}
events.js:183
throw er; // Unhandled ‘error’ event
^

Error: write EPROTO 281473238282240:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:…/deps/openssl/openssl/ssl/s3_pkt.c:1500:SSL alert number 46
281473238282240:error:1409E0E5:SSL routines:ssl3_write_bytes:ssl handshake failure:…/deps/openssl/openssl/ssl/s3_pkt.c:659:

at _errnoException (util.js:1022:11)
at WriteWrap.afterWrite [as oncomplete] (net.js:867:14)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! aws-iot-thing-sdk-dragonpulse-js@1.0.0 start: node src/app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aws-iot-thing-sdk-dragonpulse-js@1.0.0 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! /root/.npm/_logs/2018-01-08T10_19_13_680Z-debug.log
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard#

debug log below:

0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’ ]
2 info using npm@5.6.0
3 info using node@v8.9.4
4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ]
5 info lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~prestart: aws-iot-thing-sdk-dragonpulse-js@1.0.0
6 info lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: aws-iot-thing-sdk-dragonpulse-js@1.0.0
7 verbose lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: CWD: /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard
10 silly lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: Args: [ ‘-c’, ‘node src/app.js’ ]
11 silly lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: Returned: code: 1 signal: null
12 info lifecycle aws-iot-thing-sdk-dragonpulse-js@1.0.0~start: Failed to exec start script
13 verbose stack Error: aws-iot-thing-sdk-dragonpulse-js@1.0.0 start: node src/app.js
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285: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. (/usr/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 aws-iot-thing-sdk-dragonpulse-js@1.0.0
15 verbose cwd /home/linaro/Documents/arrow/aws-iot-dragonpulse-js/DragonBoard
16 verbose Linux 4.9.56-linaro-lt-qcom
17 verbose argv “/usr/bin/node” “/usr/bin/npm” "start"
18 verbose node v8.9.4
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error aws-iot-thing-sdk-dragonpulse-js@1.0.0 start: node src/app.js
22 error Exit status 1
23 error Failed at the aws-iot-thing-sdk-dragonpulse-js@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 ]


#2

@dieter, @billdavies : Have you got any clues on this? I can see its an SSL error but I have no idea what certificates are used or needed when connecting to AWS.