---
title: After Upgrading to NetWitness 12.5+ /var/netwitness/source-server/ begins filling up the /var/netwitness/ filesystem
description: "Issue\nThe Content Library within Centralized Content Management (CCM) retains older versions of content, even though the UI primarily displays the lat"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/after-upgrading-to-netwitness-12-5-var-netwitness-source-server-begins-filling-up-the-var-netwitness-filesystem#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for Integrations

    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for Partners

    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education
  
  Show submenu for Education

    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support
  
  Show submenu for Support

    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# After Upgrading to NetWitness 12.5+ /var/netwitness/source-server/ begins filling up the /var/netwitness/ filesystem

#### Issue

The Content Library within Centralized Content Management (CCM) retains older versions of content, even though the UI primarily displays the latest version.  
A unified approach to removing these older versions is essential, as the /var/lib/netwitness/source-server/resources directory will otherwise continue to grow over time.  
The current script is designed to address this issue by deleting older version of contents from both the file system and MongoDB, while selectively skipping certain entries based on predefined criteria.

#### Cause

The Source Server service, which manages Centralized Content Management's content library, retains copies of historic versions of Live Content. After upgrading to 12.5 or above, the GeoIP Database and Live Feeds are updated several times a week. Previously, this GeoIP DB was only updated with version upgrades. Each update is large, and over time this will begin to fill up /var/netwitness/ on the Admin-Server/Node-Zero. 

This can be confirmed by examining the largest directories under the /var/netwitness/source-server/resources and looking for multi-GB sized directories with the following command:

`[root@NW-NODE-ZERO ~]# du -shx /var/netwitness/source-server/resources/* | sort -h | tail -n6 237M /var/netwitness/source-server/resources/356b3ca2-7fac-47ce-bbb7-0ab7d93e60d3 900M /var/netwitness/source-server/resources/f1460e55-3178-4a76-98f9-e1765b363bbe 12G /var/netwitness/source-server/resources/281bdf83-63f8-4c9f-9e08-7fa2ca021311 15G /var/netwitness/source-server/resources/9ab41d5c-6505-44e2-b686-ac81ee4e842f 28G /var/netwitness/source-server/resources/6fb522a8-9871-4519-aec0-29fe5301cefd 63G /var/netwitness/source-server/resources/b3d6fa6c-d6ed-42be-9989-ddab9f641f43`

#### Workaround

- Download the content-cleanup-files.zip attached to this KB.
- On the Admin-Server/Node-Zero, make the following directory: 
  
  `mkdir /var/netwitness/source-server/content-cleanup-files`
- Copy the attached zip (via SCP) to  /var/netwitness/source-server/content-cleanup-files  on the Admin-Server/Node-Zero
- On Node-Zero, confirm the matching sha256sum of the zip:
  
  `[root@NW-NODE-ZERO content-cleanup-files]# sha256sum content-cleanup-files.zip 1effae003659e144c2b8f21d48f69aa7fa214e7740ad72bce075d5045c673933 content-cleanup-files.zip`
- Unzip the contents:
  
  `[root@NW-NODE-ZERO content-cleanup-files]# unzip content-cleanup-files.zip Archive: content-cleanup-files.zip inflating: run-cleanup.sh inflating: cleanup.jar`
- Make the scrip executable: 
  
  `[root@NW-NODE-ZERO content-cleanup-files]# chmod +x ./run-cleanup.sh`
- In the same working directory (/var/netwitness/source-server/content-cleanup-files) do a mongoexport and mongodump (note the dump may be a little larger than 1GB) as a backup before execution. Both will prompt for the deploy\_admin password:
  
  `[root@NW-NODE-ZERO content-cleanup-files]# mongoexport --ssl --sslAllowInvalidHostnames -u deploy_admin --authenticationDatabase admin --db source-server --collection contentLibrary --out contentLibrary.json 2025-07-22T20:54:46.512+0000 WARNING: --sslAllowInvalidCertificates and --sslAllowInvalidHostnames are deprecated, please use --tlsInsecure instead Enter password for mongo user: [root@NW-NODE-ZERO content-cleanup-files]# mongodump --ssl --sslAllowInvalidHostnames -u deploy_admin --authenticationDatabase admin --db source-server 2025-07-22T20:55:10.987+0000 WARNING: --sslAllowInvalidCertificates and --sslAllowInvalidHostnames are deprecated, please use --tlsInsecure instead Enter password for mongo user:`
- Run the script, where it will prompt for the deploy\_admin password:
  
  `[root@NW-NODE-ZERO content-cleanup-files]# ./run-cleanup.sh Enter MongoDB password:` 
  
    - The output it generates is too large to include in this text example.
- Once complete, you will end up with the following directories. Upon completion, a folder named content-cleanup-script-output will be created in the same directory. This folder contains multiple JSON files that can assist with future debugging:
  
  `[root@NEW-NW11-NW-NODE-ZERO content-cleanup-files]# ls -lrth total 54M -rwxrwxrwx. 1 root root 431 Jul 9 09:41 run-cleanup.sh -rw-rw-rw-. 1 root root 29M Jul 14 16:26 cleanup.jar -rwxr-xr-x. 1 root root 26M Aug 4 12:13 content-cleanup-files.zip drwxr-xr-x. 2 root root 4.0K Aug 4 12:14 content-cleanup-script-output [root@NEW-NW11-NW-NODE-ZERO content-cleanup-files]# cd content-cleanup- content-cleanup-files.zip content-cleanup-script-output/ [root@NEW-NW11-NW-NODE-ZERO content-cleanup-files]# cd content-cleanup-script-output/ [root@NEW-NW11-NW-NODE-ZERO content-cleanup-script-output]# ls -lrth total 28K -rw-r--r--. 1 root root 3 Aug 4 12:14 files-to-be-deleted.json -rw-r--r--. 1 root root 3 Aug 4 12:14 after-file-deletion-success.json -rw-r--r--. 1 root root 3 Aug 4 12:14 after-file-deletion-failure.json -rw-r--r--. 1 root root 3 Aug 4 12:14 mongo-documents-to-be-deleted.json -rw-r--r--. 1 root root 3 Aug 4 12:14 after-file-deletion-remaining-files.json -rw-r--r--. 1 root root 3 Aug 4 12:14 after-mongo-deletion-success.json -rw-r--r--. 1 root root 3 Aug 4 12:14 after-mongo-deletion-failure.json [root@NEW-NW11-NW-NODE-ZERO content-cleanup-script-output]# du -sh * 4.0K after-file-deletion-failure.json 4.0K after-file-deletion-remaining-files.json 4.0K after-file-deletion-success.json 4.0K after-mongo-deletion-failure.json 4.0K after-mongo-deletion-success.json 4.0K files-to-be-deleted.json 4.0K mongo-documents-to-be-deleted.json`
- This process should be repeated every couple of weeks or months as necessary until the code fix is implemented with a future upgrade.

#### Resolution

NetWitness Engineering has released a tool that can be used periodically to purge the older copies of these large historic Live elements, which include:

- Live Feeds
- GeoIP Databases

It is not necessary to retain the above historic copies, and automatic removal will be addressed in a later release. 

In the meantime, please download the attached zip and implement the steps listed in the workaround section below periodically to ensure the /var/netwitness/ volume does not fill up.

#### Product Details

**NetWitness Product Set:** NetWitness Logs & Network  
**NetWitness Product/Service Type:** Admin Server/Node-Zero   
**NetWitness Version/Condition:** 12.5+  
**Platform:** AlmaLinux

#### Approval Reviewer Queue

Technical approval queue

**Attachments:**   
[content-cleanup-files.zip](https://hubspotpublic.blob.core.windows.net/public/content-cleanup-files.zip)

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.