question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues while running opendatacam

See original GitHub issue

when i run yarn run dev or npm run dev

yarn run v1.12.3
warning package.json: No license field
$ node server.js
Please specify the path to the raw detections file
Process YOLO initialized
Process WebcamStream initialized


 DONE  Compiled successfully in 833ms                            1:56:43 PM

> Ready on http://localhost:8080
> Ready on http://192.168.1.191:8080
Client pings, but there's no entry for page: /
> Building page: /


 DONE  Compiled successfully in 1068ms                           1:56:50 PM



 WAIT  Compiling...                                              1:56:51 PM



 DONE  Compiled successfully in 74ms                             1:56:51 PM

Thu Jan 10 2019 13:56:55 GMT+0530 (India Standard Time) Connection accepted.
WebSocket Client Connected
Filtered out 1 detections that weren't valid classes
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received -55731498
    at checkInt (internal/buffer.js:35:11)
    at writeU_Int32BE (internal/buffer.js:623:3)
    at Buffer.writeUInt32BE (internal/buffer.js:636:10)
    at WebSocketFrame.toBuffer (/media/bintex/ubuntu/yolo/test/lab-opendatacam/node_modules/websocket/lib/WebSocketFrame.js:257:24)
    at WebSocketConnection.sendFrame (/media/bintex/ubuntu/yolo/test/lab-opendatacam/node_modules/websocket/lib/WebSocketConnection.js:857:43)
    at WebSocketConnection.fragmentAndSend (/media/bintex/ubuntu/yolo/test/lab-opendatacam/node_modules/websocket/lib/WebSocketConnection.js:793:14)
    at WebSocketConnection.sendUTF (/media/bintex/ubuntu/yolo/test/lab-opendatacam/node_modules/websocket/lib/WebSocketConnection.js:733:10)
    at Timeout.sendDetection [as _onTimeout] (/media/bintex/ubuntu/yolo/test/lab-opendatacam/server/processes/YOLO.js:102:28)
    at ontimeout (timers.js:436:11)
    at tryOnTimeout (timers.js:300:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tomriddle54commented, Jan 10, 2019

Don’t know why its running without giving PATH_TO_YOLO_DARKNET even conting objects any help i tryed to give my path and webcam and than npm run build What I did
git pull https://github.com/moovel/lab-opendatacam.git

From https://github.com/moovel/lab-opendatacam
 * branch            HEAD       -> FETCH_HEAD
Updating bc444ef..2007f19
Fast-forward
 README.md                 | 10 ++++++++--
 config.json               |  2 +-
 package-lock.json         | 22 ++++++++++++++--------
 package.json              |  4 ++--
 server/counter/Counter.js |  2 +-
 yarn.lock                 | 27 ++++++++++++++++-----------
 6 files changed, 42 insertions(+), 25 deletions(-)
this is your path but its is stll running 
"PATH_TO_YOLO_DARKNET" : "/home/nvidia/darknet-net",
  "VALID_CLASSES": ["*"]

image

1reaction
tomriddle54commented, Jan 10, 2019

Node - v10.15.0 npm -v 6.4.1 here is the log file

1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'dev' ]
2 info using npm@6.4.1
3 info using node@v10.15.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle open-data-cam@0.2.2~predev: open-data-cam@0.2.2
6 info lifecycle open-data-cam@0.2.2~dev: open-data-cam@0.2.2
7 verbose lifecycle open-data-cam@0.2.2~dev: unsafe-perm in lifecycle true
8 verbose lifecycle open-data-cam@0.2.2~dev: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/media/bintex/ubuntu/yolo/test/lab-opendatacam/lab-open-data-cam/node_modules/.bin:/usr/local/cuda-9.2/bin:/home/bintex/anaconda3/bin:/home/bintex/anaconda3/bin:/home/bintex/anaconda3/bin:/home/bintex/anaconda3/bin:/home/bintex/bin:/home/bintex/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
9 verbose lifecycle open-data-cam@0.2.2~dev: CWD: /media/bintex/ubuntu/yolo/test/lab-opendatacam/lab-open-data-cam
10 silly lifecycle open-data-cam@0.2.2~dev: Args: [ '-c', 'node server.js' ]
11 silly lifecycle open-data-cam@0.2.2~dev: Returned: code: 1  signal: null
12 info lifecycle open-data-cam@0.2.2~dev: Failed to exec dev script
13 verbose stack Error: open-data-cam@0.2.2 dev: `node server.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:962:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
14 verbose pkgid open-data-cam@0.2.2
15 verbose cwd /media/bintex/ubuntu/yolo/test/lab-opendatacam/lab-open-data-cam
16 verbose Linux 4.15.0-43-generic
17 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "dev"
18 verbose node v10.15.0
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error open-data-cam@0.2.2 dev: `node server.js`
22 error Exit status 1
23 error Failed at the open-data-cam@0.2.2 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]```
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues while running opendatacam #58 - GitHub
when i run yarn run dev or npm run dev yarn run v1.12.3 warning package.json: No license field $ node server.js Please specify...
Read more >
Jetson Nano | opendatacam - GitHub Pages
Once Opendatacam is installed and running without a monitor, it runs perfectly fine on 5W powermode (which is nice because you can power...
Read more >
OpenDataCam + balena to "Quantify the World" with AI
Learn how to run OpenDataCam on balenaCloud, which adds a number of features to make ... keeping bandwidth low and easing privacy concerns....
Read more >
OpenDataCam 2.0 – User Interface Walkthrough on Vimeo
I will be trying to use this in my home automation project. How many instances can you run on the jetson nano? I...
Read more >
OpenDataCam 3.0 – User Interface Walkthrough (New Features)
The player is having trouble. We'll have it back up and running as soon as possible.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found