Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Sep 12, 2025, 06:27 AM

Title: Unable to start nginx service on a Plesk server: nginx.service: start operation
Post by: Suhitha on Sep 12, 2025, 06:27 AM
Question: Unable to start nginx service on a Plesk server: nginx.service: start operation timed out. Terminating.


Applicable to:




Symptoms


systemd[1]: nginx.service start-pre operation timed out. Terminating.
systemd[1]: Failed to start Startup script for nginx service.
systemd[1]: Unit nginx.service entered failed state.
systemd[1]: nginx.service failed.

systemd[1]: nginx.service: start operation timed out. Terminating.
systemd[1]: nginx.service: Failed with result 'timeout'.
systemd[1]: Failed to start Startup script for nginx service.
nginx[14602]: nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/usr/local/psa/var/certificates/scfp55dcd"


# service nginx status | grep Active
Active: activating (start-pre) since Mon 2025-01-01 10:00:00 +08; 35s ago


[warn] 25236#0: "ssl_stapling" ignored, host not found in OCSP responder "r3.o.lencr.org" in the certificate "/usr/local/psa/var/certificates/scfTdclNf"


# curl -I https://www.google.com
HTTP/2 200
...


Cause


The DNS resolver, defined i system configuration, fails to resolve r.o.lencr.org (Let's Encrypt OCSP responder).


Resolution

Apply one of the solutions below:


Solution I: Change DNS resolver in the system

1.Connect to your Plesk server via SSH.

2.Open the file /etc/resolv.conf in a text editor. In this example, we are using the vi editor:


# vi /etc/resolv.conf

3.Comment out the invalid resolver by placing a # (hash) character at the beginning of the line:

# vnameserver 203.0.113.2
4.Add a different DNS resolver, for example Cloudflare DNS:

nameserver 1.1.1.1
5.Save the change and close the file.

Note: /etc/resolv.conf can be overwritten on Ubuntu 18.04 and higher by netplan and systemd-resolved.services. To learn more, see this KB article.

6.Restart nginx service:

# systemctl restart nginx
Note: If the above solution does not help, contact your service provider in order to check the network setup.



Solution II: Disable OSCP check

1.Connect to your Plesk server via SSH.

2.Disable OCSP check for all domains:

# for file in $(grep -iRl 'ssl_stapling' /var/www/vhosts/system/*/conf/*.conf); do sed -i '/ssl_stapling/ s/^/#/' "$file"; done
Note: The long execution of the OCSP queries is likely a temporary issue. The OCSP support can be enabled anew with the following command:

# for file in $(grep -iRl 'ssl_stapling' /var/www/vhosts/system/*/conf/*.conf); do sed -i 's/^*ssl_stapling/ ssl_stapling/' "$file"; done