Hi,
I am running snort v2.95 -> barnyard2 v2.1.13 -> postgres v9.2. PP v0.7.0
When I set sid_msg_version=2 in pulledpork.conf, barnyard2 bails out when trying to write the reference data on startup.
extract from /var/log/messages:
Aug 21 18:45:58 chris-Linux barnyard2[28264]: [SystemCacheSynchronize()], Call to ReferencePopulateDatabase() failed
Aug 21 18:45:58 chris-Linux barnyard2[28264]: [CacheSynchronize()]:, SystemCacheSyncronize() call failed.
Aug 21 18:45:58 chris-Linux barnyard2[28264]: FATAL ERROR: database [DatabaseInitFinalize()]: CacheSynchronize() call failed ...
Aug 21 18:45:58 chris-Linux barnyard2[28264]: Barnyard2 exiting
Aug 21 18:45:58 chris-Linux barnyard2[28264]: database: Closing connection to database "snort"
I dropped and recreate the database schema to make sure it was empty and tried again - same result.
Setting sid_msg_version=1, then rerunning PP, and the issue goes away i.e. barnyard2 starts up and logs alerts successfully. I'm not sure what the extra benefit of sid_msg_version=2 is as I'm just starting to use snort, so setting it back to 1 is not a problem for me but might be an issue relevant to the developer of PP.
Reading the pulledpork.conf comment
# specify version 2 if you are running barnyard2.2+. Otherwise use 1
confused me as the latest version of barnyard2 I could find on github was v2.1.13. Does it mean barnyard2 v2.2+ or barynard2 v2+in the comment?
Cheers,
Chris