Troubleshooting bwagent Issues
Some bwagent issues and possible resolutions are listed below. This list is not complete but provides examples of messages that might be returned.
For a complete list of error codes, see the TIBCO ActiveMatrix BusinessWorks™ Error Codes guide.
Whenever you initiate any operation such as create domain, create AppNode, the bwagent generates an unique ID for that operation and that ID persists till that operation is complete.
For example, when you create a domain, you get the following entries in the bwagent.log file:
INFO [<thread_number>] <fb587904-ab0c-4403-b682-da809ac57b96> c.t.b.t.m.d.u.DomainLifecycleCommand - Creating domain [<domain_name>] at default location INFO [<thread_number>] <fb587904-ab0c-4403-b682-da809ac57b96> bw.audit - create -agent <agent_name> -domainHome <domain_home> domain <domain_name> INFO [<thread_number>] <fb587904-ab0c-4403-b682-da809ac57b96> c.t.b.t.m.d.u.DomainLifecycleCommand - TIBCO-BW-ADMIN-300100: Created the domain [<domain_name>]
To retrieve the unique id of the operation executed, follow the steps:
BWAdmin Command Line
- Open
BW_HOME/bin/bwadmin-logback.xml in a text editor. Change the ROOT level setting at the end of the file as needed.
<root level="DEBUG"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" />
- Open the
BW_HOME/bin/bwagent-logback.xml file in a text editor. Change the ROOT level setting at the end of the file as needed.
<root level="DEBUG"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" />
- Perform the operation such as Create Domain.
- Open the
BW_HOME/logs/bwadmin.log file and retrieve the unique ID. The unique id is present at the beginning of an operation.
2020-12-08 15:32:10.412 DEBUG [main] <5a83a476-67f1-4bc7-ba49-70451c1bf320> com.tibco.thor.frwk - Starting Execution for command [com.tibco.bw.thor.admin.cli.commands.CreateEntityCommand] at Time [timestamp] with ID[5a83a476-67f1-4bc7-ba49-70451c1bf320]
- You can verify the logs associated with the operation in the bwagent.log file using the same unique id of the operation as per the step 4.
BWAgent REST API
- Open the
BW_HOME/bin/bwagent-logback.xml file in a text editor. Change the ROOT level setting at the end of the file as needed.
<root level="DEBUG"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" />
- Perform the operation such as Create Domain.
- On receiving the response, you get the operation ID in the response headers.
- You can verify the logs associated with the operation in the bwagent.log file using the operation id obtained in the step 3.
Copyright © 2020. TIBCO Software Inc. All Rights Reserved.