Skip to content

Instantly share code, notes, and snippets.

@jdangerx
Created January 14, 2016 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdangerx/3cd760c163e4392c79bb to your computer and use it in GitHub Desktop.
Save jdangerx/3cd760c163e4392c79bb to your computer and use it in GitHub Desktop.
Doorbot Debug 1/14/2016
  • node.js was segfaulting; we tried installing a bunch of different versions, blasted the original out of /usr/local/bin, eventually reinstalled original package (node version 0.12.6), and the segfault was gone...

  • originally thought that kill()`` in index.js` wasn't properly killing the process

  • used iptables firewall rules to block and unblock doorbot.recurse.com, while using tcpdump and strace to monitor the heartbeat calls

  • when we block the heartbeat calls, doorbot does exit and forever does start it back up again.

  • next time it disconnects and the process is still running, we should check tcpdump and strace to see if it's still sending out heartbeats.

  • we have fiewall rules in ~/firewall.sh - you can block requests to doorbot.recurse.com with sudo ./firewall.sh up and allow them again with sudo ./firewall.sh down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment