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.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:vi /opt/vprotect/node/log4j2-node.xmlLocate 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:
systemctl restart vprotect-node
Tape manager
Connect to the tape manager host using SSH
Open the following file for editing
/opt/vprotect/tapemanager/config/application.propertiesExample:vi /opt/vprotect/tapemanager/config/application.propertiesLocate 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:
systemctl restart vprotect-server
Cloud agent
Connect to the node host using SSH
Open the following file for editing
/opt/vprotect/cloudagent/AgentConfig.jsonExample:vi /opt/vprotect/cloudagent/AgentConfig.jsonIn 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:agent": { "logs": { "path": "../logs/cloudagent", "level": "DEBUG" } }Save the file
Restart the node service:
systemctl restart vprotect-node
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
sc stop sbr-osagent && sc start sbr-osagentLinux
systemctl restart sbr-osagentMacOS
sudo launchctl stop eu.storware.sbr.osagent sudo launchctl start eu.storware.sbr.osagent
Cloud server
Connect to the node host using SSH
Open the following file for editing
/opt/vprotect/tapemanager/config/application.propertiesExample:vi /opt/vprotect/cloudserver/config/application.propertiesLocate 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:
systemctl restart vprotect-node
OS server
Connect to the tape manager host using SSH
Open the following file for editing
/opt/vprotect/tapemanager/config/application.propertiesExample:vi /opt/vprotect/ossOstatnie pytanieerver/config/application.propertiesLocate 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:
systemctl restart vprotect-node
Last updated