Skip to main content
Druva Documentation

How to enable or disable debug logging for Phoenix File Server Agent

This article applies to:

  • Product edition: Phoenix
  • OS: Windows and Linux

Overview

This article describes the procedure to enable and disable debug logging for Phoenix File Server Agent. Ensure that there are no backup or restore jobs scheduled to run for the File server while enabling or disabling debug logging for the agent. Phoenix requires you to cancel all jobs that are currently running for the File server, before performing the following tasks.

Enable and disable debug logging for a Phoenix File Server Agent

Enable debug logging on Windows server

  1. Open Services console and stop Druva Phoenix Agent Client Service.
  2. Open Task Manager and kill all Druva or Phoenix related processes.
  3. Take a backup of the Phoenix.cfg file located at C:\ProgramData\Phoenix\FS.
  4. Open the Phoenix.cfg file in Notepad.
  5. Look for the DEBUGLEVEL flag and change the value from DEBUGLEVEL = 0 to DEBUGLEVEL = 9. 
  6. Save the changes.
  7. Start Phoenix Agent Client Service and initiate the backup or the restore job.

Disable debug logging on Windows server

  1. Open Services console and stop Druva Phoenix Agent Client Service.
  2. Open Task Manager and kill all Druva or Phoenix related processes.
  3. Take a backup of the Phoenix.cfg file located at C:\ProgramData\Phoenix\FS.
  4. Open the Phoenix.cfg file in Notepad.
  5. Look for the DEBUGLEVEL flag and change the value from DEBUGLEVEL = 9 to DEBUGLEVEL = 0. 
  6. Save the changes.
  7. Start Phoenix Agent Client Service and initiate the backup or the restore job.

Upload files

After the enable or disable completes or terminates, zip and upload the following files to the case:

  • Zip of the C:\ProgramData\Phoenix\FS\logs folder.
  • Job logs of the failed or terminated job.
  • Windows Application and System event logs in the .evt or .evtx format.

Enable debug logging on Linux server

  1. Open the terminal with administrator rights and stop the Phoenix Agent service using the following command:
    /etc/init.d/Phoenix stop
  2. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:
    ps -ef| grep -i Phoenix
    Kill -9 <process id>
  3. Browse to /etc/Phoenix/FS/Phoenix.cfg and take backup of the Phoenix.cfg file.
  4. Open the Phoenix.cfg file in the VI editor and change the value of DEBUGLEVEL = 0 to DEBUGLEVEL = 9.
  5. Save-Quit the changes.
  6. Start Phoenix Agent Client Service and initiate the backup or the restore job.
    /etc/init.d/Phoenix start

Disable debug logging on Linux server

  1. Open the terminal with the administrator rights and stop the Phoenix Agent service using the following command:
    /etc/init.d/Phoenix stop
  2. Verify if any Phoenix processes are still running. If any process is still found running, kill the process with the following command:
    ps -ef| grep -i Phoenix
    Kill -9 <process id>
  3. Browse to /etc/Phoenix/FS/Phoenix.cfg and take the backup of the Phoenix.cfg file.
  4. Open the Phoenix.cfg file in the VI editor and change the value of DEBUGLEVEL = 9 back to DEBUGLEVEL = 0.
  5. Save-Quit the changes.
  6. Start Phoenix Agent Client Service and initiate the backup or the restore job.
    /etc/init.d/Phoenix start

Upload files

After the job completes or terminates, zip and upload the following files to the case:

  • Zip of the /var/log/Phoenix folder.
  • System logs from the /var/log/messages folder.
  • Job logs of the failed or terminated job.