We've seen 50 failmails in the past three hours for Ingenico donations that get this error. A sample message is below, in which I've replaced the donor's email address with ***** These process as successful donations at the portal, but don't appear in Civi.
A message was removed from ActiveMQ due to the following error(s):
Error: IMPORT_CONTACT Couldn't store email for the contact. Source: array ( 'error_code' => 'unknown error', 'sql' => 'INSERT INTO civicrm_email (contact_id , location_type_id , email , is_primary , is_billing ) VALUES ( 15756069 , 1 , \'***\' , 1 , 1 ) [nativecode=1205 Lock wait timeout exceeded; try restarting transaction]', 'tip' => 'add debug=1 to your API call to have more info about the error', 'is_error' => 1, 'error_message' => 'DB Error: unknown error', 'debug_information' => 'INSERT INTO civicrm_email (contact_id , location_type_id , email , is_primary , is_billing ) VALUES ( 15756069 , 1 , \'**\' , 1 , 1 ) [nativecode=1205 Lock wait timeout exceeded; try restarting transaction]', )
---Source---
https://civicrm.wikimedia.org/queue/donations-damaged/globalcollect-3781646641