Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Barnyard2 Fatal error

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MilesDeep
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • M
        MilesDeep
        last edited by

        Got this one resolved.

        1 Reply Last reply Reply Quote 0
        • F
          fragged
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.