#504 error
1 messages · Page 1 of 1 (latest)
Read error message
Ok, then
- Go to /admin/overview/sync page
- Send logs
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Do u use any addons?
ptero or ctrl
ctrlpanel
no
Hm, check your smtp configuration
Hello MrWeez, can i somehow backup the ctrlpanel and restore it on new VPS?
SQLSTATE[HY000] [2002] Connection timed out
Your database is refusing the dashboard's attempts to connect to it. This can be for a number of different reasons so I'll let a human double check, but here are some ideas.
- Is your MySQL instance running?
systemctl status mysql - Is the user you're trying to connect with authorized to access the given database from this IP address?
- Did you correctly give that user permission to even access that database?
- Do you have a Firewall that is blocking connections?
- Is your MySQL instance bound to
127.0.0.1orlocalhostand you're trying to connect from outside the server? - Does the user have
GRANTpermissions if you're trying to use them to create a new database for a server? - Have special characters in your password? Make sure
DB_PASSWORDin your.envfile is enclosed in double quotes
Here is some additional documentation to help you out: https://CtrlPanel.gg/docs/Installation/getting-started#database-setup
——————————-
credits to pterodactyl team for making this good message
It is recommended that you have some sort of Linux and MariaDB experience before installing this.
what i need to make if i changed the IP address of the server
?
I would recommend restarting the server
And don't forget to change ip in the A or AAA records
i did
i did
but i have this error
504 error
Check your database connection
Your database is refusing the dashboard's attempts to connect to it. This can be for a number of different reasons so I'll let a human double check, but here are some ideas.
- Is your MySQL instance running?
systemctl status mysql - Is the user you're trying to connect with authorized to access the given database from this IP address?
- Did you correctly give that user permission to even access that database?
- Do you have a Firewall that is blocking connections?
- Is your MySQL instance bound to
127.0.0.1orlocalhostand you're trying to connect from outside the server? - Does the user have
GRANTpermissions if you're trying to use them to create a new database for a server? - Have special characters in your password? Make sure
DB_PASSWORDin your.envfile is enclosed in double quotes
Here is some additional documentation to help you out: https://CtrlPanel.gg/docs/Installation/getting-started#database-setup
——————————-
credits to pterodactyl team for making this good message
It is recommended that you have some sort of Linux and MariaDB experience before installing this.
hm?
can u help me please
hi
lets see hmm
you know how can i fix this?
yes I think i do
lets go
run systemctl status php8.1-fpm
Our installation guide can be found at: https://CtrlPanel.gg
ControlPanel's Dashboard is a free and open-source management panel for pterodactyl with credit based billing and lots of customization.
okay
what's the resource using on this machine? like current RAM and CPU usage
it might be happening because of full resource usage, php-fpm not getting to process the request
ram is 2.5gb/8gb and cpu is 4Cores
cpu usage is 1%
@granite sail do you want to try reinstall the panel? the database can stay there but the panel reinstallation might prove usefil
it just reinstallaton of the panel files
the database are kept seperate, tho im not sure if it will force to reinstall the database
so idk
SQLSTATE[HY000] [2002] Connection timed out (SQL: select column_name as `column_name` from information_schema.columns where table_schema = controlpanel and table_name = useful_links) ```
Check your database connection. This problem is not related to cpgg.
how
Use Google, ChatGPT or contact mariadb support.
what if i reinstall database?
Idk, I'm not your system administrator, and I don't know if you did everything right.
¯_(ツ)_/¯
This error indicates that your database connection timed out while trying to execute the SQL query. Here are a few steps you can take to troubleshoot and fix this issue:
-
Check Database Connection Settings: Ensure that your database connection settings in your application configuration are correct. Double-check the host, port, username, password, and database name.
-
Verify Database Availability: Make sure that your database server is up and running and can accept connections from your application. You can try connecting to the database using a database client or command-line tool.
-
Check Firewall and Network Settings: Ensure that there are no firewall rules or network configurations blocking the connection between your application server and the database server. Check if the port used for database connections is open and accessible.
-
Increase Connection Timeout: If the connection timeout is too short, consider increasing it in your database configuration or application settings. This can help prevent timeouts during long-running queries or periods of high traffic.
-
Optimize SQL Queries: If the issue persists, optimize your SQL queries to reduce the time it takes to execute them. This can include adding indexes to columns used in WHERE clauses, optimizing JOINs, and reducing the amount of data fetched.
-
Check Server Logs: Look into the server logs for both your application and database server to see if there are any error messages or warnings that can provide more insight into the cause of the timeout.
By following these steps and identifying the root cause of the timeout, you should be able to resolve the SQLSTATE[HY000] [2002] Connection timed out error.
how i can change ip in database ubuntu
We are not mariadb support.
Hey, can u help me with this?
When i want create server then it show this
Wings is not running
Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Contact ptero support
Done
Hello, why when someone create server then it add port 25565 on IP 92.118.207.48 and not 185.172.175.25 with port what is on the node?
cpgg uses the ports that you have created in the node settings in pterodactyl
So this is due to the fact that you have specified the wrong ip for allocations in pterodactyl
I have set good port with good IP