scVENUS / PeekabooAV

Peekaboo Extended Email Attachment Behavior Observation Owl
https://peekabooav.de
GNU General Public License v3.0
66 stars 20 forks source link

Add retries for additional database connectivity scenarios #177

Closed michaelweiser closed 3 years ago

michaelweiser commented 4 years ago

is at least two additional scenarios and error codes from mariadb regarding connectivity observed when racing startup during docker-compose up:

peekabooav_1  | peekaboo.daemon - (MainThread) - CRITICAL - Failed to establish a connection to the database at mysql+mysqldb://peekaboo:peekaboo@mariadb/peekaboo: (MySQLdb._exceptions.OperationalError) (2003, "Can't connect to MySQL server on 'mariadb' (111)")
peekabooav_1  | (Background on this error at: http://sqlalche.me/e/13/e3q8)

We should add handling for this condition.