You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG - Report Service Failure Root Cause Analysis #26095
Afternoon of February 20 2025, the service for generating PDF reports started encountering errors:
After a restart the service returned to normal, however, a root cause analysis should be performed to help uncover the cause of the issue and provide actions to take to prevent future failures.
Background
The report service is a third party container image Gotenberg that runs a Google chromium engine to generate PDF's.
Between 6 AM and 12 PM on weekdays we run a minimum of 4 instances; between 12 PM and 6 PM a minimum of 3 instances are running.
Yesterday between 12:30 PM and 2:30 PM at least 1 of the instances continued to receive requests but started logging this error:
level":"error", "logger":"api", "method":"POST", "msg":"convert HTML to PDF: convert to PDF: chromium PDF: chrome failed to start:
/usr/bin/chromium: fork: Resource temporarily unavailable
As a result request to generate reports were failing. When an API request for a report fails, the API returns JSON instead of a PDF. The Assets UI downloads this JSON as a filename with a .pdf extension.
After restarting the report service containers at 2:30 PM no more of these errors were logged.
A change to improve error handling when these report service errors occur will be in the next PPR release. A request to get a report will return an error status code when the report generation fails.
Recommendations:
Increase the minimum number of instances between 12 PM and 6 PM from 3 to 4.
Isolate the processing of large search report requests with separate, dedicated report service containers (Thor's suggestion).
Investigate monitoring report service log errors if this particular error recurs.
@arlentees the instance increase from 3 to 4 is temporary if we isolate large reports to a separate container.
My estimate for setting up a dedicated large search container is a 3. For monitoring I will defer that to OPs support, there may be a significant cost increase to using the Google monitoring service if applicable. Basically OPs would be alerted if x number of "/usr/bin/chromium: fork: Resource temporarily unavailable" error messages occur over a short interval in the container log.
Activity
doug-lovett commentedon Feb 21, 2025
Background
The report service is a third party container image Gotenberg that runs a Google chromium engine to generate PDF's.
Between 6 AM and 12 PM on weekdays we run a minimum of 4 instances; between 12 PM and 6 PM a minimum of 3 instances are running.
Yesterday between 12:30 PM and 2:30 PM at least 1 of the instances continued to receive requests but started logging this error:
level":"error", "logger":"api", "method":"POST", "msg":"convert HTML to PDF: convert to PDF: chromium PDF: chrome failed to start:
/usr/bin/chromium: fork: Resource temporarily unavailable
As a result request to generate reports were failing. When an API request for a report fails, the API returns JSON instead of a PDF. The Assets UI downloads this JSON as a filename with a .pdf extension.
After restarting the report service containers at 2:30 PM no more of these errors were logged.
A change to improve error handling when these report service errors occur will be in the next PPR release. A request to get a report will return an error status code when the report generation fails.
Recommendations:
arlentees commentedon Feb 21, 2025
Many thanks for looking into this @doug-lovett ! A couple quick follow up questions for you:
doug-lovett commentedon Feb 21, 2025
@arlentees the instance increase from 3 to 4 is temporary if we isolate large reports to a separate container.
My estimate for setting up a dedicated large search container is a 3. For monitoring I will defer that to OPs support, there may be a significant cost increase to using the Google monitoring service if applicable. Basically OPs would be alerted if x number of "/usr/bin/chromium: fork: Resource temporarily unavailable" error messages occur over a short interval in the container log.
arlentees commentedon Feb 21, 2025
Awesome, thanks again @doug-lovett !
arlentees commentedon Mar 24, 2025
closing issue, work has been completed