{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/601","repository_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch","labels_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/601/labels{/name}","comments_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/601/comments","events_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/601/events","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/601","id":245436515,"number":601,"title":"deb installation at debian jessie fails","user":{"login":"dmigous","id":4715133,"avatar_url":"https://avatars1.githubusercontent.com/u/4715133?v=4","gravatar_id":"","url":"https://api.github.com/users/dmigous","html_url":"https://github.com/dmigous","followers_url":"https://api.github.com/users/dmigous/followers","following_url":"https://api.github.com/users/dmigous/following{/other_user}","gists_url":"https://api.github.com/users/dmigous/gists{/gist_id}","starred_url":"https://api.github.com/users/dmigous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmigous/subscriptions","organizations_url":"https://api.github.com/users/dmigous/orgs","repos_url":"https://api.github.com/users/dmigous/repos","events_url":"https://api.github.com/users/dmigous/events{/privacy}","received_events_url":"https://api.github.com/users/dmigous/received_events","type":"User","site_admin":false},"labels":[{"id":11211349,"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/labels/bug","name":"bug","color":"e10c02","default":true},{"id":308736978,"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/labels/upstream","name":"upstream","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-25T15:15:54Z","updated_at":"2017-07-25T15:26:33Z","closed_at":null,"body":"Trying to install elasticsearch inside docker container using chef cookbook-elasticsearch\r\n\r\nHere is part of my cookbook:\r\n\r\n```\r\napt_repository 'stretch-testing' do\r\n  uri          'http://ftp2.de.debian.org/debian/'\r\n  distribution 'testing'\r\n  components ['main', 'contrib', 'non-free']\r\n  action :add\r\nend\r\n\r\n# Install OpenJDK Java\r\nnode.default['java']['jdk_version'] = '8'\r\nnode.default['java']['install_flavor'] = 'openjdk'\r\ninclude_recipe 'java'\r\n\r\n# Install Elasticksearch\r\nelasticsearch_install 'es_installation' do\r\n  type 'package' # type of install\r\n  version '5.5.0'\r\n  action :install # could be :remove as well\r\nend\r\n```\r\n\r\nResults in error:\r\n```\r\nSynchronizing Cookbooks:\r\n  - rubber (0.1.0)\r\n  - application_ruby (4.1.0)\r\n  - poise-ruby-build (1.1.0)\r\n  - java (1.50.0)\r\n  - elasticsearch (3.2.1)\r\n  - poise (2.8.1)\r\n  - application (5.2.0)\r\n  - poise-ruby (2.3.0)\r\n  - poise-service (1.5.2)\r\n  - poise-build-essential (1.0.0)\r\n  - poise-git (1.0.0)\r\n  - apt (2.9.2)\r\n  - windows (3.1.1)\r\n  - homebrew (4.2.0)\r\n  - yum (5.0.1)\r\n  - chef-sugar (3.4.0)\r\n  - ark (3.1.0)\r\n  - poise-languages (2.1.1)\r\n  - ohai (5.1.0)\r\n  - build-essential (8.0.3)\r\n  - seven_zip (2.0.2)\r\n  - poise-archive (1.5.0)\r\n  - mingw (2.0.1)\r\nInstalling Cookbook Gems:\r\nCompiling Cookbooks...\r\nConverging 14 resources\r\nRecipe: rubber::default\r\n  * apt_repository[stretch-testing] action add\r\n    * execute[apt-cache gencaches] action nothing (skipped due to action :nothing)\r\n    * apt_update[stretch-testing] action nothing (skipped due to action :nothing)\r\n    * file[/etc/apt/sources.list.d/stretch-testing.list] action create\r\n      - create new file /etc/apt/sources.list.d/stretch-testing.list\r\n      - update content in file /etc/apt/sources.list.d/stretch-testing.list from none to de7619\r\n      --- /etc/apt/sources.list.d/stretch-testing.list\t2017-07-25 15:07:34.093721328 +0000\r\n      +++ /etc/apt/sources.list.d/.chef-stretch-testing20170725-12-1j93acu.list\t2017-07-25 15:07:34.093721328 +0000\r\n      @@ -1 +1,2 @@\r\n      +deb      \"http://ftp2.de.debian.org/debian/\" testing main contrib non-free\r\n      - change mode from '' to '0644'\r\n      - change owner from '' to 'root'\r\n      - change group from '' to 'root'\r\n    * execute[apt-cache gencaches] action run\r\n      - execute apt-cache gencaches\r\n    * apt_update[stretch-testing] action update\r\n      - force update new lists of packages\r\n      * directory[/var/lib/apt/periodic] action create (up to date)\r\n      * directory[/etc/apt/apt.conf.d] action create (up to date)\r\n      * file[/etc/apt/apt.conf.d/15update-stamp] action create_if_missing (up to date)\r\n      * execute[apt-get -q update] action run\r\n        - execute apt-get -q update\r\n    \r\n  \r\nRecipe: java::notify\r\n  * log[jdk-version-changed] action nothing (skipped due to action :nothing)\r\nRecipe: java::openjdk\r\n  * apt_package[openjdk-8-jdk] action install\r\n    - install version 8u131-b11-2 of package openjdk-8-jdk\r\nRecipe: java::notify\r\n  * log[jdk-version-changed] action write\r\n  \r\nRecipe: java::openjdk\r\n  * apt_package[openjdk-8-jre-headless] action install (up to date)\r\n  * java_alternatives[set-java-alternatives] action set\r\n    - Removing alternative for appletviewer with old prio\r\n    - Add alternative for appletviewer\r\n    - Removing alternative for extcheck with old prio\r\n    - Add alternative for extcheck\r\n    - Removing alternative for idlj with old prio\r\n    - Add alternative for idlj\r\n    - Removing alternative for jar with old prio\r\n    - Add alternative for jar\r\n    - Removing alternative for jarsigner with old prio\r\n    - Add alternative for jarsigner\r\n    - Add alternative for java\r\n    - Removing alternative for javac with old prio\r\n    - Add alternative for javac\r\n    - Removing alternative for javadoc with old prio\r\n    - Add alternative for javadoc\r\n    - Removing alternative for javah with old prio\r\n    - Add alternative for javah\r\n    - Removing alternative for javap with old prio\r\n    - Add alternative for javap\r\n    - Removing alternative for jcmd with old prio\r\n    - Add alternative for jcmd\r\n    - Removing alternative for jconsole with old prio\r\n    - Add alternative for jconsole\r\n    - Removing alternative for jdb with old prio\r\n    - Add alternative for jdb\r\n    - Removing alternative for jdeps with old prio\r\n    - Add alternative for jdeps\r\n    - Removing alternative for jhat with old prio\r\n    - Add alternative for jhat\r\n    - Removing alternative for jinfo with old prio\r\n    - Add alternative for jinfo\r\n    - Add alternative for jjs\r\n    - Removing alternative for jmap with old prio\r\n    - Add alternative for jmap\r\n    - Removing alternative for jps with old prio\r\n    - Add alternative for jps\r\n    - Removing alternative for jrunscript with old prio\r\n    - Add alternative for jrunscript\r\n    - Removing alternative for jsadebugd with old prio\r\n    - Add alternative for jsadebugd\r\n    - Removing alternative for jstack with old prio\r\n    - Add alternative for jstack\r\n    - Removing alternative for jstat with old prio\r\n    - Add alternative for jstat\r\n    - Removing alternative for jstatd with old prio\r\n    - Add alternative for jstatd\r\n    - Add alternative for keytool\r\n    - Removing alternative for native2ascii with old prio\r\n    - Add alternative for native2ascii\r\n    - Add alternative for orbd\r\n    - Add alternative for pack200\r\n    - Add alternative for policytool\r\n    - Removing alternative for rmic with old prio\r\n    - Add alternative for rmic\r\n    - Add alternative for rmid\r\n    - Add alternative for rmiregistry\r\n    - Removing alternative for schemagen with old prio\r\n    - Add alternative for schemagen\r\n    - Removing alternative for serialver with old prio\r\n    - Add alternative for serialver\r\n    - Add alternative for servertool\r\n    - Add alternative for tnameserv\r\n    - Add alternative for unpack200\r\n    - Removing alternative for wsgen with old prio\r\n    - Add alternative for wsgen\r\n    - Removing alternative for wsimport with old prio\r\n    - Add alternative for wsimport\r\n    - Removing alternative for xjc with old prio\r\n    - Add alternative for xjc\r\nRecipe: java::default_java_symlink\r\n  * link[/usr/lib/jvm/default-java] action create\r\n    - create symlink at /usr/lib/jvm/default-java to /usr/lib/jvm/java-8-openjdk-amd64\r\nRecipe: java::set_java_home\r\n  * directory[/etc/profile.d] action create (up to date)\r\n  * template[/etc/profile.d/jdk.sh] action create\r\n    - create new file /etc/profile.d/jdk.sh\r\n    - update content in file /etc/profile.d/jdk.sh from none to 2a5cdf\r\n    --- /etc/profile.d/jdk.sh\t2017-07-25 15:09:36.027962239 +0000\r\n    +++ /etc/profile.d/.chef-jdk20170725-12-ghfrel.sh\t2017-07-25 15:09:36.027962239 +0000\r\n    @@ -1 +1,2 @@\r\n    +export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\r\n    - change mode from '' to '0755'\r\nRecipe: rubber::default\r\n  * elasticsearch_install[es_installation] action install\r\n    * remote_file[/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb] action create\r\n      - create new file /chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\r\n      - update content in file /chef/local-mode-cache/cache/elasticsearch-5.5.0.deb from none to 0942da\r\n      (file sizes exceed 10000000 bytes, diff output suppressed)\r\n      - change mode from '' to '0644'\r\n    * dpkg_package[/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb] action install\r\n      \r\n      ================================================================================\r\n      Error executing action `install` on resource 'dpkg_package[/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb]'\r\n      ================================================================================\r\n      \r\n      Mixlib::ShellOut::ShellCommandFailed\r\n      ------------------------------------\r\n      Expected process to exit with [0], but received '1'\r\n      ---- Begin output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\n      STDOUT: Selecting previously unselected package elasticsearch.\r\n      (Reading database ... 52491 files and directories currently installed.)\r\n      Preparing to unpack .../cache/elasticsearch-5.5.0.deb ...\r\n      Creating elasticsearch group... OK\r\n      Creating elasticsearch user... OK\r\n      Unpacking elasticsearch (5.5.0) ...\r\n      Setting up elasticsearch (5.5.0) ...\r\n      Processing triggers for systemd (215-17+deb8u7) ...\r\n      STDERR: Failed to get D-Bus connection: Unknown error -1\r\n      dpkg: error processing package elasticsearch (--install):\r\n       subprocess installed post-installation script returned error exit status 1\r\n      Errors were encountered while processing:\r\n       elasticsearch\r\n      ---- End output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\n      Ran [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] returned 1\r\n      \r\n      Cookbook Trace:\r\n      ---------------\r\n      /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb:121:in `install_package_wrapper_action'\r\n      /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb:17:in `action_install'\r\n      \r\n      Resource Declaration:\r\n      ---------------------\r\n      # In /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb\r\n      \r\n      110:               dpkg_package \"#{Chef::Config[:file_cache_path]}/#{filename}\" do\r\n      111:                 options package_options\r\n      112:                 action :nothing\r\n      113:               end\r\n      114:             else\r\n      \r\n      Compiled Resource:\r\n      ------------------\r\n      # Declared in /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb:110:in `install_package_wrapper_action'\r\n      \r\n      dpkg_package(\"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\") do\r\n        package_name \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"\r\n        action [:nothing]\r\n        default_guard_interpreter :default\r\n        declared_type :dpkg_package\r\n        cookbook_name \"rubber\"\r\n        options nil\r\n      end\r\n      \r\n      System Info:\r\n      ------------\r\n      chef_version=13.2.20\r\n      platform=debian\r\n      platform_version=8.9\r\n      ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]\r\n      program_name=chef-solo worker: ppid=7;start=15:07:31;\r\n      executable=/opt/chef/bin/chef-solo\r\n      \r\n    \r\n    ================================================================================\r\n    Error executing action `install` on resource 'elasticsearch_install[es_installation]'\r\n    ================================================================================\r\n    \r\n    Mixlib::ShellOut::ShellCommandFailed\r\n    ------------------------------------\r\n    dpkg_package[/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb] (/chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb line 110) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n    ---- Begin output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\n    STDOUT: Selecting previously unselected package elasticsearch.\r\n    (Reading database ... 52491 files and directories currently installed.)\r\n    Preparing to unpack .../cache/elasticsearch-5.5.0.deb ...\r\n    Creating elasticsearch group... OK\r\n    Creating elasticsearch user... OK\r\n    Unpacking elasticsearch (5.5.0) ...\r\n    Setting up elasticsearch (5.5.0) ...\r\n    Processing triggers for systemd (215-17+deb8u7) ...\r\n    STDERR: Failed to get D-Bus connection: Unknown error -1\r\n    dpkg: error processing package elasticsearch (--install):\r\n     subprocess installed post-installation script returned error exit status 1\r\n    Errors were encountered while processing:\r\n     elasticsearch\r\n    ---- End output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\n    Ran [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] returned 1\r\n    \r\n    Cookbook Trace:\r\n    ---------------\r\n    /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb:121:in `install_package_wrapper_action'\r\n    /chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb:17:in `action_install'\r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /chef/local-mode-cache/cache/cookbooks/rubber/recipes/default.rb\r\n    \r\n     16: elasticsearch_install 'es_installation' do\r\n     17:   type 'package' # type of install\r\n     18:   version '5.5.0'\r\n     19:   action :install # could be :remove as well\r\n     20: end\r\n     21: \r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /chef/local-mode-cache/cache/cookbooks/rubber/recipes/default.rb:16:in `from_file'\r\n    \r\n    elasticsearch_install(\"es_installation\") do\r\n      action [:install]\r\n      updated true\r\n      updated_by_last_action true\r\n      default_guard_interpreter :default\r\n      declared_type :elasticsearch_install\r\n      cookbook_name \"rubber\"\r\n      recipe_name \"default\"\r\n      type \"package\"\r\n      version \"5.5.0\"\r\n    end\r\n    \r\n    System Info:\r\n    ------------\r\n    chef_version=13.2.20\r\n    platform=debian\r\n    platform_version=8.9\r\n    ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]\r\n    program_name=chef-solo worker: ppid=7;start=15:07:31;\r\n    executable=/opt/chef/bin/chef-solo\r\n    \r\n\r\nRunning handlers:\r\n[2017-07-25T15:09:52+00:00] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2017-07-25T15:09:52+00:00] ERROR: Exception handlers complete\r\nChef Client failed. 11 resources updated in 02 minutes 21 seconds\r\n[2017-07-25T15:09:52+00:00] FATAL: Stacktrace dumped to /chef/local-mode-cache/cache/chef-stacktrace.out\r\n[2017-07-25T15:09:52+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n[2017-07-25T15:09:52+00:00] ERROR: elasticsearch_install[es_installation] (rubber::default line 16) had an error: Mixlib::ShellOut::ShellCommandFailed: dpkg_package[/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb] (/chef/local-mode-cache/cache/cookbooks/elasticsearch/libraries/provider_install.rb line 110) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n---- Begin output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\nSTDOUT: Selecting previously unselected package elasticsearch.\r\n(Reading database ... 52491 files and directories currently installed.)\r\nPreparing to unpack .../cache/elasticsearch-5.5.0.deb ...\r\nCreating elasticsearch group... OK\r\nCreating elasticsearch user... OK\r\nUnpacking elasticsearch (5.5.0) ...\r\nSetting up elasticsearch (5.5.0) ...\r\nProcessing triggers for systemd (215-17+deb8u7) ...\r\nSTDERR: Failed to get D-Bus connection: Unknown error -1\r\ndpkg: error processing package elasticsearch (--install):\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n elasticsearch\r\n---- End output of [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] ----\r\nRan [\"dpkg\", \"-i\", \"/chef/local-mode-cache/cache/elasticsearch-5.5.0.deb\"] returned 1\r\n[2017-07-25T15:09:52+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```"},"comment":{"url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/comments/317774963","html_url":"https://github.com/elastic/cookbook-elasticsearch/issues/601#issuecomment-317774963","issue_url":"https://api.github.com/repos/elastic/cookbook-elasticsearch/issues/601","id":317774963,"user":{"login":"martinb3","id":103033,"avatar_url":"https://avatars0.githubusercontent.com/u/103033?v=4","gravatar_id":"","url":"https://api.github.com/users/martinb3","html_url":"https://github.com/martinb3","followers_url":"https://api.github.com/users/martinb3/followers","following_url":"https://api.github.com/users/martinb3/following{/other_user}","gists_url":"https://api.github.com/users/martinb3/gists{/gist_id}","starred_url":"https://api.github.com/users/martinb3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinb3/subscriptions","organizations_url":"https://api.github.com/users/martinb3/orgs","repos_url":"https://api.github.com/users/martinb3/repos","events_url":"https://api.github.com/users/martinb3/events{/privacy}","received_events_url":"https://api.github.com/users/martinb3/received_events","type":"User","site_admin":false},"created_at":"2017-07-25T15:26:33Z","updated_at":"2017-07-25T15:26:33Z","body":"Actually, it looks like this has already been reported there: https://github.com/elastic/elasticsearch/issues/25846"}}
{"actor":{"display_login":"martinb3"}}