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

# sk116600 - "vsx_util reconfigure" operation fails at phase 6/10 "Installing policy" with "ERROR: illegal token" in "user.def" file

| Property | Value |
|----------|-------|
| Solution ID | sk116600 |
| Date Created | 2017-04-30 |
| Last Modified | 2023-05-07 |
| Technical Level | Advanced |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82.20, R81.20, R82, R82.20 |
| OS | Linux, Gaia |

## Symptoms

- * The "`vsx_util reconfigure`" operation fails at phase 6/10 "Installing policy" with "`ERROR: illegal token`" in "user.def" file.

* *Example*:

  `
  ... ...`  
  `
  3/10 : Connectivity Check [############################################] 100% 00:00:05`  
  `
  4/10 : Fetching Configuration [############################################] 100% 00:00:00`  
  `
  5/10 : Verifying Configuration [############################################] 100% 00:00:00`  
  `
  6/10 : Installing policy on: <Name_of_VSX_GW> [##### ] 11 % 00:00:41`  
  `
  `  
  `
  Displaying last 5 notes from Management Server:`  
  `
  Policy installation status: firewall_application Policy installation/compilation for <Name_of_VSX_GW>: '/opt/CPsuite-R77/fw1/lib/`**user.def** `', line 13: `**ERROR: illegal token**   
  `
  Policy installation status: firewall_application Policy installation/compilation for <Name_of_VSX_GW>: Error compiling IPv6 flavor.`  
  `
  Policy installation status: firewall_application Policy installation/compilation for <Name_of_VSX_GW>: Compilation failed.`  
  `
  Policy installation status: firewall_application Policy installation/compilation for <Name_of_VSX_GW>: Operation ended with errors.`  
  `
  **** Security policy installation failed on <Name_of_VSX_GW>.`  
  `
  Aborting reconfiguration ...
  `
* Issue occurs after migrating the management database from a Management Server running on Windows OS to a Management Server running on Gaia / SecurePlatform / Linux / IPSO OS.

## Cause

The "user.def" file is in DOS format (every line ends with `\r\n`), while it should be in UNIX format (every line ends with `\n`).

*Example*:
>
> |-----------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
> | File in DOS format                                                                                                          | File in UNIX format                                                                                                       |
> | ``` $ cat test_dos.txt line1 line2 $ od -c test_dos.txt 0000000   l   i   n   e   1  \r  \n   l   i   n   e   2 0000014 ``` | ``` $ cat test_unix.txt line1 line2 $ od -c test_unix.txt 0000000   l   i   n   e   1  \n   l   i   n   e   2 0000013 ``` |

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