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

# sk175509 - "/opt/CPcme/installation/CME_install.sh: No such file or directory" error and CME installation fails

| Property | Value |
|----------|-------|
| Solution ID | sk175509 |
| Date Created | 2021-09-28 |
| Last Modified | 2021-09-30 |
| Technical Level | Advanced |
| Products | Security Management Server, Cloud Firewall, Multi-Domain Security Management Server |
| Versions | R81.10 (EOS), R81 (EOS), R81 (EOS), R81.10 (EOS), R81 (EOS), R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * CME installation of any version fails on new or existing deployment with error: `"/opt/CPcme/installation/CME_install.sh: No such file or directory" `.

* Similar logs are seen in '*/opt/CPInstLog/AutoUpdateLogs/CME* ' when the issue occurs:  


  `[DATE TIME] : Script /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_pre_revert.sh output:`  
  `
  [DATE TIME] Activated CPprofile successfully`  
  `
  [DATE TIME] Sourced /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_autoupdater_config.sh successfully`  
  `
  [DATE TIME] ###CloudGuard IS - CME pre-revert actions start here###
  /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_autoupdater_config.sh: line 134: [: -eq: unary operator expected`  
  `
  [DATE TIME] Error - function "log_revert" called not during revert, unable to log revert
  /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_pre_revert.sh: line 59: [: -eq: unary operator expected`  
  `
  [DATE TIME] Read content of /opt/CPcme successfully, found 1 items`  
  `
  [DATE TIME] Restoring backup for /opt/CPcme...`  
  `
  [DATE TIME] Backup file /tmp/cmedir_backup.tar.gz doesn't exist`  
  `
  [DATE TIME] Failed to restore backup for /opt/CPcme - backup file is missing`  
  `
  /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_pre_revert.sh: line 44: [: -eq: unary operator expected
  /bin/sh: /opt/CPcme/installation/CME_install.sh: No such file or directory
  [DATE TIME] Failed to install CME previous version:`  
  `

  [DATE TIME] : Script /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_pre_revert.sh failed in execution.`  
  `
  [DATE TIME] 10:42:29% : Installation failed for component CME:`  

  `

  *******************************************************************************`  
  `
  Error:`  
  `
  Script /var/log/AutoUpdater/metadata/CloudGuard_IaaS/CME/cme_AutoUpdate/138/product_scripts/CME_post_verify.sh failed in execution.`  

  `

  ***************`

* There is no */opt/Cpcme/installation* directory, example:  


  `[Expert@Hostname:0]# ls -l /opt/CPcme/`  
  `
  total 0`  
  `
  drwxr-xr-x 2 admin root 118 Sep 20 10:41 bin`  
  `
  `

## Cause

Missing directories and files in the */opt/Cpcme/* directory.  

Below is an example of the directories and files that are created after a successful installation of '*cme_installation.sh* ' as per [sk157492](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk157492).
`[Expert@hostname:0]# ls -l /opt/CPcme/`  
`total 20`  
`drwxr-x--- 2 admin bin 22 May 21 17:25 CPinstall`  
`-rw-rw---- 1 admin root 717 May 21 17:25 OLD_CME_KEY`  
`-r--r----- 1 admin root 0 May 21 17:25 __init__.py`  
`drwxr-xr-x 2 admin root 40 May 21 17:26 __pycache__`  
`drwx------ 6 admin root 182 May 21 17:26 api_handlers`  
`drwxrwx--- 2 admin root 118 May 21 17:26 bin`  
`drwx------ 4 admin root 4096 May 21 17:26 cloud_connectors`  
`drwx------ 4 admin root 217 May 21 17:26 cloud_handlers`  
`drwx------ 8 admin root 111 May 21 17:25 cloud_is`  
`drwx------ 3 admin root 69 May 21 17:26 cme_exceptions`  
`-r--r----- 1 admin root 4156 May 21 17:25 cme_globals.py`  
`drwxrwx--- 2 admin root 21 May 21 17:25 conf`  
`drwx------ 4 admin root 181 May 21 17:26 configuration`  
`drwx------ 4 admin root 4096 May 21 17:26 cp_handlers`  
`drwx------ 8 admin root 211 May 21 17:26 features`  
`drwx------ 2 admin root 86 May 21 17:25 installation`  
`lrwxrwxrwx 1 admin root 15 May 21 17:26 log -> /var/log/CPcme/`  
`drwx------ 6 admin root 121 May 21 17:25 menu`  
`drwx------ 3 admin root 185 May 21 17:26 service`  
`drwx------ 2 admin root 175 May 21 17:26 tools`

<br />

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# 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
