Hi Friends!
I’m struggling with a fresh install using latest Trellis on a fresh Ubuntu 16 LTS. I have ultra paranoid nerds running the data centre. The LetsEncrypt challenge is failing. I’d like to just run the commands myself on the server to track down the error. I’ve manually installed a LetsEncrypt using Certbot and that has worked just fine. So I’m assuming the Trellis gods have set up the LetsEncrypt challenge using a different method.
Does anyone have any insight or can advise me of the challenge method or even just point me at the right lines of code in the repo to look at?
BTW I’ve tried these already fullyint’s suggestions here and here.
It’s here that my server is failing. Test Acme Challenge file
Here is the error after running
ansible-playbook server.yml -e env=production
(Note the A record is set to the server’s IP)
Could not access the challenge file for the hosts/domains:
yf.splendidperch.co. Let's Encrypt requires every domain/host be publicly
accessible. Make sure that a valid DNS record exists for yf.splendidperch.co
and that they point to this server's IP. If you don't want these domains in
your SSL certificate, then remove them from `site_hosts`. See
https://roots.io/trellis/docs/ssl for more details.
failed: [yf.splendidperch.co] (item=yf.splendidperch.co) => {"failed": true, "item": "yf.splendidperch.co"}
And then after running
ansible-playbook server.yml -e env=production --tags wordpress
nginx: [emerg] BIO_new_file("/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-
04685df-bundled.cert") failed (SSL: error:02001002:system library:fopen:No
such file or directory:fopen('/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-
04685df-bundled.cert','r') error:2006D080:BIO routines:BIO_new_file:no such
file)
nginx: configuration file /etc/nginx/nginx.conf test failed
fatal: [yf.splendidperch.co]: FAILED! => {"changed": true, "cmd": ["nginx", "-t"], "delta": "0:00:00.026666", "end": "2017-08-25 02:27:10.214012", "failed": true, "rc": 1, "start": "2017-08-25 02:27:10.187346", "stderr": "nginx: [emerg] BIO_new_file(\"/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-04685df-bundled.cert\") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-04685df-bundled.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file)\nnginx: configuration file /etc/nginx/nginx.conf test failed", "stderr_lines": ["nginx: [emerg] BIO_new_file(\"/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-04685df-bundled.cert\") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/ssl/letsencrypt/yf.splendidperch.co-04685df-bundled.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file)", "nginx: configuration file /etc/nginx/nginx.conf test failed"], "stdout": "", "stdout_lines": []}
Cheers, beers and koala beers y’all
Ian