Argema
Member
Hi everyone,
for no reason, last week, our Xen forum got this error and users can no longer write messages or do anything else.
Our setup at the time was: xenforo 2.1, php 7.3.33, mariadb 10.3;
And now we have: xenforo 2.2.8, php 8.0.28, mariadb 10.5.18;
We tried switching the server (dedicated server; cpu AMD EPYC 7313; ram 64gb; disks nvme).
We also tried to disabling crons and addons.
With or without using xf-rebuild.
{Inno db setting}
innodb-flush-method = O_DIRECT
innodb-log-file-size = 4G
innodb_flush_log_at_trx_commit = 2
innodb-file-per-table = 1
innodb-buffer-pool-size = 32G
default-storage-engine =innodb
innodb_autoinc_lock_mode=2
{Log server error (one of them)}
XF\Db\Exception: MySQL query error [1205]: Lock wait timeout exceeded; try restarting transaction src/XF/Db/AbstractStatement.php:230
UPDATE
------------
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1205, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1205, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(324): XF\Db\AbstractAdapter->query('UPDATE `xf_for...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1526): XF\Db\AbstractAdapter->update('xf_forum', Array, '
#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Entity/Thread.php(1404): XF\Mvc\Entity\Entity->save()
#7 src/XF/Entity/Thread.php(1201): XF\Entity\Thread->updateForumRecord()
#8 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\Thread->_postSave()
#9 src/XF/Entity/Post.php(633): XF\Mvc\Entity\Entity->save()
#10 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#11 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\Post->_postSave()
#12 src/XF/Service/Thread/Replier.php(214): XF\Mvc\Entity\Entity->save(true, false)
#13 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\Replier->_save()
#14 src/XF/Pub/Controller/Thread.php(609): XF\Service\Thread\Replier->save()
#15 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#20 src/XF.php(524): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}
for no reason, last week, our Xen forum got this error and users can no longer write messages or do anything else.
Our setup at the time was: xenforo 2.1, php 7.3.33, mariadb 10.3;
And now we have: xenforo 2.2.8, php 8.0.28, mariadb 10.5.18;
We tried switching the server (dedicated server; cpu AMD EPYC 7313; ram 64gb; disks nvme).
We also tried to disabling crons and addons.
With or without using xf-rebuild.
{Inno db setting}
innodb-flush-method = O_DIRECT
innodb-log-file-size = 4G
innodb_flush_log_at_trx_commit = 2
innodb-file-per-table = 1
innodb-buffer-pool-size = 32G
default-storage-engine =innodb
innodb_autoinc_lock_mode=2
{Log server error (one of them)}
XF\Db\Exception: MySQL query error [1205]: Lock wait timeout exceeded; try restarting transaction src/XF/Db/AbstractStatement.php:230
UPDATE
xf_forum
SET message_count
= ?, last_post_date
= ?, last_post_id
= ?, last_post_user_id
= ?, last_post_username
= ? WHERE node_id
= 36------------
#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1205, 'HY000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1205, 'HY000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(324): XF\Db\AbstractAdapter->query('UPDATE `xf_for...', Array)
#4 src/XF/Mvc/Entity/Entity.php(1526): XF\Db\AbstractAdapter->update('xf_forum', Array, '
node_id
= 36')#5 src/XF/Mvc/Entity/Entity.php(1253): XF\Mvc\Entity\Entity->_saveToSource()
#6 src/XF/Entity/Thread.php(1404): XF\Mvc\Entity\Entity->save()
#7 src/XF/Entity/Thread.php(1201): XF\Entity\Thread->updateForumRecord()
#8 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\Thread->_postSave()
#9 src/XF/Entity/Post.php(633): XF\Mvc\Entity\Entity->save()
#10 src/XF/Entity/Post.php(582): XF\Entity\Post->updateThreadRecord()
#11 src/XF/Mvc/Entity/Entity.php(1277): XF\Entity\Post->_postSave()
#12 src/XF/Service/Thread/Replier.php(214): XF\Mvc\Entity\Entity->save(true, false)
#13 src/XF/Service/ValidateAndSavableTrait.php(42): XF\Service\Thread\Replier->_save()
#14 src/XF/Pub/Controller/Thread.php(609): XF\Service\Thread\Replier->save()
#15 src/XF/Mvc/Dispatcher.php(352): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#16 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#17 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\Thread), NULL)
#18 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#19 src/XF/App.php(2483): XF\Mvc\Dispatcher->run()
#20 src/XF.php(524): XF\App->run()
#21 index.php(20): XF::runApp('XF\\Pub\\App')
#22 {main}
Last edited: