{"action":"closed","issue":{"url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/314","labels_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/314/comments","events_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/314/events","html_url":"https://github.com/agileorbit-cookbooks/java/issues/314","id":115224158,"number":314,"title":"java cookbook install fails","user":{"login":"rajbir14","id":12621167,"avatar_url":"https://avatars.githubusercontent.com/u/12621167?v=3","gravatar_id":"","url":"https://api.github.com/users/rajbir14","html_url":"https://github.com/rajbir14","followers_url":"https://api.github.com/users/rajbir14/followers","following_url":"https://api.github.com/users/rajbir14/following{/other_user}","gists_url":"https://api.github.com/users/rajbir14/gists{/gist_id}","starred_url":"https://api.github.com/users/rajbir14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajbir14/subscriptions","organizations_url":"https://api.github.com/users/rajbir14/orgs","repos_url":"https://api.github.com/users/rajbir14/repos","events_url":"https://api.github.com/users/rajbir14/events{/privacy}","received_events_url":"https://api.github.com/users/rajbir14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-05T07:28:42Z","updated_at":"2015-11-05T08:26:07Z","closed_at":"2015-11-05T08:26:07Z","body":"Hi, I am installing java using the cookbook over ubuntu. I am facing the below error, please help:\r\nStarting Chef Client, version 12.5.1\r\nresolving cookbooks for run list: [\"activemq-master\"]\r\nSynchronizing Cookbooks:\r\n  - activemq (2.0.2)\r\n  - java (1.36.0)\r\n  - apt (2.9.2)\r\nCompiling Cookbooks...\r\nConverging 29 resources\r\nRecipe: apt::default\r\n  * file[/var/lib/apt/periodic/update-success-stamp] action nothing (skipped due to action :nothing)\r\n  * directory[/etc/apt/apt.conf.d] action create (up to date)\r\n  * cookbook_file[/etc/apt/apt.conf.d/15update-stamp] action create (up to date)\r\n  * execute[apt-get update] action nothing (skipped due to action :nothing)\r\n  * execute[apt-get autoremove] action nothing (skipped due to action :nothing)\r\n  * execute[apt-get autoclean] action nothing (skipped due to action :nothing)\r\n  * execute[apt-get-update-periodic] action run (skipped due to not_if)\r\n  * directory[/var/cache/local] action create (up to date)\r\n  * directory[/var/cache/local/preseeding] action create (up to date)\r\n  * template[/etc/apt/apt.conf.d/10recommends] action create (up to date)\r\n  * apt_package[apt-transport-https] action install (up to date)\r\nRecipe: java::openjdk\r\n  * apt_repository[openjdk-r-ppa] action add\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    * execute[install-key DA1A4A13543B466853BAF164EB9B1D8886F44E2A] action run (skipped due to not_if)\r\n    * ruby_block[validate-key DA1A4A13543B466853BAF164EB9B1D8886F44E2A] action run (skipped due to not_if)\r\n    * file[/etc/apt/sources.list.d/openjdk-r-ppa.list] action create (up to date)\r\n     (up to date)\r\n  * apt_package[openjdk-6-jdk] action install\r\n    \r\n    ================================================================================\r\n    Error executing action `install` on resource 'apt_package[openjdk-6-jdk]'\r\n    ================================================================================\r\n    \r\n    Mixlib::ShellOut::CommandTimeout\r\n    --------------------------------\r\n    Command timed out after 900s:\r\n    Command exceeded allowed execution time, process terminated\r\n    ---- Begin output of apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 ----\r\n    STDOUT: Reading package lists...\r\n    Building dependency tree...\r\n    Reading state information...\r\n    The following extra packages will be installed:\r\n      ca-certificates-java fonts-dejavu-extra icedtea-6-jre-cacao\r\n      icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common\r\n      libatk-wrapper-java libatk-wrapper-java-jni libgif4 libice-dev\r\n      libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev\r\n      libxdmcp-dev libxt-dev openjdk-6-jre openjdk-6-jre-headless\r\n      openjdk-6-jre-lib ttf-dejavu-extra tzdata tzdata-java x11proto-core-dev\r\n      x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev\r\n    Suggested packages:\r\n      default-jre equivs libice-doc libsm-doc libxcb-doc libxt-doc openjdk-6-demo\r\n      openjdk-6-source visualvm icedtea-plugin sun-java6-fonts\r\n      fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei\r\n      ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts\r\n    The following NEW packages will be installed:\r\n      ca-certificates-java fonts-dejavu-extra icedtea-6-jre-cacao\r\n      icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common\r\n      libatk-wrapper-java libatk-wrapper-java-jni libgif4 libice-dev\r\n      libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev\r\n      libxdmcp-dev libxt-dev openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless\r\n      openjdk-6-jre-lib ttf-dejavu-extra tzdata-java x11proto-core-dev\r\n      x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev\r\n    The following packages will be upgraded:\r\n      tzdata\r\n    1 upgraded, 30 newly installed, 0 to remove and 142 not upgraded.\r\n    Need to get 20.1 MB/60.2 MB of archives.\r\n    After this operation, 107 MB of additional disk space will be used.\r\n    Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main x11proto-input-dev all 2.3-1 [139 kB]\r\n    Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty/main x11proto-kb-dev all 1.0.6-2 [269 kB]\r\n    Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main xtrans-dev all 1.3.5-1~ubuntu14.04.1 [70.3 kB]\r\n    Get:4 http://in.archive.ubuntu.com/ubuntu/ trusty/main libxcb1-dev amd64 1.10-2ubuntu1 [76.6 kB]\r\n    Get:5 http://in.archive.ubuntu.com/ubuntu/ trusty/main libx11-dev amd64 2:1.6.2-1ubuntu2 [629 kB]\r\n    Get:6 http://in.archive.ubuntu.com/ubuntu/ trusty/main libx11-doc all 2:1.6.2-1ubuntu2 [1448 kB]\r\n    Err http://in.archive.ubuntu.com/ubuntu/ trusty/main libxt-dev amd64 1:1.1.4-1\r\n      Connection failed [IP: 91.189.92.201 80]\r\n    Get:7 http://in.archive.ubuntu.com/ubuntu/ trusty/main ttf-dejavu-extra all 2.34-1ubuntu1 [3104 B]\r\n    Get:8 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe icedtea-6-jre-cacao amd64 6b36-1.13.8-0ubuntu1~14.04 [333 kB]\r\n    Get:9 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe icedtea-6-jre-jamvm amd64 6b36-1.13.8-0ubuntu1~14.04 [399 kB]\r\n    Get:10 http://in.archive.ubuntu.com/ubuntu/ trusty/main icedtea-netx-common all 1.5-1ubuntu1 [1137 kB]\r\n    Get:11 http://in.archive.ubuntu.com/ubuntu/ trusty/main icedtea-netx amd64 1.5-1ubuntu1 [19.6 kB]\r\n    Get:12 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe openjdk-6-jdk amd64 6b36-1.13.8-0ubuntu1~14.04 [15.1 MB]\r\n    STDERR: \r\n    ---- End output of apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 ----\r\n    Ran apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 returned \r\n    \r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /home/user1/.chef/local-mode-cache/cache/cookbooks/java/recipes/openjdk.rb\r\n    \r\n     52:   package pkg do\r\n     53:     version node['java']['openjdk_version'] if node['java']['openjdk_version']\r\n     54:   end\r\n     55: end\r\n    \r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /home/user1/.chef/local-mode-cache/cache/cookbooks/java/recipes/openjdk.rb:52:in `block in from_file'\r\n    \r\n    apt_package(\"openjdk-6-jdk\") do\r\n      action [:install]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :default\r\n      package_name \"openjdk-6-jdk\"\r\n      version \"6b36-1.13.8-0ubuntu1~14.04\"\r\n      declared_type :package\r\n      cookbook_name \"java\"\r\n      recipe_name \"openjdk\"\r\n    end\r\n    \r\n\r\nRunning handlers:\r\n[2015-11-05T12:33:22+05:30] ERROR: Running exception handlers\r\nRunning handlers complete\r\n[2015-11-05T12:33:22+05:30] ERROR: Exception handlers complete\r\nChef Client failed. 0 resources updated in 15 minutes 54 seconds\r\n[2015-11-05T12:33:22+05:30] FATAL: Stacktrace dumped to /home/user1/.chef/local-mode-cache/cache/chef-stacktrace.out\r\n[2015-11-05T12:33:22+05:30] ERROR: apt_package[openjdk-6-jdk] (java::openjdk line 52) had an error: Mixlib::ShellOut::CommandTimeout: Command timed out after 900s:\r\nCommand exceeded allowed execution time, process terminated\r\n---- Begin output of apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 ----\r\nSTDOUT: Reading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\nThe following extra packages will be installed:\r\n  ca-certificates-java fonts-dejavu-extra icedtea-6-jre-cacao\r\n  icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common\r\n  libatk-wrapper-java libatk-wrapper-java-jni libgif4 libice-dev\r\n  libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev\r\n  libxdmcp-dev libxt-dev openjdk-6-jre openjdk-6-jre-headless\r\n  openjdk-6-jre-lib ttf-dejavu-extra tzdata tzdata-java x11proto-core-dev\r\n  x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev\r\nSuggested packages:\r\n  default-jre equivs libice-doc libsm-doc libxcb-doc libxt-doc openjdk-6-demo\r\n  openjdk-6-source visualvm icedtea-plugin sun-java6-fonts\r\n  fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei\r\n  ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts\r\nThe following NEW packages will be installed:\r\n  ca-certificates-java fonts-dejavu-extra icedtea-6-jre-cacao\r\n  icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common\r\n  libatk-wrapper-java libatk-wrapper-java-jni libgif4 libice-dev\r\n  libpthread-stubs0-dev libsm-dev libx11-dev libx11-doc libxau-dev libxcb1-dev\r\n  libxdmcp-dev libxt-dev openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless\r\n  openjdk-6-jre-lib ttf-dejavu-extra tzdata-java x11proto-core-dev\r\n  x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev\r\nThe following packages will be upgraded:\r\n  tzdata\r\n1 upgraded, 30 newly installed, 0 to remove and 142 not upgraded.\r\nNeed to get 20.1 MB/60.2 MB of archives.\r\nAfter this operation, 107 MB of additional disk space will be used.\r\nGet:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main x11proto-input-dev all 2.3-1 [139 kB]\r\nGet:2 http://in.archive.ubuntu.com/ubuntu/ trusty/main x11proto-kb-dev all 1.0.6-2 [269 kB]\r\nGet:3 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main xtrans-dev all 1.3.5-1~ubuntu14.04.1 [70.3 kB]\r\nGet:4 http://in.archive.ubuntu.com/ubuntu/ trusty/main libxcb1-dev amd64 1.10-2ubuntu1 [76.6 kB]\r\nGet:5 http://in.archive.ubuntu.com/ubuntu/ trusty/main libx11-dev amd64 2:1.6.2-1ubuntu2 [629 kB]\r\nGet:6 http://in.archive.ubuntu.com/ubuntu/ trusty/main libx11-doc all 2:1.6.2-1ubuntu2 [1448 kB]\r\nErr http://in.archive.ubuntu.com/ubuntu/ trusty/main libxt-dev amd64 1:1.1.4-1\r\n  Connection failed [IP: 91.189.92.201 80]\r\nGet:7 http://in.archive.ubuntu.com/ubuntu/ trusty/main ttf-dejavu-extra all 2.34-1ubuntu1 [3104 B]\r\nGet:8 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe icedtea-6-jre-cacao amd64 6b36-1.13.8-0ubuntu1~14.04 [333 kB]\r\nGet:9 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe icedtea-6-jre-jamvm amd64 6b36-1.13.8-0ubuntu1~14.04 [399 kB]\r\nGet:10 http://in.archive.ubuntu.com/ubuntu/ trusty/main icedtea-netx-common all 1.5-1ubuntu1 [1137 kB]\r\nGet:11 http://in.archive.ubuntu.com/ubuntu/ trusty/main icedtea-netx amd64 1.5-1ubuntu1 [19.6 kB]\r\nGet:12 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/universe openjdk-6-jdk amd64 6b36-1.13.8-0ubuntu1~14.04 [15.1 MB]\r\nSTDERR: \r\n---- End output of apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 ----\r\nRan apt-get -q -y install openjdk-6-jdk=6b36-1.13.8-0ubuntu1~14.04 returned \r\n[2015-11-05T12:33:22+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n"}}