Hey yall,
Just recently moved our production server from an ubuntu 16 to a new ubuntu 18 server and was able to successfully provision and deploy our multisite subdomain wordpress install with about 43 live sites. Was then able to add another subdomain to group_vars/production/wordpress_sites.yml
and re-provision to add the subdomain to the cert about a week ago.
But for the past couple days, I cannot get the production server to reprovision. Either I get a weird [ERROR! Timeout (12s) waiting for privilege escalation prompt
, or mostly this error (showing “mydomain.com” instead of my actual domain):
TASK [letsencrypt : Generate the certificates] **************************************************
System info:
Ansible 2.7.5; Darwin
Trellis 1.0.1: January 16th, 2019
non-zero return code
fatal: [mydomain.com]: FAILED! => {“changed”: false, “cmd”: ["./renew-certs.py"], “delta”: “0:00:15.841913”, “end”: “2019-02-08 02:52:31.515241”, “rc”: 1, “start”: “2019-02-08 02:52:15.673328”, “stderr”: “”, “stderr_lines”: [], “stdout”: “Generating certificate for mydomain.com\nError while generating certificate for mydomain.com\nTraceback (most recent call last):\n File “/usr/local/letsencrypt/acme_tiny.py”, line 198, in \n main(sys.argv[1:])\n File “/usr/local/letsencrypt/acme_tiny.py”, line 194, in main\n signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)\n File “/usr/local/letsencrypt/acme_tiny.py”, line 140, in get_crt\n e.code, json.loads(e.read().decode(‘utf8’))))\nAttributeError: ‘URLError’ object has no attribute ‘code’”, “stdout_lines”: [“Generating certificate for mydomain.com”, “Error while generating certificate for mydomain.com”, “Traceback (most recent call last):”, " File “/usr/local/letsencrypt/acme_tiny.py”, line 198, in “, " main(sys.argv[1:])”, " File “/usr/local/letsencrypt/acme_tiny.py”, line 194, in main", " signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)", " File “/usr/local/letsencrypt/acme_tiny.py”, line 140, in get_crt", " e.code, json.loads(e.read().decode(‘utf8’))))", “AttributeError: ‘URLError’ object has no attribute ‘code’”]}
some of my settings in wordpress_sites.yml:
multisite:
enabled: true
subdomains: true
ssl:
enabled: true
provider: letsencrypt
hsts_max_age: 31536000
hsts_include_subdomains: true
hsts_preload: true
I’ve tried to be sure I’m using the latest version of trellis and even upgraded ansible to 2.7.5. Running this from a macOs 10.14.2.