Git Product home page Git Product logo

webmon's People

Contributors

manzt avatar pwinston avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

manzt sofroniewn

webmon's Issues

Webmon needs to exit when napari goes away

I've made a few attempts to try to get webmon to exit when napari exits.

There is a shared "shutdown" event which napari signals. But typically we get ConnectionResetError instead because napari goes away right after signaling the event.

Which is fine, either way we know napari is gone.

But once that happens I've tried even calling sys.exit() or signaling the webmon-side with a self.running flag. Yet I still kept seeing webmon processes hanging around.

The docs for SocketIO stop() say "This method must be called from a HTTP or SocketIO handler function" so how can MonitorClient arrange that?

I've been running pkill -f webmon a lot.

It would be nice if these processes always went away on their own. If there are extra webmon processing around then often the Web app seems dead. I think it stays connecting the wrong webmon.

Image Hosting

Images posted here can be linked-to in the README.

No bloating the repo with binary images.

Unless GitHub changes their policies.

Screen Shot 2020-12-01 at 10 56 29 PM

napari-graphs

Screen Shot 2020-12-01 at 11 07 46 PM

socketio-version

dask-webmon

webmon-graphs

build failure error code ELIFECYCLE

tried to install by following the instructions and got this error from make build :
very likely a beginner error with my environment, but any pointers would help!

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle @~prebuild: @
6 info lifecycle @~build: @
7 verbose lifecycle @~build: unsafe-perm in lifecycle true
8 verbose lifecycle @~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/brian/work/webmon/js/node_modules/.bin:/Users/brian/anaconda2/envs/starfish/bin:/Users/brian/anaconda2/condabin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
9 verbose lifecycle @~build: CWD: /Users/brian/work/webmon/js
10 silly lifecycle @~build: Args: [ '-c', 'node build' ]
11 silly lifecycle @~build: Returned: code: 1  signal: null
12 info lifecycle @~build: Failed to exec build script
13 verbose stack Error: @ build: `node 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 emitTwo (events.js:126:13)
13 verbose stack     at EventEmitter.emit (events.js:214:7)
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 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 @
15 verbose cwd /Users/brian/work/webmon/js
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
18 verbose node v8.11.1
19 verbose npm  v6.14.9
20 error code ELIFECYCLE
21 error errno 1
22 error @ build: `node build`
22 error Exit status 1
23 error Failed at the @ build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

socketio not connecting

Running webmon.py by itself, not from napari. When a browser pulls down /viewer it seems like some socketio stuff is happening but no socketio handlers are called in JS or in Python.

Webmon should log "connect" and "Creating background thread" and viewer should log "input_data_response" in the browser.

(napari39) โžœ  webmon git:(main) python webmon.py
INFO:webmon:Logging to console.
INFO:webmon:Webmon: Starting process 94975
INFO:webmon:Webmon: args ['webmon.py']
INFO:webmon:Webmon: Serving http://localhost:5000/ 
NapariClient: NAPARI_MON_CLIENT not defined
ERROR:webmon:NapariClient not created.
(94975) wsgi starting up on http://0.0.0.0:5000
(94975) accepted ('127.0.0.1', 54640)
(94975) accepted ('127.0.0.1', 54642)
127.0.0.1 - - [29/Nov/2020 15:28:15] "GET /viewer HTTP/1.1" 200 432 0.003922
127.0.0.1 - - [29/Nov/2020 15:28:15] "GET /static/bundle.js HTTP/1.1" 200 671708 0.007435
127.0.0.1 - - [29/Nov/2020 15:28:15] "GET /socket.io/?EIO=4&transport=polling&t=NOLiHHe HTTP/1.1" 200 371 0.000614
127.0.0.1 - - [29/Nov/2020 15:28:15] "GET /favicon.ico HTTP/1.1" 404 380 0.000565
127.0.0.1 - - [29/Nov/2020 15:28:16] "GET /socket.io/?EIO=4&transport=polling&t=NOLiHV3 HTTP/1.1" 200 371 0.000331
127.0.0.1 - - [29/Nov/2020 15:28:17] "GET /socket.io/?EIO=4&transport=polling&t=NOLiHqz HTTP/1.1" 200 371 0.000289
127.0.0.1 - - [29/Nov/2020 15:28:22] "GET /socket.io/?EIO=4&transport=polling&t=NOLiJ3A HTTP/1.1" 200 371 0.000391

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.