Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to debug Cowrie randomly crashing? #1176

Closed
ranguli opened this issue Aug 14, 2019 · 3 comments
Closed

Best way to debug Cowrie randomly crashing? #1176

ranguli opened this issue Aug 14, 2019 · 3 comments

Comments

@ranguli
Copy link

ranguli commented Aug 14, 2019

Describe the bug
I check in on my honeypot every so often to find out that it's gone down for quite some time. it'll almost always be down when I go to check in on it after more than a few days. I'm looking for ideas on how to pinpoint what is causing it to crash.

To Reproduce
Trying to figure out how to reproduce, looking for ideas on debugging it

Expected behavior
Cowrie process stays active and does not crash / die.

Server (please complete the following information):

  • Ubuntu 18.04.2 LTS
@mzfr
Copy link
Contributor

mzfr commented Aug 14, 2019

Checking the log files is the best way to figure out what might have caused the crash. If you see anything unusual something that shouldn't have caused the crash then let us know about it.

@micheloosterhof
Copy link
Member

micheloosterhof commented Aug 20, 2019

So the log files is where to start, and you can increase the debug level at the Twisted levels as well, I think. But after that you'll have to go to the code level.

To do the debug in Twisted, run twistd with the spew option:

      --spew           Print an insanely verbose log of everything that happens.
                       Useful when debugging freezes or locks in complex code.

@mzfr
Copy link
Contributor

mzfr commented Oct 8, 2019

@micheloosterhof Should we close this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants