#500 Server Error

8 messages · Page 1 of 1 (latest)

leaden reef
#

Whenever i go to databases, nests or want to delete server from admin menu, it gives me 500 Server Error. What should I do?

sweet elbowBOT
#

Hey @leaden reef! Post your Panel logs to find out more information about the cause of your 500 server errors tail -n 150 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log | nc pteropaste.com 99

leaden reef
sweet elbowBOT
#

I have found the following for: https://ptero.co/pexanimaza
🇫🇷 🥖 Bienvenue sur Internet, @leaden reef 🥖 🇫🇷

Your database is refusing the Panel'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(hopefully not down the road)
  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://pterodactyl.io/tutorials/mysql_setup.html

#

There were too many logs to read @leaden reef. Please post 5 or less. Alternatively, please share larger logs using paste sites, such as pteropaste or hastebin.

fading forge
#

@leaden reef is this a new panel install? do you even have any servers installed yet?
if not, i do recommend just reinstalling the panel from 0, as the tutorial is specifically made for ptero to not cause install errors. its all about reading it fully

#

if its not a new one please open bash, enter mysql shell and run these commands and provide me their output:

SHOW TABLES IN panel;
SELECT * FROM mysql.db WHERE Db = 'panel';
SELECT User FROM mysql.db WHERE Db = 'panel';
sweet elbowBOT
#

You are expected to understand how to read documentation to use this Panel. We have spent many hours detailing how to install or upgrade our software. Please, take some time and read rather than copy and pasting and then complaining when things do not work.

If you expect to be able to install this with no understanding of basic linux system administration you should stop and turn around now