Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can specify parameters for the server according to your requirements. Refer to the documentation at https://graebert.atlassian.net/wiki/x/9QBdRg for a list of available parameters and their usage.

Debugging Logs for the Editor Application

For debugging purposes, the following log files are available for the Editor Application on the server. Additionally, these logs can be configured to be forwarded to a central logging service such as Fluentd, Logentries, Sumo Logic, etc.

  1. Session Logs:

    • Location: /var/log/wt/editor.log

    • Description: Contains session logs specific to the Editor Application.

  2. WT Logs:

    • Location: /var/log/wt/wt.log

    • Description: Contains logs related to the WT framework, which the Editor Application may utilize.

  3. Nginx Access Log:

    • Location: /var/log/nginx/access.log

    • Description: Access log for the Nginx proxy server, providing information about incoming requests to the Editor Application.

  4. Nginx Error Log:

    • Location: /var/log/nginx/error.log

    • Description: Error logs for the Nginx proxy server, containing information about any errors encountered while processing requests for the Editor Application.

By referring to these log files, you can diagnose issues, monitor activity, and troubleshoot any errors or unexpected behavior within the Editor Application running on the server. Additionally, integrating these logs with a centralized logging service can facilitate easier management and analysis of log data.

Crash Reporting Configuration

You can manage crash reporting for the Editor Application using the following options:

  1. Disabling Crash Reporting:

    • To disable crash reporting, start the server with the -no-crash flag:

      /etc/init.d/editor start -no-crash

  2. Configuring S3 Bucket for Crash Dumps:

    • To collect crash dumps on an S3 bucket, configure the following parameters in the /etc/init.d/editor file:

      • CRASHBUCKETREGION

      • CRASHBUCKET

      • PRODUCT

    • For example, to accumulate crash dumps to the "graebert-crashes" S3 bucket in the "us-east-1" region for the "xenon-editor" product, configure as follows:

      CRASHBUCKETREGION="us-east-1"
      CRASHBUCKET="graebert-crashes"
      PRODUCT="xenon-editor"

    • Start the server normally after configuring these parameters:

      /etc/init.d/editor start

Note:

  • Disabling crashes or incorrectly configuring S3 may lead to the system folder /var/crash being flooded with dumps, especially if the system generates numerous crashes. It is advisable to clear dumps via a cron job at regular intervals (e.g., every 30 minutes) to prevent this from happening.