Warning to A2 Hosting Account Holders regarding files excluded with server backup utility

Created on 17 July 2023, 12 months ago
Updated 3 January 2024, 6 months ago

Problem/Motivation

First off, this issue probably should be posted in a more general Drupal queue, but in as much as the situation occurred on two OS sites, I provide it here!

As a client of A2 Hosting for two production websites, one of which is an Open Social distribution that I am now way behind in keeping current, I attempted to do composer update -W updates on two development versions I have in subdomains on the same server. Both failed, and the sites crashed... (more on that in a separate posting)

I had become so reliant on their "Server Rewind" utility in order to recover crashes of this type in the past that I (foolishly) neglected to make my own hard backups of the files and database.

When I went into my Control Panel to recover the crashed data, I could no longer find the Server Rewind link, but with the help of a low lever tech discovered that they have replaced that utility with a program called "JetBackup 5".

Long story short (covering two weeks of back and forth tech support) I discovered that this backup/recovery utility has certain exceptions set by key words and wildcard paths that exclude multiple files that are part of Drupal Core and specifically *cache* which eliminated the following folder's contents from being backed up: /core/modules/views/src/Plugin/views/cache/ which hold 5 files that are critical and without them produce the following error codes:

The website encountered an unexpected error. Please try again later.
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "tag" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: search_api_tag, search_api_time in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php)............

However, the incomplete recovery will still afford you Administrative Access, so you will be able to perform certain functions!

Here are the files or path that would be excluded from the backups by default, with a list of files or folders, that would not be backed up.

  • /etc/*/passwd
  • /etc/*/shadow
  • /etc/*/quota
  • /etc/*/@pwcache
  • /mail
  • /.cl.selector
  • /.cagefs
  • /.cpanel/email_accounts_count
  • /.cpanel/email_accounts.json

Also see attached exclusions in image form

So, anyone who does have their websites hosted on A2 Hosting, please beware! If you are going to use the JetBackup 5 utility, you will need to upload the files from the /core/modules/views/src/Plugin/views/cache/ folder and clear caches in order to recover your website.

Or, of course... do your own backups and recoveries and move on from there!

Steps to reproduce

Don't even try!

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: works as designed

Version

11.3

Component

Other

Created by

πŸ‡ΊπŸ‡ΈUnited States bas123

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bas123
  • πŸ‡¬πŸ‡§United Kingdom webhostuk

    Did this occur on cPanel/WHM Server? Can you share which OS you had on the server?

  • πŸ‡ΊπŸ‡ΈUnited States bas123

    @webhostuk β†’
    I believe it is a cPanel/WHM Server due to the fact that I have two accounts (different servers) that I have access to via the main login screen.
    These accounts are accessed via separate cPanel Logins

    Here is the server information:

    Hosting Package Turbo Max 2020
    Server Name az1-ts5
    cPanel Version 110.0 (build 8)
    Apache Version 2.4.57
    MySQL Version 10.3.36-MariaDB-cll-lve
    Architecture x86_64
    Operating System linux
    Perl Version 5.16.3
    Kernel Version 4.18.0-372.19.1.lve.el7h.x86_64

  • πŸ‡ΉπŸ‡·Turkey RgnYLDZ

    I think I have a similar problem. I recently did backup my site with jetbackup on a2hosting.

    I looked at the files you mentioned and they were there (guess they fixed it) but I got another kind of error. The reason I wanted to revert to a previous backup was that drupal somehow for my products did not print the correct twig view-mode template I specified inside views but rather the default dipslay. This happens after I clear my cache.

    when I do revert back I get the same error;

    Drupal\Component\Plugin\Exception\PluginNotFoundException: The "tag" plugin does not exist. Valid plugin IDs for Drupal\views\Plugin\ViewsPluginManager are: search_api_tag, search_api_time in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

    I got back from my own backups but the template thing still is there to sort out.

  • πŸ‡ΊπŸ‡ΈUnited States bas123

    @RgnYLDZ β†’ If you look at the list of excluded words, I/they provided, any files with those wildcards are not backed up. In my case, the wildcard was *cache*.

    I doubt that they fixed that for what should be obvious reasons as the exception list comprises words that they feel (especially with WordPress sites) are not essential to the functioning of the CMS and therefore will slow down the process of backing up all of their account holder's websites on a daily basis

    However, if you are having issues with the Jetbackup utility in their cPanel, I recommend that you open a ticket and explain the problem. If the answers are not satisfactory, then ask that your issue be referred to an Advanced Tech Support Specialist and reiterate that the issue is not CMS related but has been caused by the backup utility they provide.

    A2's tech support and primary focus is on WordPress users and accordingly, their front line support staff primarily is trained in that CMS. Typically, you must work with the more experienced support specialists in order to get answers from someone knowledgeable in Drupal.

  • πŸ‡ΊπŸ‡ΈUnited States tawellman

    I can confirm that this is in fact the case with A2Hosting. I also got reliant on their "Server Rewind" utility, and have had a couple issues with the "Jetbackup 5" program not backing up key files. The site I am currently working on also relies on a symlink that gets deleted when I use their Restore.

    Today was the first time I ran into this particular problem. Lost several hours of progress because of it and the Serial module. Lessons learned!

    Thank You @bas123 for posting this! It helped me find the files that A2Hosting was blaming me for loosing.

  • Status changed to Closed: works as designed 6 months ago
  • πŸ‡³πŸ‡±Netherlands Kingdutch

    Thanks for sharing with others Bas. I'm closing this issue since there's no actual action for Open Social to take here and this is fully out of our control.

    Do remember that the files you mentioned (as long as they're not custom created by you) can easily be reinstalled in the correct version as long as you have the recovered composer.json and composer.lock files which allow you to install a local copy of the exactly used version.

Production build 0.69.0 2024