Barnyard2 Fatal error



  • Cannot get Barnyard2 stay connected.  Here are log entries from that last time Snort could not connect to it:

    Feb 11 11:42:07 barnyard2[46121]: FATAL ERROR: database mysql_error: Can't connect to MySQL server on '10.0.10.53' (60)
    Feb 11 11:40:52 barnyard2[46121]: PID path stat checked out ok, PID path set to /var/run
    Feb 11 11:40:52 barnyard2[46121]: Daemon initialized, signaled parent pid: 45949
    Feb 11 11:40:52 barnyard2[45949]: Daemon parent exiting
    Feb 11 11:40:52 barnyard2[45949]: Initializing daemon mode
    Feb 11 11:40:52 barnyard2[45949]: INFO database: Defaulting Reconnect sleep time to 5 second
    Feb 11 11:40:52 barnyard2[45949]: INFO database: Defaulting Reconnect/Transaction Error limit to 10
    Feb 11 11:40:52 barnyard2[45949]: Barnyard2 spooler: Event cache size set to [2048]
    Feb 11 11:40:52 barnyard2[45949]: Found pid path directive (/var/run)
    Feb 11 11:40:52 barnyard2[45949]: Initializing Output Plugins!
    Feb 11 11:40:52 barnyard2[45949]: Initializing Input Plugins!
    Feb 11 11:40:52 barnyard2[45949]: –== Initializing Barnyard2 ==--
    Feb 11 11:40:52 barnyard2[45949]: 
    Feb 11 11:40:52 barnyard2[45949]: Running in Continuous mode
    Feb 11 11:40:52 barnyard2[45949]: Found pid path directive (/var/run)
    Feb 11 11:40:52 php: /snort/snort_interfaces.php: Toggle (barnyard starting) for WAN3(AT&T DSL- WAN3)…
    Feb 11 11:32:29 barnyard2[37505]: FATAL ERROR: database mysql_error: Can't connect to MySQL server on '10.0.10.53' (60)



  • Got this one resolved.



  • Are you sure that your database server is accepting connections from outside itself? By default MySQL usually only listens to localhost.