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

# sk172503 - "mkdir: cannot create directory" error on policy installation failure

| Property | Value |
|----------|-------|
| Solution ID | sk172503 |
| Date Created | 2021-03-22 |
| Last Modified | 2022-10-02 |
| Technical Level | Advanced |
| Products | Security Management Server |
| Versions | R81 (EOS) |
| OS | Gaia |

## Symptoms

- * Policy installation fails with error:  
  ``
  mkdir: cannot create directory `/opt/CPR77CMP-R80/tmp/fwc_copies': File exists``

* Errors include the following line(s):  
  `
  cpp: line xxx, Error: Redefining defined variable "FWLOGTYPE_DirectConnect_block"`  
  `
  #define FWLOGTYPE_DirectConnect_block xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_ike_agr"`  
  `
  #define FWLOGTYPE_ike_agr xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_log_http_enc"`  
  `
  #define FWLOGTYPE_log_http_enc xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_sasser_icmp"`  
  `
  #define FWLOGTYPE_sasser_icmp xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_socks_technical_error"`  
  `
  #define FWLOGTYPE_socks_technical_error xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_log_irc"`  
  `
  #define FWLOGTYPE_log_irc xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_dynlog_smb_popup"`  
  `
  #define FWLOGTYPE_dynlog_smb_popup xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_dynlog_MSSQL_resolution_overflow"`  
  `
  #define FWLOGTYPE_dynlog_MSSQL_resolution_overflow xxxx`  
  `
  cpp: line xxxx, Error: Redefining defined variable "FWLOGTYPE_soulseek_block"`  
  `
  #define FWLOGTYPE_soulseek_block xxxx`

## Cause

There are duplicate inspect logs in the $FWDIR/conf/inspect.C file.

## 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
