Error During Pterodactyl Installation on YunoHost

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:

  1. What could be causing this connection issue?
  2. Are there specific configurations I need to check in my MySQL setup?
  3. I can’t find the .env file. I don’t understand where I can edit the information.
  4. 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!

Pterodactyl app packaging was never finished and no one is working on it. It is not included in the catalogue either.

OK, I made some alterations to the package, so it should be installable from the ‘testing’ branch now. You have to create the first user with:

sudo yunohost app shell pterodactyl

and then

php artisan p:user:make

edit: After more work this step is not needed anymore.

I didn’t understand your scripts very well. To be more precise, I didn’t have enough time to review and correct them. I just wanted to move my ptero panel located on a different server to yunohost.
THANK YOU VERY MUCH AGAIN!!! :smiley:

Also, if the app makes it to the official catalog, that would be great—not just for me, but for a lot of people.

THANK YOU SO MUCH AGAIN.
This was very helpful and it’s all set up now.