> Source: [sk180579](https://support.checkpoint.com/results/sk/sk180579)

# sk180579 - Gaia Snapshot fails in Gaia Portal, but works in Gaia Clish

| Property | Value |
|----------|-------|
| Solution ID | sk180579 |
| Date Created | 2023-02-03 |
| Last Modified | 2023-02-05 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server |
| Versions | R81.10 (EOS), R81 (EOS), R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * Gaia Snapshot fails in Gaia Portal ("Maintenance" section \> "Snapshot Management" page) - after you click the "New" button, the progress gets to 100%, but the snapshot file is never created.

* If you click the "New" button again in Gaia Portal, the progress does not even start.

  There are no errors or other messages in Gaia Portal.
* If you try to create a Gaia snapshot in Gaia Clish after the failure in Gaia Portal, the "`add snapshot-onetime`" (R81 and higher) / "`add snapshot`" (R80.40 and lower) command fails with this error:

  `"NMSNAP9999 snapshot: another backup is currently in execution. Please try again in a few moments."`
* The */var/log/CPbackup.elg* file contains these messages:

  ```
  pigz: write error code 28
  pigz: abort: write error on 
  tar: snap_log_backup.tgz: Wrote only 2048 of 10240 bytes
  tar: Error is not recoverable: exiting now
  [DATE TIME]: Info: 'gaia_snapshot': Execution Failed. 
  [DATE TIME]: Info: 'unlock': Removing 
  [DATE TIME]: Error: 'change_to_root_dir': Cannot change to directory /mnt/backup
  : No such file or directory
  [DATE TIME]:
  Info: 'main' : <<<< END
  ```

* Following [sk100403](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk100403) to remove the temporary lock files solves this issue only one time.

  The next time, the same issue occurs in Gaia Portal.

## Cause

The */var/log/AutoUpdater/AutoUpdater/* folder is not configured in the exclusion list in the */var/CPsnapshot/schemes/au.cpbak* snapshot scheme.

## Solution

This problem was fixed. The fix is included starting from:

* [Check Point R81.20](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk173903)
* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 75
* [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 72
* [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 180

Check Point recommends to always upgrade to the [Recommended version](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk95746) ([Security Gateway](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=downloads&product=435) / [VSX](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=downloads&product=359) / [Security Management Server](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=downloads&product=184) / [Multi-Domain Security Management Server](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=downloads&product=166) / [SmartConsole](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=downloads&product=191)).

<br />

**If you do not wish to upgrade, this workaround is available:**

1. Connect to the command line on Gaia.

2. Log in to the Expert mode.

3. Add the required section in the *au.cpbak* file:

   1. Back up the current scheme file:

      `cp -v /var/CPsnapshot/schemes/au.cpbak{,_BKP}`
   2. Edit the current scheme file:

      `vi /var/CPsnapshot/schemes/au.cpbak`
   3. Below this section:

      > ```
      > <INCLUDE_SNAPSHOT_FILES>
      > /var/log/BKPAutoUpdater
      > </INCLUDE_SNAPSHOT_FILES>
      > ```

      Add this section:
      >
      > ```
      > <EXCLUDE_SNAPSHOT_FILES>
      > /var/log/BKPAutoUpdater/AutoUpdater
      > </EXCLUDE_SNAPSHOT_FILES>
      > ```

   4. Save the changes in the file and exit Vi editor.

4. Delete the lock file from the previous Gaia snapshot (see [sk100403](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk100403)):

   `rm -i /tmp/.lock.backup_restore`
5. Unmount the snapshot backup directory (if it exists):

   `umount /mnt/backup`
6. Delete all files inside the snapshot backup directory (if it exists):

   `rm -rf /mnt/backup`
7. Delete all files inside the */var/log/BKPAutoUpdater/* directory:

   `rm -rf /var/log/BKPAutoUpdater`

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
