-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
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
- Copy https://github.com/pterodactyl/panel/blob/1.0-develop/docker-compose.example.yml onto a machine with Docker Engine
- Change the bare minimum required to run the image (I set both passwords to test123 and APP_URL to http://localhost since the test was in a local Linux VM with a web browser)
- docker compose up -d
- Wait 10-20 seconds
- docker compose logs panel
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/elixudodazIs 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.