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

# sk109395 - FWM: database disk image is malformed 

| Property | Value |
|----------|-------|
| Solution ID | sk109395 |
| Date Created | 2016-01-04 |
| Last Modified | 2016-01-04 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R82.x, R81.20, R82, R82.20 |

## Symptoms

- * The `mdsstat` command shows all CMAs as up, however FWM for MDS show them as down.  

* A debug of fwm for the MDS ([sk33207 - How to debug FWM daemon on Provider-1 CMA / Domain Management Server](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk33207)) shows:

  `[...]`  
  `[MDS PID...] Connected to FWD (log connection). conn=9fb8dc0`  
  `[MDS PID...] fwnetobj_getbysicname: table_chosen_get_with_param(eTABLE_NETWORK_OBJECTS, is_obj_SIC_name, cn=cp_mgmt,o=ABCCORPMDS..pu95kb) returned NULL.`  
  `[MDS PID...] resolver_gethostbyname: Performing gethostbyname for Hostname`  
  `[MDS PID...] hash_do_resize: Resizing hash from 16384 to 32768 (n_elements=32768)`  
  `[MDS PID...] do_links_getver: strncmp failed. Returning -2`  
  `Failed to execute SQLite statement: DELETE FROM links WHERE session_id <> '' (11, `**database disk image is malformed** `)`  
  `Failed to initialize table manager: sRelativeDbPath = mdsdb`  
  `Failed to initialize database manager with error 0x80004005 ('Unspecified error')`  
  `fwm_init_cpmi_pkg: Failed to init mdsdb database manager with err 0x80004005 (Unspecified error)`  
  `Failed to init CPMI`

## Cause

"*database disk image is malformed*" is an error message that is generated by sqlite3 when one of the databases is corrupted. However debug log provides no indication which database file (or files) is corrupt.

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