Having issues with Ngixn configuration on Vultr VPS service

Hey there,

Trying to see if I could install the free SSL on a one-click WordPress site via Vultr and running into issues. It is using Ubuntu 16.04 x64 4.9.4 and I have followed the instructions from this guide up until the renew certificate step:

https://www.vultr.com/docs/install-lets-encrypt-ssl-on-one-click-wordpress-app

This is the error I get:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for mgpaper.co
http-01 challenge for www.mgpaper.co
nginx: [error] invalid PID number “” in “/var/run/nginx.pid”
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.mgpaper.co (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.mgpaper.co

IMPORTANT NOTES:

  • The following errors were reported by the server:

    Domain: www.mgpaper.co
    Type: None
    Detail: DNS problem: NXDOMAIN looking up A for www.mgpaper.co

  • 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.
    root@guest:~# nano /etc/nginx/conf.d/wordpress_http.conf
    root@guest:~# service nginx start
    Job for nginx.service failed because the control process exited with error code. See “systemctl status nginx.service” and “journalctl -xe” for details.

    indent preformatted text by 4 spaces

Not sure what the issue is and how I can fix it. It’s a test site to see if and how the certificate can work. My domian is pointing to the A record address and I have both CNAME’s for mgpaper.co and www.mgpaper.co pointing to the ip.

Any help is mucho appreciado as I am a bit new to this.

Hi,

Doing a nslookup will show that www.mgpaper.co does not have a valid a record… (Neither CNAME)

Please add the www site and corresponding IP address to your GoDaddy DNS…

Thank you

Name: mgpaper.co
Address: 149.28.232.29

Name: www.mgpaper.co
Address: *** UnKnown can’t find www.mgpaper.co: Non-existent domain

There is a CNAME called “www.mgpaper.co.mgpaper.co.”:

www.mgpaper.co.mgpaper.co. 3600 IN      CNAME   mgpaper.co.
mgpaper.co.             590     IN      A       149.28.232.29

If you wrote “www.mgpaper.co” in a box in GoDaddy’s control panel, you probably need to change it to “www” or “www.mgpaper.co.” with a “.” at the end.

(There’s also a CNAME named “mgpaper.co.mgpaper.co.”, which can be deleted.)

1 Like

I fixed that and it seemed to work, that you all for the help!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.