Skip to main content
Druva Documentation

How to enable debug logging on inSync server

This article applies to:

  • OS: Windows and Linux
  • Product version: inSync Server running on Windows and Linux.

Overview

While troubleshooting a scenario with inSync Client,  the Druva support team might request to enable debug logging to capture verbose information. A debug log can record database operations, system processes, and errors that occur when executing a backup/restore. Based on the OS, the following are the steps to enable debug logging.

Windows

Perform the following steps to enable debug logging on Windows OS.

  1. Stop the inSync services on the inSync server.

inSync 5.8 and above

  • Druva inSync Master Config Server
  • Druva inSync Master Control Panel
  • Druva inSync Master Sync Server
  1. Edit the inSync Server configuration file "inSyncServer.cfg"  located under C:\Programdata\Druva\inSyncCloud\inSyncServer4

 Note: For inSync server 5.3.x and below the “ inSyncServer.cfg” is located under C:\inSyncServer4\ directory. 

  1. Modify the value for the following entry: DEBUGLEVEL = 9
  2. Save the configuration file.
  3. Start the Druva inSync server services.

Note: Change the DEBUGLEVEL to 0 again after collecting the debug logs for analysis.

Linux

Perform the following steps to enable debug logging on Linux OS.

Note: To perform the following steps log in as a root or type sudo before each of the following command and provide the root password when prompted.

  1. Stop the inSync services on the inSync server using the following command.

    inSync 5.8 and later versions
    /etc/init.d/inSyncMasterAll stop
  2. Query if the inSync server processes are still running using below command.
    ps -aux | grep -i insync
  3. Once the inSync process is stopped, edit the inSync Server configuration file "inSyncServer.cfg"  located under /etc/inSyncServer for inSync 5.3.1 and older versions. And /etc/inSyncCloud/inSyncServer for inSync 5.4 and above versions.
  4. Modify the value for the following entry: DEBUGLEVEL = 9
  5. Save the configuration file.
  6. Start the Druva inSync server services using the following command.
    inSync 5.8 and later versions

    /etc/init.d/inSyncMasterAll start

Note: Change the DEBUGLEVEL  to 0 again after collecting the debug logs for analysis.