{"action":"created","issue":{"url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/103","repository_url":"https://api.github.com/repos/bdangit/chef-influxdb","labels_url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/103/comments","events_url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/103/events","html_url":"https://github.com/bdangit/chef-influxdb/issues/103","id":139141771,"number":103,"title":"Debian systemd error","user":{"login":"sergioasantiago","id":875058,"avatar_url":"https://avatars.githubusercontent.com/u/875058?v=3","gravatar_id":"","url":"https://api.github.com/users/sergioasantiago","html_url":"https://github.com/sergioasantiago","followers_url":"https://api.github.com/users/sergioasantiago/followers","following_url":"https://api.github.com/users/sergioasantiago/following{/other_user}","gists_url":"https://api.github.com/users/sergioasantiago/gists{/gist_id}","starred_url":"https://api.github.com/users/sergioasantiago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergioasantiago/subscriptions","organizations_url":"https://api.github.com/users/sergioasantiago/orgs","repos_url":"https://api.github.com/users/sergioasantiago/repos","events_url":"https://api.github.com/users/sergioasantiago/events{/privacy}","received_events_url":"https://api.github.com/users/sergioasantiago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-08T00:59:29Z","updated_at":"2016-03-10T06:28:37Z","closed_at":null,"body":"Debian Jessie\r\nChef 12.7.2\r\nchef-influxdb cookbook 4.1.0\r\n\r\nI'm trying to start influxdb service using the default config in Debian jessie, but I m getting the following error:\r\n\r\n```\r\nStarting Chef Client, version 12.7.2\r\nCompiling Cookbooks...   \r\nRecipe: delorean::influxdb\r\n  * chef_gem[vault] action install (up to date)\r\n  Converging 17 resources\r\n  * apt_package[lsb-release] action install (up to date)\r\nRecipe: influxdb::default\r\n  * chef_gem[toml-rb] action install (up to date)\r\n  * chef_gem[influxdb] action install (up to date)\r\n  * apt_package[apt-transport-https] action install (up to date)\r\n  * apt_repository[influxdb] action add\r\n    * remote_file[/var/chef/cache/influxdb.key] action create (up to date)\r\n    * execute[install-key influxdb.key] action run (skipped due to not_if)\r\n    * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)\r\n    * execute[apt-cache gencaches] action nothing (skipped due to action :nothing)\r\n    * execute[apt-get update] action nothing (skipped due to action :nothing)\r\n    * file[/etc/apt/sources.list.d/influxdb.list] action create (up to date)\r\n     (up to date)\r\n  * apt_package[influxdb] action install (up to date)\r\n  * influxdb_config[/etc/init/influxdb.conf] action create\r\n    * file[/etc/init/influxdb.conf] action create (up to date)\r\n     (up to date)\r\n  * service[influxdb] action enable\r\n\r\n    ================================================================================\r\n    Error executing action `enable` on resource 'service[influxdb]'\r\n    ================================================================================\r\n\r\n    Errno::ENOENT\r\n    -------------\r\n    No such file or directory - /sbin/status\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /chef/docker-cookbooks/influxdb/recipes/default.rb\r\n\r\n     39: service 'influxdb' do\r\n     40:   action [:enable, :start]\r\n     41: end\r\n\r\n    Compiled Resource:   \r\n    ------------------   \r\n    # Declared in /chef/docker-cookbooks/influxdb/recipes/default.rb:39:in `from_file'\r\n\r\n    service(\"influxdb\") do\r\n      action [:enable, :start]\r\n      supports {:restart=>nil, :reload=>nil, :status=>nil}\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      service_name \"influxdb\"\r\n      pattern \"influxdb\" \r\n      declared_type :service\r\n      cookbook_name :influxdb\r\n      recipe_name \"default\"\r\n    end\r\n```\r\n\r\nIf I install upstart package in Debian, I m able to run the default recipe, but If I try to start the service, even if it doesn't throws any error, InfluxDB just doesn't start.\r\n\r\n```\r\nStarting Chef Client, version 12.7.2\r\nCompiling Cookbooks...\r\nConverging 1 resources\r\nRecipe: mycookbook::influxdb\r\n  * service[influxdb] action enable\r\n    - enable service service[influxdb]\r\n  * service[influxdb] action start\r\n    - start service service[influxdb]\r\n\r\nRunning handlers:\r\nRunning handlers complete\r\nChef Client finished, 2/2 resources updated in 02 seconds\r\n\r\nroot@7b49e4f0e13b:/chef# ps auxw | grep influx\r\nroot     32655  0.0  0.0  12816  1692 ?        S+   00:58   0:00 grep influx\r\n```\r\n\r\nAny idea why it's happening? Any suggestion on how to work it around?"},"comment":{"url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/comments/194694044","html_url":"https://github.com/bdangit/chef-influxdb/issues/103#issuecomment-194694044","issue_url":"https://api.github.com/repos/bdangit/chef-influxdb/issues/103","id":194694044,"user":{"login":"bdangit","id":933465,"avatar_url":"https://avatars.githubusercontent.com/u/933465?v=3","gravatar_id":"","url":"https://api.github.com/users/bdangit","html_url":"https://github.com/bdangit","followers_url":"https://api.github.com/users/bdangit/followers","following_url":"https://api.github.com/users/bdangit/following{/other_user}","gists_url":"https://api.github.com/users/bdangit/gists{/gist_id}","starred_url":"https://api.github.com/users/bdangit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdangit/subscriptions","organizations_url":"https://api.github.com/users/bdangit/orgs","repos_url":"https://api.github.com/users/bdangit/repos","events_url":"https://api.github.com/users/bdangit/events{/privacy}","received_events_url":"https://api.github.com/users/bdangit/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T06:28:37Z","updated_at":"2016-03-10T06:28:37Z","body":"hi @sergioasantiago containers don't have access to systemd as somewhat described in the article.  If you want access to the systemd service, you can run the container with /sbin/init and in privileged mode.  This is what we did to be able to test this cookbook with kitchen-docker https://github.com/bdangit/chef-influxdb/blob/master/.kitchen-docker.yml#L30\r\n\r\nI guess a question I have is why would you want to run influxdb in a container?"}}