• After I migrated my domain, Burst has been showing this for days: “An upgrade is running in the background, and is currently at 0%. For large databases this process may take a while. Your data will be tracked as usual.” And ChatGPT discovered that burst_upgrade_iteration is missing.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter smhawk2

    (@smhawk2)

    Looking into this further, my ISP reports that the database is too big, and the query times out. There is a good chance the database was corrupted during the recent migration. Is there any way to optimize the database to overcome this issue?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Thanks for the details. The upgrade updates your statistics tables in steps. Your host’s database stops queries that run longer than their time limit, and on a large statistics table one of those steps takes longer than that. The process is then cut off before it can schedule its next step, so it stays at 0%. The missing burst_upgrade_iteration event is a result of that, not the cause, and your database is very likely not corrupted.

    The quickest fix, if you have WP-CLI: run wp option delete burst_db_upgrade_stalled, then wp eval 'do_action("burst_upgrade_iteration");' a number of times until the notice is gone. WP-CLI has no web request time limit.

    Without WP-CLI, we can give you a small mu-plugin that makes the upgrade batches smaller. To see which step is stuck, could you share the Burst section under Tools → Site Health → Info?

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If you don’t have wp cli, you can enable this as an mu-plugin on your site: https://burst-statistics.com/adding-filters-with-mu-plugins-quick-easy/

    It will lower batch sizes so the server has an easier time of it. If it doesn’t work, please share the site health and debug log, or email it to support(at)burst-statistics.com so we can take a look.

    <?php
    /**
    * Temporary: smaller Burst upgrade batches for hosts with a short query timeout.
    * Delete this file once the upgrade notice is gone.
    */
    foreach ( [
    'burst_page_url_id_batch_size',
    'burst_uid_dictionary_batch_size',
    'burst_statistics_uid_id_batch_size',
    'burst_sessions_first_time_batch_size',
    'burst_sessions_has_pageview_batch_size',
    'burst_page_urls_batch_size',
    'burst_statistics_page_id_batch_size',
    'burst_repair_page_ids_batch_size',
    'burst_sessions_source_category_batch_size',
    'burst_sessions_source_category_reclassify_batch_size',
    'burst_sessions_update_hit_source_repair_batch_size',
    ] as $burst_filter ) {
    add_filter( $burst_filter, static fn() => 1000 );
    }
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.