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.