nearform / autopsy

dissect your dead node services with mdb via a smart os vm
89 stars 9 forks source link

autopsy core hangs at `waiting for token to indicate ready state` #6

Open dnwe opened 8 years ago

dnwe commented 8 years ago

mdb.js is expecting to see C++ symbol demangling enabled as the last line of output from ::load v8 , but this doesn't appear to be output anymore on recent versions of smartos, and so autopsy just hangs as it never sees the matching output

lib/mdb.js#L91-L93

Current output from smartos

> ::load v8
mdb_v8 version: 1.1.2 (dev)
V8 version: 4.5.103.35
Autoconfigured V8 support from target
> ::jsstack

(output from older version of smartos)

mdb_v8 version: 1.0.0 (dev)
V8 version: 4.5.103.30
Autoconfigured V8 support from target
C++ symbol demangling enabled
kjohnstoncbt commented 8 years ago

I am getting the same behavior.

missyjcat commented 8 years ago

Me too.

davidmarkclements commented 8 years ago

That was always going to be a brittle approach, i'll take a PR for this but short on time to fix,

In the meantime, you can start the vm with virtualbox, ssh to localhost port 2222 and go to /root and you'll find the node and core file that autopsy will have uploaded (via scp). Then then in the vm run mdb node core then ::load v8

pascalopitz commented 7 years ago

Same issue still. Then, doing ::load v8 with node 6.9.x flags a bunch of errors. How are you building the assets?

phye commented 7 years ago

Any updates for this issue? Doing ::load v8 results in 'v8' not found

OS: Mac OS X node: 7.4.0 via homebrew

> ::load v8
mdb: no module 'v8' could be found
appdlh commented 7 years ago

Same here... autopsy hangs, and get the same error trying the workaround :-/

ischyron commented 6 years ago

OSX

same. waiting for token to indicate ready state.

 autopsy:mdb opening connection +0ms
  autopsy:connect creating connection to ssh root@localhost:2222 +2ms
  autopsy:mdb setting stdio to raw mode +7ms
  autopsy:mdb ssh is ready +84ms
  autopsy:mdb cleaning up previous files +0ms
  autopsy:mdb successfully cleaned up +173ms
  autopsy:mdb opening session +0ms
  autopsy:mdb copying node binary and core dump files +8ms
  autopsy:mdb copying node +1ms
  autopsy:connect scp copying node into vm at /root +0ms
  autopsy:mdb copying 1st.core.3385 +1ms
  autopsy:connect scp copying 1st.core.3385 into vm at /root +0ms
node [=========================================>] 100.0% of 598 B

  autopsy:mdb files successfully copied +2ms
  autopsy:mdb entering mdb shell +0ms
  autopsy:mdb loading v8 mdb debug module +1ms
  autopsy:mdb waiting for token to indicate ready state +0ms
txbm commented 6 years ago

same exact.