mushorg / glastopf

Web Application Honeypot
http://glastopf.org
560 stars 168 forks source link

Events not being logged to database #185

Closed bond-alexander closed 10 years ago

bond-alexander commented 10 years ago

Glastopf was working fine last week, but beginning on 7/26 it is no longer logging attacks to the events database. Test attacks are showing up in glastopf.log properly, but it's not ending up in the mysql database. The only errors appearing in glastopf.log are honeycloud connection timeouts, because honeycloud is currently down. The mysql service is running and there's nothing in the mysql.err log or syslog.

Could things be breaking because honeycloud is down? If not that, what else could be wrong?

johnnykv commented 10 years ago

Is hpfeeds enabled on your setup? If so, try and disable it and check if that is a viable workaround.

johnnykv commented 10 years ago

Just reviewed the code, and as far as i can see main db (sql) logging should not be affected by errors in auxiliary loggers(hpfeeds, syslog, etc). Please provide detailed log output from glastopf (start it with the -v switch).

johnnykv commented 10 years ago

Oh wait, hang on @bond-alexander... No need to send the log output - i just identified the issue and are able to reproduce.

johnnykv commented 10 years ago

please try the latest from repo, just committed a workaround.

bond-alexander commented 10 years ago

Now it works. Thanks!