root@ns31430768:/etc/nginx/sites-available# sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
root@ns31430768:/etc/nginx/sites-available# sudo ln -s /etc/nginx/sites-available/pterodactyl.conf /etc/nginx/sites-enabled/pterodactyl.conf
ln: failed to create symbolic link '/etc/nginx/sites-enabled/pterodactyl.conf': File exists
#iI have a problem I don't understand
12 messages · Page 1 of 1 (latest)
@vital flicker; Type sudo nginx -t | nc pteropaste.com 99 or sudo systemctl status nginx to find out more more information.
root@ns31430768:/etc/nginx/sites-available# sudo systemctl status nginx
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-11-30 08:27:24 UTC; 1min 41s ago
Docs: man:nginx(8)
Process: 2556 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 3msNov 30 08:27:24 ns31430768 systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Nov 30 08:27:24 ns31430768 nginx[2556]: 2023/11/30 08:27:24 [emerg] 2556#2556: cannot load certificate "/etc/letsencrypt/live/<my-ip>/fullchain.pem": BIO_new_file() failed (SSL: error:800>
Nov 30 08:27:24 ns31430768 nginx[2556]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 30 08:27:24 ns31430768 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 30 08:27:24 ns31430768 systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 30 08:27:24 ns31430768 systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
@vital flicker; Type sudo nginx -t | nc pteropaste.com 99 or sudo systemctl status nginx to find out more more information.
root@ns31430768:/etc/nginx/sites-available# sudo nginx -t | nc pteropaste.com 99
-bash: nc: command not found
2023/11/30 08:31:20 [emerg] 2627#2627: cannot load certificate "/etc/letsencrypt/live/<my-ip>/fullchain.pem": BIO_new_file() failed (SSL: error:80000002:system library::No such file or directory:calling fopen(/etc/letsencrypt/live/<my-ip>/fullchain.pem, r) error:10000080:BIO routines::no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
Ah, @vital flicker, you've stumbled into one of the smaller errors in life, unlike that time I went to Rio...
Anyways, you're just missing netcat on your system. We can fix this easily, just run one of the commands below based on your server OS and you should be up and running quicky.
Ubuntu/Debian Systems: apt install -y netcat
CentOS/RHEL: yum install -y nmap-ncat
root@ns31430768:~# sudo apt install -y netcat
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package netcat is a virtual package provided by:
netcat-openbsd 1.219-1
netcat-traditional 1.10-47
You should explicitly select one to install.
E: Package 'netcat' has no installation candidate
sudo apt install -y netcat-traditional
And then rerun this
root@ns31430768:~# sudo systemctl status nginx
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-11-30 08:27:24 UTC; 3h 41min ago
Docs: man:nginx(8)
CPU: 3msNov 30 08:27:24 ns31430768 systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server...
Nov 30 08:27:24 ns31430768 nginx[2556]: 2023/11/30 08:27:24 [emerg] 2556#2556: cannot load certificate "/etc/letsencrypt/live/<ip-serveur>/fullchain.pem": BIO_new_file() failed (SSL: error:800>
Nov 30 08:27:24 ns31430768 nginx[2556]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 30 08:27:24 ns31430768 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Nov 30 08:27:24 ns31430768 systemd[1]: nginx.service: Failed with result 'exit-code'.
Nov 30 08:27:24 ns31430768 systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server.
@vital flicker; Type sudo nginx -t | nc pteropaste.com 99 or sudo systemctl status nginx to find out more more information.
Unfortunately it doesn't always change the same errors