#Not working panel after fresh install

28 messages · Page 1 of 1 (latest)

rare spindleBOT
#

@keen rain; You don't appear to be providing a password for your database connection. Make sure to provide one in your .env file or all authentication attempts will fail. Open the file and find DB_PASSWORD variable, do not add a new one. Remember to enclose it in double quotes such as DB_PASSWORD="mypassword"

You can open it directly with nano /var/www/pterodactyl/.env. Refresh config cache with cd /var/www/pterodactyl && php artisan config:clear

keen rain
#

there is a password...

#

[2023-05-14 22:01:14] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[HY000] [1045] Access denied for user 'pterodactyl'@'localhost' (using password: NO) (SQL: select * from settings)
[2023-05-14 22:01:14] production.NOTICE: A query exception was encountered while trying to load settings from the database: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'panel.settings' doesn't exist (SQL: select * from settings)
[2023-05-14 22:01:31] production.ERROR: Could not save Pterodactyl\Models\User[]: failed to validate data: {"username":["The username must start and end with alpha-numeric characters and\n contain only letters, numbers, dashes, underscores, and periods."]} {"exception":"[object] (Pterodactyl\Exceptions\Model\DataValidationException(code: 0): Could not save Pterodactyl\Models\User[]: failed to validate data: {"username":["The username must start and end with alpha-numeric characters and\n contain only letters, numbers, dashes, underscores, and periods."]} at /var/www/pterodactyl/app/Models/Model.php:53)

rare spindleBOT
#

@keen rain; You don't appear to be providing a password for your database connection. Make sure to provide one in your .env file or all authentication attempts will fail. Open the file and find DB_PASSWORD variable, do not add a new one. Remember to enclose it in double quotes such as DB_PASSWORD="mypassword"

You can open it directly with nano /var/www/pterodactyl/.env. Refresh config cache with cd /var/www/pterodactyl && php artisan config:clear

keen rain
#

there is a passowrd...

#

please help

#

website says connection refused

#

This site can’t be reached IP refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

keen rain
#

now i get

#

May 14 22:46:03 Testvps systemd[1]: Starting A high performance web server and a reverse proxy server...
May 14 22:46:03 Testvps nginx[16877]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system lib>
May 14 22:46:03 Testvps nginx[16877]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 14 22:46:03 Testvps systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 14 22:46:03 Testvps systemd[1]: nginx.service: Failed with result 'exit-code'.
May 14 22:46:03 Testvps systemd[1]: Failed to start A high performance web server and a reverse proxy server.

rare spindleBOT
#

@keen rain; Type sudo nginx -t | nc pteropaste.com 99 or sudo systemctl status nginx to find out more more information.

keen rain
#

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/ullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live//fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

rare spindleBOT
keen rain
#

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')

rare spindleBOT
#

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

keen rain
#

oot@Testvps:/var/www/pterodactyl# certbot certonly --nginx -d domain
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running nginx -c /etc/nginx/nginx.conf -t.

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

rare spindleBOT
keen rain
#

nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed

rare spindleBOT
keen rain
#

Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] cannot load certificate "/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/letsencrypt/live/panel.cphweb.site/fullchain.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
The

rare spindleBOT
#

@keen rain; Try using the standalone certbot method. Replace the example domain with your own certbot certonly --standalone -d example.com

keen rain
#

FATAL: [May 14 23:02:33.292] failed to configure HTTPS server auto_tls=false error=open /etc/letsencrypt/live/node.cphweb.site/fullchain.pem: no such file or directory

rare spindleBOT
keen rain
#

Problem binding to port 80: Could not bind to IPv4 or IPv6.

rare spindleBOT
#

@keen rain; You already have another service using port 80/443, such as Nginx or Apache.

Use ss -plnt | grep :80 or ss -plnt | grep :443 to find what process is currently using the port(s) and stop it.

Most likely, it would be systemctl stop nginx or systemctl stop apache2

silver storm
#

Read what you've actually written.

#

You've squished two different commands together

#

Please make sure you read though the instructions and command and not just blindly copy paste