#API Error while install

1 messages · Page 1 of 1 (latest)

winter cloakBOT
#

How to get support?

  • Search for similar posts first!
  • What have you tried already?
  • Where the error has happened?
  • Provide logs!

Dont's (will get you muted):

  • Post some image or text without context.
  • Post a command you ran without the output,
  • Post just the output.
  • Reply with "i already did that" (See: How to get Support)
  • Post every word as a new message.
  • Ping Staff.
  • Post the same message in multiple channels.

Get Logs:
Laravel / CP.GG: tail -n 100 /var/www/controlpanel/storage/logs/laravel.log | nc pteropaste.com 99
Installer: tail -n 100 /var/www/controlpanel/public/install/logs/installer.log | nc pteropaste.com 99
(NGINX: Are usually in /var/log/nginx/ and got the (sub)domain in the name. There are error and access logs)

ruby niche
#

The error happened in the API section of the install but every time I enter the Key's an error auccures

#
  1. all permissions are set correctly
#
  1. the domain was entered correctly
#
  1. the Key's where entered correctly
winter cloakBOT
# ruby niche Where can I find my 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

ruby niche
winter cloakBOT
ruby niche
#

still: same error

#

😢

ruby niche
winter cloakBOT
winter cloakBOT
#

Can you please fetch the error logs, so we can assist you better regarding this error.
tail -n 100 /var/www/controlpanel/public/install/logs/installer.log | nc pteropaste.com 99

ruby niche
winter cloakBOT
# ruby niche https://pteropaste.com/6n1146ltcsm7

Your panel does not have the right permissions, try giving it some :)
sudo chmod -R 755 /var/www/controlpanel
and
sudo chown -R www-data:www-data /var/www/controlpanel

If you're using the installer, make sure to go back to the beginning and start the installer from step 1

ruby niche
#

hmm

winter cloakBOT
#

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.

ruby niche
#

the password is now closed in "" but still can't login

winter cloakBOT
#

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

ruby niche
#

so what could be the error?

winter cloakBOT
ruby niche
winter cloakBOT
ruby niche
winter cloakBOT
# ruby niche https://pteropaste.com/n7aatqqc2et7

Your panel does not have the right permissions, try giving it some :)
sudo chmod -R 755 /var/www/controlpanel
and
sudo chown -R www-data:www-data /var/www/controlpanel

If you're using the installer, make sure to go back to the beginning and start the installer from step 1