Not a bug Rebuild daily statistics

JoyFreak

Well-known member
Affected version
2.3.0
When rebuilding daily statistics I get this error during processing:
Code:
An exception occurred: [XF\Db\Exception] MySQL statement prepare error [2006]: MySQL server has gone away in src/XF/Db/AbstractStatement.php on line 230

XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 207
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 43
XF\Db\Mysqli\Statement->prepare() in src/XF/Db/Mysqli/Statement.php at line 61
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 96
XF\Db\AbstractAdapter->query() in src/XF/Mvc/Entity/Finder.php at line 1417
XF\Mvc\Entity\Finder->fetchOne() in src/XF/Repository/UpgradeCheckRepository.php at line 34
XF\Repository\UpgradeCheckRepository->getLatestUpgradeCheck() in src/XF/Admin/App.php at line 271
XF\Admin\App->renderPageHtml() in src/XF/App.php at line 2552
XF\App->renderPage() in src/XF/Admin/App.php at line 155
XF\Admin\App->renderPage() in src/XF/Mvc/Dispatcher.php at line 414
XF\Mvc\Dispatcher->render() in src/XF/Mvc/Dispatcher.php at line 66
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2777
XF\App->run() in src/XF.php at line 798
XF::runApp() in admin.php at line 15
 
I am getting the same problem with the "Rebuild post embed metadata" option too. It would be rebuilding posts but then the page would randomly go blank even though in the tab it says "Processing". I had to refresh the page a few times and it continued but same thing would happen. Eventually it gave the same error as the above.
 
The original report is likely to be a server configuration issue. It may be worth examining your current MySQL wait timeout.

Just tried and process stuck here:
This will be a separate issue, but I have not been able to reproduce it yet.

But my stats are gone !!
Did you check the option to delete the existing data before rebuilding?

I tried it just now and there was no problem. I marked delete cache
Evet, etkin kullanıcı istatistikleri sıfırlandı
Per the explainer, active user counts cannot be rebuilt retroactively:

1722478451434.webp
 
It shouldn't take that long. Is it progressing at all or is it hung at a certain date? I can rebuild ~14 years of stats in a couple minutes. Do you have any add-ons which add additional stats?
 
It shouldn't take that long. Is it progressing at all or is it hung at a certain date? I can rebuild ~14 years of stats in a couple minutes. Do you have any add-ons which add additional stats?
It seems to be rebuilding through the months and at 30k-ish posts. It seems to be progressing from what I can see but taking so long! Is there a setting I need to set to speed it up?
 
Not really, other than maybe trying a smaller batch size to see if it helps. It could point to broader MySQL server/configuration issues but it's hard to make any particular recommendations.
 
Back
Top Bottom