[2014-03-12T01:03:33+00:00] INFO: remote_file[/var/chef/cache/rundeck-2.0.1-1-GA.deb] sending install action to dpkg_package[/var/chef/cache/rundeck-2.0.1-1-GA.deb] (delayed)
================================================================================
Error executing action `install` on resource 'dpkg_package[/var/chef/cache/rundeck-2.0.1-1-GA.deb]'
================================================================================
Chef::Exceptions::Exec
----------------------
dpkg -i /var/chef/cache/rundeck-2.0.1-1-GA.deb returned 1, expected 0
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rundeck/recipes/default.rb
39: dpkg_package "#{Chef::Config['file_cache_path']}/rundeck-#{node['rundeck']['deb_version']}.deb" do
40: action :nothing
41: notifies :delete, 'file[/etc/rundeck/realm.properties]'
42: end
43:
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rundeck/recipes/default.rb:39:in `from_file'
dpkg_package("/var/chef/cache/rundeck-2.0.1-1-GA.deb") do
provider Chef::Provider::Package::Dpkg
action [:nothing]
retries 0
retry_delay 2
package_name "/var/chef/cache/rundeck-2.0.1-1-GA.deb"
source "/var/chef/cache/rundeck-2.0.1-1-GA.deb"
version "2.0.1"
cookbook_name :rundeck
recipe_name "default"
end
[2014-03-12T02:14:03+00:00] ERROR: Running exception handlers
[2014-03-12T02:14:03+00:00] ERROR: Exception handlers complete
[2014-03-12T02:14:03+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-03-12T02:14:06+00:00] ERROR: dpkg_package[/var/chef/cache/rundeck-2.0.1-1-GA.deb] (rundeck::default line 39) had an error: Chef::Exceptions::Exec: dpkg -i /var/chef/cache/rundeck-2.0.1-1-GA.deb returned 1, expected 0
[2014-03-12T02:14:09+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
The non-zero is due to:
vagrant@rundeck:~$ sudo -i dpkg -i /var/chef/cache/rundeck-2.0.1-1-GA.deb
(Reading database ... 70149 files and directories currently installed.)
Preparing to replace rundeck 2.0.1 (using .../cache/rundeck-2.0.1-1-GA.deb) ...
Unpacking replacement rundeck ...
Setting up rundeck (2.0.1) ...
Configuration file `/etc/rundeck/framework.properties'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** framework.properties (Y/I/N/O/D/Z) [default=N] ?
At the least I believe this pkg resource should notify create/update of the template resource for framework.properties config file. I assume we probably want to ensure the default action or avoid this state.
Work out the best solution for this issue:
The non-zero is due to:
At the least I believe this pkg resource should notify create/update of the template resource for framework.properties config file. I assume we probably want to ensure the default action or avoid this state.