We're seeing a *lot* of deadlock errors in PSQL. These are written to the GUI, and when tailing the postgresql log file, we're seeing loads of these:
Code: Select all
DETAIL: Process 11410 waits for ShareLock on transaction 7985885; blocked by process 14847.
Process 14847 waits for ShareLock on transaction 7985803; blocked by process 11410.
Process 11410: UPDATE xi_options SET value='1359117361' WHERE name='ccm_last_update'
Process 14847: UPDATE xi_options SET value='1359117381' WHERE name='ccm_last_update'
HINT: See server log for query details.
STATEMENT: UPDATE xi_options SET value='1359117361' WHERE name='ccm_last_update'
ERROR: deadlock detected
DETAIL: Process 15764 waits for ShareLock on transaction 7985896; blocked by process 14898.
Process 14898 waits for ShareLock on transaction 7985991; blocked by process 15764.
Process 15764: UPDATE xi_options SET value='1359117408' WHERE name='ccm_last_update'
Process 14898: UPDATE xi_options SET value='1359117385' WHERE name='ccm_last_update'
HINT: See server log for query details.
STATEMENT: UPDATE xi_options SET value='1359117408' WHERE name='ccm_last_update'
ERROR: deadlock detected
DETAIL: Process 14786 waits for ShareLock on transaction 7986027; blocked by process 11448.
Process 11448 waits for ShareLock on transaction 7986030; blocked by process 14786.
Process 14786: UPDATE xi_options SET value='1359117411' WHERE name='ccm_last_update'
Process 11448: UPDATE xi_options SET value='1359117411' WHERE name='ccm_last_update'
HINT: See server log for query details.
STATEMENT: UPDATE xi_options SET value='1359117411' WHERE name='ccm_last_update'We're also frequently seeing 'cannot connect to database' errors when using CCM pages. I've done a repair of the MySQL database, but this seems to be more of a PostgreSQL issue with the nagiosxi database.
This is massively visible to our business, as the errors (all referring to ccm_last_update / deadlocks) are appearing all over the web interface too.
Can you please advise?
Many thanks,
Gavin