Interpreting wrapper.log on-premise

Last modified by Erik Bakker on 2024/02/22 12:36

Error

Note that the functionality mentioned in this microlearning will become obsolete when migrating to the 3rd generation runtime.

There is a need to see runtime level logging in cases where it is unclear whether that specific runtime has started up or not. In eMagiz, you won't receive logging if the start-up fails because no established connection can send logging to eMagiz. When this particular runtime runs on-premises, you can see that specific logging on the runtime in the wrapper.log. In this microlearning, we will learn how to find the wrapper log and search within the wrapper log to find the corresponding error and subsequently analyze that error.

Should you have any questions, please get in touch with academy@emagiz.com.

1. Prerequisites

  • Advanced knowledge of the eMagiz platform

2. Key concepts

This microlearning centers around interpreting the wrapper.log for an on-premise runtime
With a wrapper.log, we mean: A file that holds start-up and shut down information on a specific runtime

In a wrapper log, you see the following information:

  • Start-up information on JVM level
  • Shutdown information on JVM level
  • Errors on start-up or shutdown

3. Interpreting wrapper.log on-premise

There is a need to see runtime level logging in cases where it is unclear whether that specific runtime has started up or not. In eMagiz, you won't receive logging if the start-up fails because no established connection can send logging to eMagiz. When this particular runtime runs on-premises, you can see that specific logging on the runtime in the wrapper.log. In this microlearning, we will learn how to find the wrapper log and search within the wrapper log to find the corresponding error and subsequently analyze that error.

In a wrapper log, you see the following information:

  • Start-up information on JVM level
  • Shutdown information on JVM level
  • Errors on start-up or shutdown

3.1 Where to find the wrapper.log

Before we can interpret the wrapper.log, the first action will be to find the wrapper.log. The wrapper.log is available within the data folder of each eMagiz runtime that is running on-premises. To see it, you first need to know the location where you saved and unpacked the runtime zips. Suppose you open the runtime you want to interpret the wrapper log and open the data folder. Within the data folder, there is a folder called log. You will see a file called wrapper which can be opened with a tool such as Notepad++.

advanced-advanced-monitoring-interpreting-wrapper-log-on-premise--wrapper-log-location.png

3.2 Find additional information

When you open the wrapper.log file, you see all JVM-related logging. Here, you can also see whether things have broken down when starting the JVM or shutting it down. With the help of this information, you can quickly determine whether the start-up or shutdown process is not working as expected. Having this information will be the trigger to see, per the relevant stakeholders, what to do to fix these problems in a structured manner.

One way to do so would be to stop the runtime and delete the data folder without deleting the h2 folder. That would initiate a clean restart of the runtime to alleviate the problems. In case of structural issues, you should dive into the logging and analyze the issues in more detail.

4. Key takeaways

  • The wrapper.log can be found within the folder called log under the folder data
  • You can search the log with the help of tools such as Notepad++
  • By looking at the timestamp in the eMagiz Manage Log, you can run a focused search

5. Suggested Additional Readings

No suggested additional readings for this microlearning.