Enable DEBUG mode in Storware Backup and Recovery
This guide explains how to enable debug mode for troubleshooting or detailed logging. The operation involves connecting to the server via SSH and editing a configuration file.
Available log levels
INFO
Provides general operational messages to confirm that the software is functioning as expected
DEBUG
Offers detailed diagnostic information to help developers troubleshoot issues
TRACE
Provides the most granular level of detail, often used to trace the execution of specific code paths
Changing log level in the Storware Backup and Recovery components
Server
Connect to the server host using SSH
Open the following file for editing
/opt/vprotect/server/quarkus.propertiesExample:vi /opt/vprotect/server/quarkus.propertiesLocate the line in the file that controls the logging mode
quarkus.log.category."eu.storware".level=INFOThe default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the service:
systemctl restart vprotect-server
Node
Connect to the node host using SSH
Open the following file for editing
/opt/vprotect/node/log4j2-node.xmlExample:Locate the line in the file that controls the logging mode
<Property name="logLevel">INFO</Property>The default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the service:
Tape manager
Connect to the tape manager host using SSH
Open the following file for editing
/opt/vprotect/tapemanager/config/application.propertiesExample:Locate the line in the file that controls the logging mode
quarkus.log.level=INFOThe default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the service:
Cloud agent
Connect to the node host using SSH
Open the following file for editing
/opt/vprotect/cloudagent/AgentConfig.jsonExample:In the JSON file, find the
logssection nested under theagentkeyAdd the following key to the
logssection"level": "INFO"The default value for the logging level is INFO. Set the value to INFO, DEBUG or TRACE. After the modification, the section should look like this:Save the file
Restart the node service:
OS agent
Connect to the client host
Open the following file for editing Windows system:
C:\ProgramData\sbr-osagent\osagent.propertiesLinux system:/opt/vprotect/osagentMacOS system:/Library/Application Support/osagentLocate the line in the file that controls the logging mode
osagent.logs.level=INFOThe default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the service:
Windows
Linux
MacOS
Cloud server
Connect to the node host using SSH
Open the following file for editing
/opt/vprotect/cloudserver/config/application.propertiesExample:Locate the line in the file that controls the logging mode
quarkus.log.level=INFOThe default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the node service:
OS server
Connect to the tape manager host using SSH
Open the following file for editing
/opt/vprotect/tapemanager/config/application.propertiesExample:Locate the line in the file that controls the logging mode
quarkus.log.level=INFOThe default value for the logging level is INFOSet the value to INFO, DEBUG or TRACE
Save the file
Restart the node service:
Last updated