#504 error

1 messages · Page 1 of 1 (latest)

granite sail
#

Hey, i cant delete this message.

#

can someone help me to fix this?

near shale
#

Read error message

granite sail
#

i read

near shale
#

Ok, then

  1. Go to /admin/overview/sync page
  2. Send logs
bright geyserBOT
#

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

granite sail
near shale
#

Do u use any addons?

granite sail
#

ptero or ctrl

near shale
#

ctrlpanel

granite sail
#

no

near shale
#

Hm, check your smtp configuration

granite sail
near shale
#

Read the docs

#

It is written there

granite sail
near shale
#

Send nginx logs

#

tail -n 100 /var/log/nginx/error.log | nc pteropaste.com 99

granite sail
near shale
#

SQLSTATE[HY000] [2002] Connection timed out

bright geyserBOT
#

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.

  1. Is your MySQL instance running? systemctl status mysql
  2. Is the user you're trying to connect with authorized to access the given database from this IP address?
  3. Did you correctly give that user permission to even access that database?
  4. Do you have a Firewall that is blocking connections?
  5. Is your MySQL instance bound to 127.0.0.1 or localhost and you're trying to connect from outside the server?
  6. Does the user have GRANT permissions if you're trying to use them to create a new database for a server?
  7. Have special characters in your password? Make sure DB_PASSWORD in your .env file 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.

granite sail
#

what i need to make if i changed the IP address of the server

granite sail
#

?

near shale
#

And don't forget to change ip in the A or AAA records

granite sail
#

but i have this error

#

504 error

near shale
#

Check your database connection

bright geyserBOT
#

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.

  1. Is your MySQL instance running? systemctl status mysql
  2. Is the user you're trying to connect with authorized to access the given database from this IP address?
  3. Did you correctly give that user permission to even access that database?
  4. Do you have a Firewall that is blocking connections?
  5. Is your MySQL instance bound to 127.0.0.1 or localhost and you're trying to connect from outside the server?
  6. Does the user have GRANT permissions if you're trying to use them to create a new database for a server?
  7. Have special characters in your password? Make sure DB_PASSWORD in your .env file 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.

granite sail
granite sail
#

hm?

granite sail
#

can u help me please

fading void
#

hi

granite sail
#

hi

fading void
#

lets see hmm

granite sail
#

you know how can i fix this?

fading void
#

yes I think i do

granite sail
#

lets go

fading void
#

run systemctl status php8.1-fpm

granite sail
#

k 1 sec

fading void
#

huh

#

what does your latest nginx logs show

granite sail
#

this

bright geyserBOT
fading void
#

oh, systemctl status mysql

#

what's the status of this

granite sail
fading void
#

that's really strange hmmmmmm

#

send your nginx config for cpgg as well

granite sail
#

this?

fading void
#

yep yep

#

and run this command and send output tail -n 100 /var/log/nginx/error.log

granite sail
fading void
#

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

granite sail
#

cpu usage is 1%

fading void
#

hm then I don't know what could be the issue

#

try restarting nginx and php8.1-fpm

granite sail
#

restarted

#

and still same error

kind girder
#

@granite sail do you want to try reinstall the panel? the database can stay there but the panel reinstallation might prove usefil

granite sail
#

i will do anything that cant delete servers, users etc

#

@kind girder

kind girder
#

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

near shale
#

Reinstalling the files will not help.

#

Send laravel logs

kind girder
#

oh it usually does for me so

#

and it did for me

#

but yh do that first

granite sail
near shale
#
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.
granite sail
#

i changed IP of the server

#

is it bad?

near shale
granite sail
#

what if i reinstall database?

near shale
near shale
#

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

granite sail
#

how i can change ip in database ubuntu

near shale
#

We are not mariadb support.

granite sail
#

When i want create server then it show this

near shale
#

Wings is not running

granite sail
bright geyserBOT
#

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

granite sail
near shale
granite sail
#

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?

near shale
#

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

granite sail
#

I have set good port with good IP