When I install ptero certbot fails the
When I install ptero, certbot fails the challange and fails to make an ssl so the site breaks. If I restart the vps and try with the command that the bot sent it makes one without any problem. But the site gives an rcf error so I unisnstalled it with the script and redownloaded it with the script but after installing the panel it runs in the error ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'pterodactyluser'@'xy.xyz.xyz' when trying to install wings
86 Replies
Reinstall the OS
You have to run the script on a clean system
already did and the same thing happaned
Also the CSRF Error is just an issue with the browser cookies
but it got fixed when I reinstalled it
And you have to clear your cache and cookies & restart the browser or use another browser
but the wings broke
Means: User already exists, not on a clean system
Reinstall the operating system
but when I reinstall the system I get the error IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: gamepanelvps.xxx.com
Type: connection
Detail: xxx.xxx.xxx.xxx: Fetching
http://gamepanelvps.xxx.com/.well-known/acme-challenge/Ur3EefXGxnIowOhYmh6eoqVPJbo8kjnZ2a6sXT5w7Ns:
Error getting validation data
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
* WARNING: The process of obtaining a Let's Encrypt certificate failed!
Your certificates weren't generated.
You need to make sure ports 80, 443 are open.
Also make sure your domains DNS settings are correct.
To try obtaining certificates again use:
pterodactyl-installer/pis-bot@3381b1b
Have you already done that?
Yeah
Do it again
Reinstall the OS like i told you, and try it out again
But when I do it and reinstall ptero
I won't be able to help you like this
Okay
reinstalled
ok
what now?
install?
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: panel.xxx.xxx
Type: connection
Detail: xxx.xxx.xxx.xxx: Fetching
http://xxx.xxx.xxx/.well-known/acme-challenge/bhPk1K0Fqf3mmzTFmU6NaJZK36xPvmNy1u155CO9jdw:
Error getting validation data
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
* WARNING: The process of obtaining a Let's Encrypt certificate failed!
* Still assume SSL? (y/N):
Your certificates weren't generated.
You need to make sure ports 80, 443 are open.
Also make sure your domains DNS settings are correct.
To try obtaining certificates again use:
pterodactyl-installer/pis-bot@3381b1b
see I get this when I install
but when the installation is complete and I restart the vps
and run certbot certonly --standalone -d panel.example.com
it works
Assume SSL
y?
and then you can restart and run certbot, if you are sure it works
okay
and what is wings
Wings is the backend, it runs the servers
oh okay
######################################################################
* Wings installation completed
*
* To continue, you need to configure Wings to run with your panel
* Please refer to the official guide, https://pterodactyl.io/wings/1.0/installing.html#configure
*
* You can either copy the configuration file from the panel manually to /etc/pterodactyl/config.yml
* or, you can use the "auto deploy" button from the panel and simply paste the command in this terminal
*
* You can then start Wings manually to verify that it's working
*
* sudo wings
*
* Once you have verified that it is working, use CTRL+C and then start Wings as a service (runs in the background)
*
* systemctl start wings
*
* Note: It is recommended to enable swap (for Docker, read more about it in official documentation).
######################################################################
Read it
how to edit file if I have a vps?
I have termius
?
Use auto deploy
How?
READ
ohhhhh
Go to your panel administration
Create a node
and use auto deploy
to node.xxx.xxx?
or panel.xxx.xxx
node if you create a node
okay
I have restarted vps installed ssl and restarted again
and now the website is not loading in
what now?
Check status and logs of nginx with
systemctl status nginx
pterodactyl-installer/pis-bot@3381b1b
this is what I get
wdym?
You didn't generate certificates
I did
cannot load certificate "/etc/ssl/panel.orecraft.games.pem"
I ran this command: certbot certonly --standalone -d panel.example.com
Did you replace the domain?
yes
both node and panel
Show me
/etc/nginx/sites-enabled/pterodactyl.conf
can't open it
for some reason
what
what
what applicatio nis taht
why are you accessing it like that
termius
how else canI acces it?
cat filename
here
okay, i know the issue
because you assumed ssl, the script defaults to
/etc/ssl/<certname>
, however let's encrypt generates certificates in /etc/letsencrypt/live/<domain>
so you might have to change the location of the certificates or use certbot nginx like this: certbot --nginx -d panel.orecraft.games
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/ssl/panel.orecraft.games.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssl/panel.orecraft.games.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
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/ssl/panel.orecraft.games.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/ssl/panel.orecraft.games.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n')
did you remove the old ssl certificates
cat remove
and the file?no from the config
and no you can't remove files with cat
I'm sorry I'm not good at this how can I remove it from the config
oh with vim?
I'm sorry but if you have experience in sysadmin or any sort of linux commands then why are you trying to start a hosting company?
I want to host my minecraft server on oracle cloud
And this is the best product for it
Please only use this script when you don't know how to sysadmin or even basic linux commands, come back when you know what you're doing
I figured out how to edit now what do I need to remove?
the key or the cerificate or both?
@sin
please dont leave me
I'm gonna google them
just what do I need to remove from /etc/nginx/sites-enabled/pterodactyl.conf
please
what is it that you are intending to remove
so I don't have to read through this entire conversation
still not enough context
what was the problem
nginx not starting?
Is this enough?
yeah
casue of of invalid ssl
have you obtained a new certificate?
for the same fqdn or a different one?
what do you mean?
yes
for the same fqdn specified in the nginx config or a different one?
I generated for the url that I entered for wings and panel in setup
panel.orecraft.games
and
node.orecraft.games
try obtaining the cert again
you can use
nginx -t
to validate current nginx configit is working
but When I go to https:// it doesn't
only http:// does
what's the fqdn in question
panel.orecraft.games does not seem to listen to 443
run certbot again, use the
--nginx
option and configure redirectswhere can I configure them?
sorry I don't understand your question, what do you mean?
You said configure redirects
yes, certbot has the option to do that
Check status and logs of nginx with
systemctl status nginx
pterodactyl-installer/pis-bot@3381b1b