{"action":"closed","issue":{"url":"https://api.github.com/repos/roots/trellis/issues/651","repository_url":"https://api.github.com/repos/roots/trellis","labels_url":"https://api.github.com/repos/roots/trellis/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/roots/trellis/issues/651/comments","events_url":"https://api.github.com/repos/roots/trellis/issues/651/events","html_url":"https://github.com/roots/trellis/issues/651","id":174576963,"number":651,"title":"\"service not found\" in Let's Encrypt renewal job","user":{"login":"joshrickert","id":3495636,"avatar_url":"https://avatars.githubusercontent.com/u/3495636?v=3","gravatar_id":"","url":"https://api.github.com/users/joshrickert","html_url":"https://github.com/joshrickert","followers_url":"https://api.github.com/users/joshrickert/followers","following_url":"https://api.github.com/users/joshrickert/following{/other_user}","gists_url":"https://api.github.com/users/joshrickert/gists{/gist_id}","starred_url":"https://api.github.com/users/joshrickert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshrickert/subscriptions","organizations_url":"https://api.github.com/users/joshrickert/orgs","repos_url":"https://api.github.com/users/joshrickert/repos","events_url":"https://api.github.com/users/joshrickert/events{/privacy}","received_events_url":"https://api.github.com/users/joshrickert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-01T17:09:40Z","updated_at":"2016-09-04T22:30:51Z","closed_at":"2016-09-04T22:30:51Z","body":"## Submit a feature request or bug report\r\n\r\n- [x] I've read the [guidelines for Contributing to Roots Projects](https://github.com/roots/guidelines/blob/master/CONTRIBUTING.md)\r\n- [ ] This is a feature request\r\n- [x] This is a bug report\r\n- [x] This request isn't a duplicate of an [existing issue](https://github.com/roots/trellis/issues)\r\n- [x] I've read the [docs](https://roots.io/trellis/docs) and followed them (if applicable)\r\n\r\n---\r\n\r\n**What is the current behavior?**\r\n\r\nDuring Let's Encrypt renewal cron job, `service nginx reload` fails with this message:\r\n\r\n> /bin/sh: 1: service: not found\r\n\r\n**What is the expected or desired behavior?**\r\n\r\nnginx should reload after running the renewal script.\r\n\r\n---\r\n\r\n## Bug report\r\n\r\n**Please provide steps to reproduce, including full log output:**\r\n\r\nI just provisioned a fresh remote server on Ubuntu 16.04 using Trellis 0.9.8 and Let's Encrypt. When the renewal cron job activated, I received this email:\r\n\r\n> **Subject:**\r\n> Cron <root@myserver> cd /var/lib/letsencrypt && ./renew-certs.py && service nginx reload\r\n> **Message:**\r\n> Certificate file /etc/nginx/ssl/letsencrypt/mysite.com.cert already exists\r\n>  The certificate is younger than 60 days. Not creating a new certificate.\r\n>\r\n> /bin/sh: 1: service: not found\r\n\r\nSo it seems like nginx is not reloading properly after executing the renewal script.\r\n\r\n**Please describe your local environment:**\r\n\r\nAnsible version: 2.1.1.0\r\nOS: MacOS 10.11.6\r\nVagrant version: 1.8.5\r\n\r\n**Where did the bug happen? Development or remote servers?**\r\n\r\nRemote production server.\r\n\r\n**Please provide a repository or your `wordpress_sites` config (if possible):**\r\n\r\n```\r\nwordpress_sites:\r\n  mysite.com:\r\n    site_hosts:\r\n      - canonical: mysite.com\r\n        redirects:\r\n          - www.mysite.com\r\n          - somethingelse.mysite.com\r\n    local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root)\r\n    repo: git@bitbucket.org:MyAccount/mysite.com.git\r\n    branch: master\r\n    # repo_subtree_path: site # relative path to your Bedrock/WP directory in your repo\r\n    site_install: true\r\n    site_title: Site title\r\n    db_create: true\r\n    db_import: ../database/mysite_wordpress_prod.sql\r\n    multisite:\r\n      enabled: false\r\n    ssl:\r\n      enabled: true\r\n      provider: letsencrypt\r\n    cache:\r\n      enabled: true\r\n      duration: 30s\r\n    env:\r\n      disable_wp_cron: true\r\n      db_name: mysite_wordpress_prod\r\n      db_user: myname_wp\r\n      # Define the following variables in group_vars/production/vault.yml\r\n      # db_password:\r\n      # auth_key:\r\n      # secure_auth_key:\r\n      # logged_in_key:\r\n      # nonce_key:\r\n      # auth_salt:\r\n      # secure_auth_salt:\r\n      # logged_in_salt:\r\n      # nonce_salt:\r\n\r\n```\r\n\r\n**Is there a related [Discourse](https://discourse.roots.io/) thread or were any utilized (please link them)?**\r\n\r\nNot that I can see."}}
{"actor":{"display_login":"swalkinshaw"}}