Skip to main content

 

Druva Documentation

How to enable CDEBUG for inSync client?

Overview

The Druva Support team might request you to enable CDEBUG logging to capture stack trace information. A CDEBUG stack trace is a report of the active stack frames at a certain point in time during the execution of a program.

Based on the OS, perform following steps to enable CDEBUG logging.

Windows

  1. Check if the backup is already running for the affected user, then continue with step 2, else initiate the backup for one of the client machine facing issue.
  2. Create CDEBUG folder on the C: drive.
  3. Check the root of C: drive to ensure that stack dumps are getting created. The file nomenclature will be "<PID>stack.txt".
  4. Delete the CDEBUG folder after 3 minutes of creating the CDEBUG folder.
  5. Open CMD and run the following command to get the process ids of all inSync processes:
    tasklist | find "inSync" > tasklist.txt
  6. Ensure that the number of files are matching with the count of processes.
  7. Collect the tasklist.txt & all the <PID>stack.txt files and share with Druva Support.

Linux

  1. Create the CDEBUG directory using the following command
    mkdir /tmp/CDEBUG
  2. Modify the permission of the CDEBUG directory as follows
    chmod 775 /tmp/CDEBUG
  3. Check the /tmp directory to ensure that stack dumps are getting created. The file nomenclature will be "<PID>stack.txt".
  4.  Delete the CDEBUG folder after 3 minutes of creating the CDEBUG folder.
  5. Check the process id's for all the inSync processes by using the following command 
    ps aux | grep inSync | grep -v "grep" > ps.log
  6. Ensure that the number of files are matching with the count of processes.
  7. Restart the services.
  8. Collect the tasklist.txt, ps.log & all the <PID>stack.txt files and share with Druva Support.

MAC

  1. Create a new folder named CDEBUG on the root of the following directory /Users/<username>/Library/Application Support/inSync
  2. Check the root of inSync folder to ensure that stack dumps are getting created. The file nomenclature will be "<PID>stack.txt".
  3. Delete the CDEBUG folder after 3 minutes of creating the CDEBUG folder.
  4. Collect all the <PID>stack.txt files and share with Druva Support.

Note: Ensure you delete the CBEDUG folder after collecting the generated stack files.