Skip to content

Collabora healthcheck generates error message every minute #208

@jhf2442

Description

@jhf2442

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

  1. start collabora container
    2.check docker logs

Expected behavior

quiet log

Actual behavior

collabora container reports
ERR opencloud-eu/opencloud#17: Read failed, have 1 buffered bytes (ECONNRESET: Connection reset by peer)

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

locally running OC out of https://github.com/opencloud-eu/opencloud-compose.git
version : git pull from today, bfc2a64

setting a different delay for the healtcheck of collabora makes also the messages appear on the same frequency -> correlation

one solution, instead of the cryptic command, would be to use curl (is included in the container), replacing

    healthcheck:
      test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9980 && echo -e 'GET /hosting/discovery HTTP/1.1\r\nHost: localhost:9980\r\n\r\n' >&3 && head -n 1 <&3 | grep '200 OK'"]

with

    healthcheck:
      test: ["CMD", "bash", "-c", "curl -f localhost:9980/hosting/discovery"]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Prio <= 3

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions