Skip to content

Docker image requiring mysql client and forcing ssl #5521

@Loki-101

Description

@Loki-101

Current Behavior

Note: I created a PR addressing two other known issues with the Docker image a while ago; today, I added fixes for this issue to it as well: #5324

Current Behavior:
The v1.12.0 update comes with two breaking changes to the Docker image.

First error:
Creating migration table ...................................... 16.96ms DONE

INFO Loading stored database schemas.

database/schema/mysql-schema.sql .............................. 15.18ms FAIL

Process.php line 275:

The command "mysql --user="${:LARAVEL_LOAD_USER}" --password="${:LARAVEL_L
OAD_PASSWORD}" --host="${:LARAVEL_LOAD_HOST}" --port="${:LARAVEL_LOAD_PORT}
" --database="${:LARAVEL_LOAD_DATABASE}" < "${:LARAVEL_LOAD_PATH}"" failed.

Exit Code: 127(Command not found)

Working directory: /app

Output:

Error Output:

sh: mysql: not found

Second error:

Once the mysql client is added to the image, a second error shows up if encryption is not enabled, as is the case for many single-node deployments where the database is an internal-only service:

TLS/SSL error: SSL is required, but the server does not support it

Expected Behavior

  • All required packages should be included in the container image used during runtime
  • SSL being off for the database should be a supported configuration with a toggle

Steps to Reproduce

To produce the second error, you can either add the mysql client in the image or temporarily in the container

  • docker compose exec panel apk add mysql-client
  • docker compose restart panel
  • Wait 5-10 seconds
  • docker compose logs panel

Panel Version

v1.12.0

Wings Version

N/A

Games and/or Eggs Affected

N/A

Docker Image

N/A

Error Logs

Error 1: https://ptero.co/kurigiceno
Error 2 (after adding client): https://ptero.co/elixudodaz

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue. I understand that maintainers may close this issue without communication if I have not provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions