google / stenographer

Stenographer is a packet capture solution which aims to quickly spool all packets to disk, then provide simple, fast access to subsets of those packets. Discussion/announcements at stenographer@googlegroups.com
Apache License 2.0
1.79k stars 238 forks source link

No such device exception seen while running install.sh on Ubuntu 18.04 #215

Open guluuu3 opened 5 years ago

guluuu3 commented 5 years ago

Seeing following error while running Stenographer install.sh

Nov 20 07:50:43 ip-172-31-18-102 stenographer[25641]: 2019-11-20T07:50:43.528685Z T:225257 [stenotype.cc:606] CHECK(SUCCEEDED(__check_success_error__)) builder.Bind(flag_iface, &v3): No such device#012ABORTABORTABORT
Nov 20 07:50:43 ip-172-31-18-102 stenographer[25641]: /usr/bin/stenotype(+0x70b0) [0x55b4096760b0]#012/usr/bin/stenotype(+0x2219a) [0x55b40969119a]#012/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7f7b20ed0b97]#012/usr/bin/stenotype(+0x45fa) [0x55b4096735fa]
Nov 20 07:50:43 ip-172-31-18-102 stenographer[25641]: 2019/11/20 07:50:43 Stenotype stopped after 744.78279ms: stenotype wait failed: signal: aborted (core dumped)
Nov 20 07:50:43 ip-172-31-18-102 stenographer[25641]: 2019/11/20 07:50:43 Stenotype ran for too little time, crashing to avoid stenotype crash loop

Here is how my config file looks -

{
  "Threads": [
    { "PacketsDirectory": "/etc/stenographer/packets"
    , "IndexDirectory": "/etc/stenographer/index"
    }
  ]
  , "StenotypePath": "/usr/bin/stenotype"
  , "Interface": "eth0"
  , "Port": 1234
  , "Host": "127.0.0.1"
  , "Flags": ["-v"]
  , "CertPath": "/etc/stenographer/certs"
}
guluuu3 commented 5 years ago

Resolved by changing the Interface from eth0 to ens3

{
  "Threads": [
    { "PacketsDirectory": "/etc/stenographer/packets"
    , "IndexDirectory": "/etc/stenographer/index"
    }
  ]
  , "StenotypePath": "/usr/bin/stenotype"
  , "Interface": "ens3"
  , "Port":8000
  , "Host": "127.0.0.1"
  , "Flags": ["-v"]
  , "CertPath": "/etc/stenographer/certs"
}