Dukemaster
Regular Pleskian
Hi,
like every sunday a cronjob creating dhparam certificates was successfully done, but the all 4 .pem(s) in /etc/dhparam are empty with 0 byte.
nginx -t failed
here another
Do you know how to fix the error or restore the configuration.
Lots of greets
like every sunday a cronjob creating dhparam certificates was successfully done, but the all 4 .pem(s) in /etc/dhparam are empty with 0 byte.
nginx -t failed
Code:
root@server:~# nginx -t
nginx: [emerg] PEM_read_bio_DHparams("/etc/dhparam/dhparam4096.pem") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: DH PARAMETERS)
nginx: configuration file /etc/nginx/nginx.conf test failed
Code:
systemctl status nginx.service
● nginx.service - Startup script for nginx service
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-10-08 22:30:35 CEST; 42min ago
Process: 7237 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 2200 ExecReload=/bin/kill -s HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 2196 ExecReload=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 2193 ExecReload=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
Process: 3480 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 7246 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 7242 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=0/SUCCESS)
Main PID: 3484 (code=exited, status=0/SUCCESS)
Oct 08 22:30:35 server.example.com systemd[1]: Starting Startup script for nginx service...
Oct 08 22:30:35 server.example.com nginx[7246]: nginx: [emerg] PEM_read_bio_DHparams("/etc/dhparam/dhparam4096.pem") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expectin
Oct 08 22:30:35 server.example.com nginx[7246]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 08 22:30:35 server.example.com systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 08 22:30:35 server.example.com systemd[1]: Failed to start Startup script for nginx service.
Oct 08 22:30:35 server.example.com systemd[1]: nginx.service: Unit entered failed state.
Oct 08 22:30:35 server.example.com systemd[1]: nginx.service: Failed with result 'exit-code'.
Do you know how to fix the error or restore the configuration.
Lots of greets
Last edited: