B
Blueprint14mo ago
E1ast

Error 500

After installing the panel and trying to build, this happened: root@panel-kyonix:/var/www/pterodactyl# php artisan up In Connection.php line 760:
SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from information_schema.tables where table_schema = panel and table_name = migrations and table_type
= 'BASE TABLE')

In Connector.php line 65:
SQLSTATE[HY000] [2002] Connection refused

root@panel-kyonix:/var/www/pterodactyl#
14 Replies
Emma
Emma14mo ago
This is unrelated to Blueprint. Your database is unreachable.
E1ast
E1astOP14mo ago
She's standing on this f host Maybe it's because she has a custom port? Not 3306
Emma
Emma14mo ago
Who are you referring to?
E1ast
E1astOP14mo ago
I changed it recently and changed it in the .env panel at var/www/pterodctyl MariaDB Database Port
Emma
Emma14mo ago
Yeah this might be the issue might have to wait until someone with more knowledge about databasing than me reads this
E1ast
E1astOP14mo ago
There are no problems in the port itself. And pterodactyl itself works normally. Maybe it's about configuring the database port in the blueprint itself? Should he have access to it? Maybe it is specified somewhere in the config?
Loki
Loki14mo ago
Check MariaDB logs to find out why it's refusing. If there's nothing about this in the logs, it's a network issue.
E1ast
E1astOP14mo ago
I have returned the port to the standard one. The error is gone. How do I get it back to the caste so that there is no error?
Loki
Loki14mo ago
I'm not sure what you're asking.
E1ast
E1astOP14mo ago
By default, the Mysql database runs on port 3306. But for the sake of safety, I'm changing it. Then the panel works on port 7306 (fictional). After I change the connection data in .env, but blueprint gives an error
Loki
Loki14mo ago
Using non-standard ports does NOT harden your machine by a large enough amount to be recommended; anyone can still see what ports are open, then look at the response given to see what service is running. It's not a substitute for setting up TLS encryption and restricting access to users and services who actually need it with permissions and your firewall. With that being said, in typical Pterodactyl you would just change it in MariaDB's config, restart the service, change it in your .env file, restart your webserver, and you'd be set. It's possible Blueprint caches the setting somewhere; I'd cd into /var/www/pterodactyl and run grep -ir "3306" . to check.
E1ast
E1astOP14mo ago
The ports are closed, but the database will be used elsewhere. Connection to this port will be limited to certain IP addresses of the balancer and other system components.
Loki
Loki14mo ago
As far as networking, it just uses the panel user I believe; if your panel is working, your blueprint database connection should be working.
E1ast
E1astOP14mo ago
I thought so too, but no

Did you find this page helpful?