Skip to main content
1-Visitor
October 29, 2024
Solved

Logs are not shown in Thingworx-Platform-Postgres-8.5.19 after upgrade from 8.5.3

  • October 29, 2024
  • 1 reply
  • 1322 views

Hello Team,

Couldn't view any of the logs (Application Log/Script Log etc.,) from 'Monitoring' screen after Upgrading Thingworx-Platform-Postgres from 8.5.3 to 8.5.19.


Below are the error details from log file:

14:01:45,706 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
14:01:45,707 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
14:01:45,707 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/apache-tomcat/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-8.5.19-b1113.jar!/logback.xml]
14:01:45,728 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@62b635fe - URL [jar:file:/opt/apache-tomcat/webapps/Thingworx/WEB-INF/lib/thingworx-platform-common-8.5.19-b1113.jar!/logback.xml] is not of type file
14:01:45,784 |-INFO in ch.qos.logback.classic.joran.action.LoggerContextListenerAction - Adding LoggerContextListener of type [com.thingworx.logging.LogbackCustomLoggerContextListener] to the object stack
14:01:46,720 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [CommunicationLog] to INFO
14:01:46,720 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [CommunicationLog] to false
14:01:46,721 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [ASYNC_APPENDER_COMMUNICATION]. Did you define it below instead of above in the configuration file?
14:01:46,721 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details.
14:01:46,729 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@14:78 - no applicable action for [encoder], current ElementPath is [[configuration][logger][encoder]]
14:01:46,729 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@15:22 - no applicable action for [pattern], current ElementPath is [[configuration][logger][encoder][pattern]]


Below is the screen of Monitoring screen:

Venkat_11253743_0-1730198403781.png

 

Also, please find the attached logback.xml.

 

 Thank You.

Best answer by Constantine

Hello, check if you have a custom /ThingworxPlatform/logback.xml file. If you do — compare it with what is bundled with ThingWorx, as this link describes: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/System/Logs/configuringlogging.html

 

/ Constantine

1 reply

18-Opal
October 29, 2024

Hello, check if you have a custom /ThingworxPlatform/logback.xml file. If you do — compare it with what is bundled with ThingWorx, as this link describes: https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Composer/System/Logs/configuringlogging.html

 

/ Constantine

1-Visitor
October 30, 2024

Hello,

Yes, we do have a custom logback.xml file which was attached in the post. After changing the logback.xml format (appender should be separated from logger) as per the link it worked. Thank You.