Skip to content

Inspecting Logs

Start Control

All requests to the document maker are stored in a request log table which can be accessed via Start Control.

This should be the first place you check when trying to diagnose issues.

image

ColumnDescription
Request IDThe ID of the request, you can use this to find the folder in S3
Client IDThe ID of the client sending the request, comes from the API key used in the request
Start TimeThe time the request was received
End TimeThe time the request has completed
Template FilenameThe filename of the template supplied
Is QueuedWether or not the request has been sent to a queue to be processed by Celery
Status CodeThe HTTP status code of the response. See status codes
Result TextText indicating the result of the request

If there is no log entry for your request it is likely that there has been an issue with sending application. Check the applications logs for potential errors.

Status codes

CodeDescription
200Success
400Validation error. Check result text for details.
403Authentication error. Check the API key used in the request.
500Server error. Look in the Elastic Beanstalk logs for details.

Elastic Beanstalk

If there is nothing useful in the Start Control logs you can get log files directly from Elastic Beanstalk.

You can either get the last 100 lines or full logs. The full logs option gives you a .zip files with many different log files inside.

image

Log files where you are likely to get something useful are as follows:

  • pdm_errors.log - Errors outputted from the Python code
  • pdm_warn.log - Warnings outputted from the Python code
  • pdm_debug.log - Debugging info outputted from the Python code
  • pdm_timing.log - Timing info outputted from the Python code
  • web.stdout.log - Errors captured by elastic beanstalk
  • nginx/error.log - Errors thrown by the the nginx reverse proxy