Skip to content

LibreOffice supervisor returns cached first-start error on every subsequent request #1538

Closed

Description

@mlafon

Summary

If LibreOffice fails to start on the first request (e.g. libreoffice-start-timeout is exceeded), the supervisor caches the error and every subsequent request fails immediately with the same error until the container is restarted.

Affected versions

8.27.0 through main. Verified that the issue is not present in 8.26.0 (each request retried the launch until it succeeded).

The regression appears to be related to #1467, which reworked the supervisor to support concurrency.

Reproduction

  1. Run Gotenberg with --libreoffice-start-timeout=1s (or any duration shorter than LibreOffice's actual cold start on the host).

  2. Send a request to /forms/libreoffice/convert. It fails after the timeout with:

    convert to PDF: supervisor run task: process first start: start process: execute LibreOffice: context done: context deadline exceeded

  3. Send another request. It fails immediately with the same error.

The supervisor stays in this state for the rest of the container's lifetime.

Activity

  1. gulien commented on Apr 30, 2026

    @gulien
    Member

    Fixed in 64c28dd.

  2. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions