Error Establishing a Database Connection Error

I’ve noticed that one of my sites goes offline whenever I am making changes in The Hub or running Backups.

I am using a Digital Ocean Droplet and Easy Enginge (Nginx + Redis). Is there away I can have someone take a peek to see where the issue comes from?

I am unable to access WP-Admin when this happens too and the only way to resolve this seems to reboot the server.

  • Predrag Dubajic
    • Support

    Hi Josh,

    Sorry to hear you’re having these issues :slight_frown:

    Can you tell us which other actions except for the backups are causing this?

    Backups do require more resources than usual from your server so it’s possible you’re hitting some limits because of that.

    Can you ask your host to check server logs and see if there’s anything in there that could tell us what’s going on?

    Can you also enable WordPress debug log in your wp-config.php file (located in root WP folder) by replacing define(‘WP_DEBUG’, false); with this code:

    // Enable WP_DEBUG mode
    define('WP_DEBUG', true);

    // Enable Debug logging to the /wp-content/debug.log file
    define('WP_DEBUG_LOG', true);

    // Disable display of errors and warnings
    define('WP_DEBUG_DISPLAY', false);
    @ini_set( 'display_errors', 0 );

    Run the backup process and once it fails it should create debug.log file in your wp-content folder that might tell us what is going on.

    Can you please save it as .txt file and attach it here so we can check it out.

    Best regards,

    Predrag

    • Adam
      • Support Gorilla

      Hi @Nathan!

      You mean “reports” as in activity reports that you’re getting to your e-mail? If so, that shouldn’t be much of an issue as these reports are actually generated on and sent from our end (our servers). Performance scan and seo checkup are also performed by our servers and the plugins (Hummingbird and SmartCrawl, accordingly) are only used to “trigger them” and display information they get from our API (progress bar for example).

      Best regards,

      Adam

  • Predrag Dubajic
    • Support

    Hi Josh,

    You can leave the debug enabled while investigating the issue, but it’s suggested to disable it after we get the errors needed.

    Usually it’s best to have separate development installation for these tests and where debug log could be left enabled.

    Let us know how it goes and what errors you are getting.

    Nathan about this:

    No, I mean the white label reports. When these reports are generated, are they backing up the site, performing scans, etc?

    Reports are checking the status of your site, so it does perform scans but it doesn’t run a backup.

    Automate on the other hand does create a backup of the site before performing update of your plugins/themes, if there are any.

    Best regards,

    Predrag