{"action":"created","issue":{"url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/15","labels_url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/15/comments","events_url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/15/events","html_url":"https://github.com/onddo/dovecot-cookbook/issues/15","id":95232517,"number":15,"title":"On Debian Jessie service reload fails due to not supported reload method","user":{"login":"kleini","id":1384369,"avatar_url":"https://avatars.githubusercontent.com/u/1384369?v=3","gravatar_id":"","url":"https://api.github.com/users/kleini","html_url":"https://github.com/kleini","followers_url":"https://api.github.com/users/kleini/followers","following_url":"https://api.github.com/users/kleini/following{/other_user}","gists_url":"https://api.github.com/users/kleini/gists{/gist_id}","starred_url":"https://api.github.com/users/kleini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleini/subscriptions","organizations_url":"https://api.github.com/users/kleini/orgs","repos_url":"https://api.github.com/users/kleini/repos","events_url":"https://api.github.com/users/kleini/events{/privacy}","received_events_url":"https://api.github.com/users/kleini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T16:13:49Z","updated_at":"2015-07-15T16:41:44Z","closed_at":null,"body":"       Recipe: dovecot::service\r\n       \r\n           \r\n           ================================================================================\r\n           Error executing action `reload` on resource 'service[dovecot]'\r\n           ================================================================================\r\n           \r\n           Mixlib::ShellOut::ShellCommandFailed\r\n           ------------------------------------\r\n           Expected process to exit with [0], but received '3'\r\n           ---- Begin output of /bin/systemctl reload dovecot ----\r\n           STDOUT: \r\n           STDERR: Failed to reload dovecot.service: Job type reload is not applicable for unit dovecot.service.\r\n           ---- End output of /bin/systemctl reload dovecot ----\r\n           Ran /bin/systemctl reload dovecot returned 3\r\n           \r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cookbooks/dovecot/recipes/service.rb\r\n           \r\n            22: service 'dovecot' do\r\n            23:   supports restart: true, reload: true, status: true\r\n            24:   if node['platform'] == 'ubuntu' &&\r\n            25:      Gem::Version.new(node['platform_version']) >= Gem::Version.new('13.10')\r\n            26:     provider Chef::Provider::Service::Upstart\r\n            27:   end\r\n            28:   action [:enable, :start]\r\n           \r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cookbooks/dovecot/recipes/service.rb:22:in `from_file'\r\n           \r\n           service(\"dovecot\") do\r\n         action [:enable, :start]\r\n             updated true\r\n         supports {:restart=>true, :reload=>true, :status=>true}\r\n             retries 0\r\n             retry_delay 2\r\n       \r\n             service_name \"dovecot\"\r\n         enabled true\r\n             running true\r\n         pattern \"dovecot\"\r\n             declared_type :service\r\n         cookbook_name :dovecot\r\n             recipe_name \"service\"\r\n       \r\n       \r\n       \r\n         * service[postfix] action restart\r\n           - restart service service[postfix]\r\n       \r\n       Running handlers:\r\n       [2015-07-15T15:06:07+00:00] ERROR: Running exception handlers\r\n       Running handlers complete\r\n       [2015-07-15T15:06:07+00:00] ERROR: Exception handlers complete\r\n       Chef Client failed. 205 resources updated in 603.232018269 seconds\r\n       [2015-07-15T15:06:07+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out\r\n       [2015-07-15T15:06:07+00:00] ERROR: service[dovecot] (dovecot::service line 22) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '3'\r\n       ---- Begin output of /bin/systemctl reload dovecot ----\r\n       STDOUT: \r\n       STDERR: Failed to reload dovecot.service: Job type reload is not applicable for unit dovecot.service.\r\n       ---- End output of /bin/systemctl reload dovecot ----\r\n       Ran /bin/systemctl reload dovecot returned 3\r\n       [2015-07-15T15:06:07+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n>>>>>> Converge failed on instance <default-debian-80>.\r\n>>>>>> Please see .kitchen/logs/default-debian-80.log for more details\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: SSH exited (1) for command: [sh -c '\r\n\r\nsudo -E /opt/chef/bin/chef-solo --config /tmp/kitchen/solo.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json\r\n']\r\n>>>>>> ----------------------\r\n\r\nThe dovecot packages on Debian Jessie do not seem to provide a systemd unit script. Instead systemd does a fallback to the LSB init scripts. This fallback seems to fail for the \"reload\" action.\r\n\r\nIs there a possibility to disable the reload action of the dovecot service?"},"comment":{"url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/comments/121673509","html_url":"https://github.com/onddo/dovecot-cookbook/issues/15#issuecomment-121673509","issue_url":"https://api.github.com/repos/onddo/dovecot-cookbook/issues/15","id":121673509,"user":{"login":"zuazo","id":1878434,"avatar_url":"https://avatars.githubusercontent.com/u/1878434?v=3","gravatar_id":"","url":"https://api.github.com/users/zuazo","html_url":"https://github.com/zuazo","followers_url":"https://api.github.com/users/zuazo/followers","following_url":"https://api.github.com/users/zuazo/following{/other_user}","gists_url":"https://api.github.com/users/zuazo/gists{/gist_id}","starred_url":"https://api.github.com/users/zuazo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuazo/subscriptions","organizations_url":"https://api.github.com/users/zuazo/orgs","repos_url":"https://api.github.com/users/zuazo/repos","events_url":"https://api.github.com/users/zuazo/events{/privacy}","received_events_url":"https://api.github.com/users/zuazo/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T16:41:43Z","updated_at":"2015-07-15T16:41:43Z","body":"@kleini, thanks for the report.\r\n\r\nI think we should disable it in that distribution version. Give me a couple of days, because there are no tests for that version."}}