Plesk

nginx fails to start on Plesk server: nginx.service start-pre operation timed out, Failed with result ‘timeout’

Symptoms

Cause

Due to enabled OCSP Stapling, nginx tries resolving OCSP URIs during the configuration check, and this operation is slow due to issues with connection to the DNS server which is the first resolver in the file /etc/resolv.conf.

Resolution

  1. Connect to the server using SSH.

  2. Open the file /etc/resolv.conf for editing.

  3. Add one of the server's IP addresses, for example 127.0.0.1, as the first nameserver, and save the file:

    nameserver 127.0.0.1
    nameserver 8.8.8.8
    nameserver 1.1.1.1

Exit mobile version