Hello everyone,
I encountered an issue while trying to install the Pterodactyl application on my YunoHost server. Below are the details of the error message and the relevant logs.
Installation Details:
- App: Pterodactyl YunoHost
- YunoHost Version: 12.0.17
- Started At: 2025-07-09 16:17:10 UTC
- Ended At: 2025-07-09 16:17:59 UTC
- Error Message: “An error occurred in the application download script.”
Error Log Snippet:
2025-07-09 19:17:58,261: DEBUG - + php8.3 artisan p:environment:database --no-interaction
2025-07-09 19:17:59,273: DEBUG -
2025-07-09 19:17:59,281: DEBUG - ! [NOTE] Using the "root" account for MySQL connections is not only highly
2025-07-09 19:17:59,283: DEBUG - ! frowned upon, it is also not allowed by this application. You'll need
2025-07-09 19:17:59,283: DEBUG - ! to have created a MySQL user for this software.
2025-07-09 19:17:59,286: DEBUG - [ERROR] Unable to connect to the MySQL server using the provided credentials.
2025-07-09 19:17:59,287: DEBUG - The error returned was "SQLSTATE[HY000] [1045] Access denied for user
2025-07-09 19:17:59,287: DEBUG - 'ptero_user'@'localhost' (using password: NO)".
Additional Information:
- I have created a MySQL user for Pterodactyl as recommended, but it seems that the installation script is not able to connect to the database using the provided credentials.
- The installation process fails at the database configuration step, indicating that the application cannot connect to MySQL.
Questions:
- What could be causing this connection issue?
- Are there specific configurations I need to check in my MySQL setup?
- I can’t find the .env file. I don’t understand where I can edit the information.
- Is it possible to bypass the
.env
file and hard-code the database credentials directly into the installation script for testing purposes?
Can you tell me how to set it up?
Any help or guidance would be greatly appreciated. Thank you!