Skip to content

Error message for database check is too generic #27

Closed
OpenConext/OpenConext-engineblock
#1977

Description

@baszoetekouw

Problem with the databse (e.g., in Engineblock) are quite hard to debug. The main entrypoint to check when EB doesn't start is to check the health endpoint, like this:

╰─▶ docker compose exec -ti engine curl http://localhost/internal/health
{"status":"DOWN","message":"Unable to execute a query on the database."}

That helps a little, but doesn't actually say what is wrong.

The problem is that in the DB check at

} catch (ConnectionException) {
return HealthReport::buildStatusDown('Unable to connect to the database.');
} catch (Exception) {
return HealthReport::buildStatusDown('Unable to execute a query on the database.');
}
the exception is eaten. We should add explicit ERROR-level logging of the exception (so the exception is shown in the error logs).

Activity

  1. added theissue type on Mar 23, 2026
  2. changed the title [-]Error message for databse check is too generic[/-] [+]Error message for database check is too generic[/+] on Mar 30, 2026
  3. johanib commented on Mar 30, 2026

    @johanib

    Symfony env: production. See openconext-deploy
    Scenario: Db contains an extra table, doctrine errors: Is the error visible in the logs?
    Scenario: If mariadb version deviates from the configured version (in a breaking way)

  4. self-assigned this
    on Apr 10, 2026
  5. moved this from Backlog to In Progress in PHP developmenton Apr 10, 2026
  6. added a commit that references this issue on Apr 10, 2026
    f1420ea
  7. added a commit that references this issue on Apr 15, 2026
    0324650
  8. moved this from In Progress to Delivered in PHP developmenton Apr 16, 2026
  9. added a commit that references this issue on Apr 17, 2026
    c9ef667
  10. added a commit that references this issue on May 19, 2026
    0ce33db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions