Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #12609] Cannot do core_install on Ubuntu 14 LTS #212

Closed
icinga-migration opened this issue Aug 31, 2016 · 3 comments
Closed
Assignees
Labels

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12609

Created by joekmiller on 2016-08-31 21:22:33 +00:00

Assignee: vkhatri
Status: Assigned
Target Version: (none)
Last Update: 2016-09-25 11:07:30 +00:00 (in Redmine)


"server" recipe fails on Ubuntu 14 LTS. I've tried various versions and even adding the icinga to sources list and it still fails.

* apt_package[icinga2] action install



 ================================================================================

 Error executing action `install` on resource 'apt_package[icinga2]'

 ================================================================================




 Mixlib::ShellOut::ShellCommandFailed

 ------------------------------------

 Expected process to exit with [0], but received '100'


 ---- Begin output of apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 ----


 STDOUT: Reading package lists...


 Building dependency tree...


 Reading state information...


 STDERR: E: Version '2.4.1-1~ppa1~trusty1' for 'icinga2' was not found


 ---- End output of apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 ----


 Ran apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 returned 100




 Cookbook Trace:

 ---------------

 /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'

 /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'

 /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'

 /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'

 /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'    

Resource Declaration:

---------------------    
# In /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/icinga2/recipes/core_install.rb





  46: package 'icinga2' do


  47:   version node['icinga2']['version'] + node['icinga2']['icinga2_version_suffix'] unless node['icinga2']['ignore_version']


  48:   notifies :restart, 'service[icinga2]', :delayed


  49: end





 Compiled Resource:

 ------------------

 # Declared in /tmp/vagrant-chef/551d73b9e4affd814c9384b322d68e5a/cookbooks/icinga2/recipes/core_install.rb:46:in `from_file'





 apt_package("icinga2") do


   package_name "icinga2"


   action [:install]


   retries 0


   retry_delay 2


   default_guard_interpreter :default


   declared_type :package


   cookbook_name :icinga2


   recipe_name "core_install"


   version "2.4.1-1~ppa1~trusty1"


 end

 Platform:

 ---------

 x86_64-linux



 [2016-08-31T21:11:00+00:00] INFO: Running queued delayed notifications before re-raising exception

 Running handlers:
 [2016-08-31T21:11:00+00:00] ERROR: Running exception handlers
 Running handlers complete

 [2016-08-31T21:11:00+00:00] ERROR: Exception handlers complete
 Chef Client failed. 0 resources updated in 04 seconds
 [2016-08-31T21:11:00+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
==> monitoring: [2016-08-31T21:11:00+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
==> monitoring: [2016-08-31T21:11:00+00:00] ERROR: apt_package[icinga2] (icinga2::core_install line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
 ---- Begin output of apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 ----
 STDOUT: Reading package lists...
 Building dependency tree...
 Reading state information...
 STDERR: E: Version '2.4.1-1~ppa1~trusty1' for 'icinga2' was not found
 ---- End output of apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 ----
 Ran apt-get -q -y install icinga2=2.4.1-1~ppa1~trusty1 returned 100
 [2016-08-31T21:11:01+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
@icinga-migration
Copy link
Author

Updated by vkhatri on 2016-09-25 00:38:31 +00:00

  • Status changed from New to Assigned
  • Assigned to set to vkhatri

Working on the fix, it seems that package versioning scheme has changed.

@icinga-migration
Copy link
Author

Updated by vkhatri on 2016-09-25 11:07:30 +00:00

Applied change fixed the issue, but it is backward incompatible. Will fix it if someone reports an issue, not sure starting which version it broke.

@vkhatri
Copy link
Member

vkhatri commented Feb 6, 2017

Closing. N/A.

@vkhatri vkhatri closed this as completed Feb 6, 2017
@vkhatri vkhatri self-assigned this Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants