Jump to content

Recommended Posts

Posted

After checking and double-checking the Barnyard2.conf file which is including the line

'output database: log, postgresql, user=snort password=l0gg3r dbname=snort host=winids sensor_name=WinIDS-Home'

The Barnyard2 configuration test fails with the following result-

ERROR: database Connection to database 'snort' failed

Fatal Error, exiting database: Closing connection to database "snort"

Any suggestions for resolving would be appreciated.

Posted (edited)

Good thought.  However, I took your advice and did DROP DATABASE snort successfully and then created it again. Same result-

The Barnyard2 configuration test fails with the following result-

ERROR: database Connection to database 'snort' failed

Fatal Error, exiting database: Closing connection to database "snort"

Note also:  I can connect to the snort database as user postgres via '\connect snort;'

Any further suggestions for resolving would be appreciated.

Edited by scowles
Posted

Looks like a user authentication problem. Try logging into the database manually using user snort . That is the authentication Barnyard2 uses. If that fails the drop the user snort and create it again.

Posted (edited)

This has NOT been resolved by correcting configuration errors. Barnyard2 fails with "ERROR: database connection to database 'snort' failed

Barnyard2 exiting

database: Closing connection to database "snort"

Postresql Error Msg.docx

Edited by scowles
Attached error msg from Creating Postgresql password
  • 10 months later...
  • 1 year later...
Posted

It appears the snort database has a problem or authentication.

Go into the task manager and kill the Barnyard2 process.

Go into the uninstall programs and remove postgresql.

Go into the d:\winids folder and delete the postgresql folder.

Return to the tutorial section labeled Installing the PostgreSQL Database Server and complete.

Go to the tutorial section labeled Configuring the PostgreSQL Database Server and complete.

Go to the tutorial section labeled Confirming PostgreSQL and Snort are operational and complete.

Go to the tutorial section labeled Testing the Barnyard2 configuration file and complete.

This should fix the problem.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...