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
sin
sin3y ago
Reinstall the OS You have to run the script on a clean system
GoldenPuffy
GoldenPuffyOP3y ago
already did and the same thing happaned
sin
sin3y ago
Also the CSRF Error is just an issue with the browser cookies
GoldenPuffy
GoldenPuffyOP3y ago
but it got fixed when I reinstalled it
sin
sin3y ago
And you have to clear your cache and cookies & restart the browser or use another browser
GoldenPuffy
GoldenPuffyOP3y ago
but the wings broke
sin
sin3y ago
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'pterodactyluser'@'xy.xyz.xyz'
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'pterodactyluser'@'xy.xyz.xyz'
Means: User already exists, not on a clean system Reinstall the operating system
GoldenPuffy
GoldenPuffyOP3y ago
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!
pis-support
pis-support3y ago
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:
certbot certonly --standalone -d panel.example.com
certbot certonly --standalone -d panel.example.com
pterodactyl-installer/pis-bot@3381b1b
sin
sin3y ago
Have you already done that?
GoldenPuffy
GoldenPuffyOP3y ago
Yeah
sin
sin3y ago
Do it again Reinstall the OS like i told you, and try it out again
GoldenPuffy
GoldenPuffyOP3y ago
But when I do it and reinstall ptero
sin
sin3y ago
I won't be able to help you like this
GoldenPuffy
GoldenPuffyOP3y ago
Okay reinstalled
sin
sin3y ago
ok
GoldenPuffy
GoldenPuffyOP3y ago
what now?
sin
sin3y ago
install?
GoldenPuffy
GoldenPuffyOP3y ago
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):
pis-support
pis-support3y ago
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:
certbot certonly --standalone -d panel.example.com
certbot certonly --standalone -d panel.example.com
pterodactyl-installer/pis-bot@3381b1b
GoldenPuffy
GoldenPuffyOP3y ago
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
sin
sin3y ago
Assume SSL
GoldenPuffy
GoldenPuffyOP3y ago
y?
sin
sin3y ago
and then you can restart and run certbot, if you are sure it works
GoldenPuffy
GoldenPuffyOP3y ago
okay and what is wings
sin
sin3y ago
Wings is the backend, it runs the servers
GoldenPuffy
GoldenPuffyOP3y ago
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). ######################################################################
sin
sin3y ago
Read it
GoldenPuffy
GoldenPuffyOP3y ago
how to edit file if I have a vps? I have termius
sin
sin3y ago
? Use auto deploy
GoldenPuffy
GoldenPuffyOP3y ago
How?
sin
sin3y ago
READ
GoldenPuffy
GoldenPuffyOP3y ago
ohhhhh
sin
sin3y ago
Go to your panel administration Create a node and use auto deploy
GoldenPuffy
GoldenPuffyOP3y ago
to node.xxx.xxx? or panel.xxx.xxx
sin
sin3y ago
node if you create a node
GoldenPuffy
GoldenPuffyOP3y ago
okay I have restarted vps installed ssl and restarted again and now the website is not loading in
GoldenPuffy
GoldenPuffyOP3y ago
what now?
pis-support
pis-support3y ago
Check status and logs of nginx with systemctl status nginx
pterodactyl-installer/pis-bot@3381b1b
GoldenPuffy
GoldenPuffyOP3y ago
this is what I get wdym?
sin
sin3y ago
You didn't generate certificates
GoldenPuffy
GoldenPuffyOP3y ago
I did
sin
sin3y ago
cannot load certificate "/etc/ssl/panel.orecraft.games.pem"
GoldenPuffy
GoldenPuffyOP3y ago
I ran this command: certbot certonly --standalone -d panel.example.com
sin
sin3y ago
Did you replace the domain?
GoldenPuffy
GoldenPuffyOP3y ago
yes both node and panel
sin
sin3y ago
Show me /etc/nginx/sites-enabled/pterodactyl.conf
GoldenPuffy
GoldenPuffyOP3y ago
can't open it for some reason
sin
sin3y ago
what
sin
sin3y ago
what what applicatio nis taht why are you accessing it like that
GoldenPuffy
GoldenPuffyOP3y ago
termius how else canI acces it?
sin
sin3y ago
cat filename
GoldenPuffy
GoldenPuffyOP3y ago
here
sin
sin3y ago
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
GoldenPuffy
GoldenPuffyOP3y ago
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')
sin
sin3y ago
did you remove the old ssl certificates
GoldenPuffy
GoldenPuffyOP3y ago
cat remove and the file?
sin
sin3y ago
no from the config and no you can't remove files with cat
GoldenPuffy
GoldenPuffyOP3y ago
I'm sorry I'm not good at this how can I remove it from the config oh with vim?
sin
sin3y ago
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?
GoldenPuffy
GoldenPuffyOP3y ago
I want to host my minecraft server on oracle cloud And this is the best product for it
sin
sin3y ago
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
GoldenPuffy
GoldenPuffyOP3y ago
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
vilhelm
vilhelm3y ago
what is it that you are intending to remove so I don't have to read through this entire conversation
vilhelm
vilhelm3y ago
still not enough context what was the problem nginx not starting?
GoldenPuffy
GoldenPuffyOP3y ago
Is this enough? yeah casue of of invalid ssl
vilhelm
vilhelm3y ago
have you obtained a new certificate? for the same fqdn or a different one?
GoldenPuffy
GoldenPuffyOP3y ago
what do you mean? yes
vilhelm
vilhelm3y ago
for the same fqdn specified in the nginx config or a different one?
GoldenPuffy
GoldenPuffyOP3y ago
I generated for the url that I entered for wings and panel in setup panel.orecraft.games and node.orecraft.games
vilhelm
vilhelm3y ago
try obtaining the cert again you can use nginx -t to validate current nginx config
GoldenPuffy
GoldenPuffyOP3y ago
it is working
GoldenPuffy
GoldenPuffyOP3y ago
but When I go to https:// it doesn't only http:// does
vilhelm
vilhelm3y ago
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 redirects
GoldenPuffy
GoldenPuffyOP3y ago
where can I configure them?
vilhelm
vilhelm3y ago
sorry I don't understand your question, what do you mean?
GoldenPuffy
GoldenPuffyOP3y ago
You said configure redirects
vilhelm
vilhelm3y ago
yes, certbot has the option to do that
pis-support
pis-support3y ago
Check status and logs of nginx with systemctl status nginx
pterodactyl-installer/pis-bot@3381b1b

Did you find this page helpful?