Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2220

[3.3.x] Support Forum • Re: Delete taking forever

$
0
0
First of all, sorry for bump this topic, but it's just what happens to me and its, like me, in phpbb 3.3.11.

Indeed, I have a large forum, when I click to delete a user, it takes a while, and even if it ends up with a 504 (if I am through clouflare, if I deactivate cloudflare, it takes a couple of minutes but the 504 does not appear), like I comment, even if the 504 from cloudflare appears, the process continues in the background and ends up eliminating the user.

The problem is that, during these 2 or 3 minutes that it takes to do it, I cannot access to read any topic, the site index yes, but reading a subforum or if I am in a topic, publishing a response, is impossible for me, I get this error:

Code:

General ErrorSQL ERROR [mysqli]Lock wait timeout exceeded; try restarting transaction [1205]SQLUPDATE phpbb_topics SET topic_views = topic_views + 1, topic_last_view_time = 1713682434 WHERE topic_id = 712379BACKTRACEFILE: (not given by php)LINE: (not given by php)CALL: msg_handler()FILE: [ROOT]/phpbb/db/driver/driver.phpLINE: 1031CALL: trigger_error()FILE: [ROOT]/phpbb/db/driver/mysqli.phpLINE: 202CALL: phpbb\db\driver\driver->sql_error()FILE: [ROOT]/phpbb/db/driver/factory.phpLINE: 353CALL: phpbb\db\driver\mysqli->sql_query()FILE: [ROOT]/viewtopic.phpLINE: 2269CALL: phpbb\db\driver\factory->sql_query()
This is because, when it is deleting the user, it locks the tables, all of them, and we cannot do anything that would increase something (for example, 1 visit in a topic...etc...).

Any possible solution to this?


Edit:
Sometimes this happens to me, I post something after several days of searching and seeing how to solve it, and as soon as I post I see how to solve it... :roll:

If we edit /etc/my.cnf and add this line:
innodb_lock_wait_timeout = 200 (in my case to test I have set the value of 200, but I think that a value of 100 or 120 is enough), for me, the problem of viewing forums, threads and others while I delete a user has disappeared, Posting costs a little more, but the database error no longer appears, which does not look very good to users.

Statistics: Posted by wonder_wonder — Sun Apr 21, 2024 7:08 am



Viewing all articles
Browse latest Browse all 2220

Trending Articles