Sentry cookbook has a typo that makes it fail always
* bash[uninstall deprecated sentry-slack plugin] action run[2017-10-27T12:16:22+00:00] INFO: Processing bash[uninstall deprecated sentry-slack plugin] action run (gitlab-sentry::default line 91)
[execute] /tmp/chef-script20171027-58672-ut4ch8: line 1: unexpected EOF while looking for matching `''
/tmp/chef-script20171027-58672-ut4ch8: line 2: syntax error: unexpected end of file
================================================================================
Error executing action `run` on resource 'bash[uninstall deprecated sentry-slack plugin]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of "bash" "/tmp/chef-script20171027-58672-ut4ch8" ----
STDOUT:
STDERR: /tmp/chef-script20171027-58672-ut4ch8: line 1: unexpected EOF while looking for matching `''
/tmp/chef-script20171027-58672-ut4ch8: line 2: syntax error: unexpected end of file
---- End output of "bash" "/tmp/chef-script20171027-58672-ut4ch8" ----
Ran "bash" "/tmp/chef-script20171027-58672-ut4ch8" returned 2
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/gitlab-sentry/recipes/default.rb
91: bash 'uninstall deprecated sentry-slack plugin' do
92: code <<-EOH
93: #{sentry_conf['install_path']}/bin/pip uninstall sentry-slack'
94: EOH
95: only_if "#{sentry_conf['install_path']}/bin/pip list | grep sentry-slack"
96: end
97:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/gitlab-sentry/recipes/default.rb:91:in `from_file'
bash("uninstall deprecated sentry-slack plugin") do
action [:run]
retries 0
retry_delay 2
default_guard_interpreter :default
command "uninstall deprecated sentry-slack plugin"
backup 5
returns 0
user nil
code " /usr/share/nginx/sentry/bin/pip uninstall sentry-slack'\n"
interpreter "bash"
declared_type :bash
cookbook_name "gitlab-sentry"
recipe_name "default"
only_if "/usr/share/nginx/sentry/bin/pip list | grep sentry-slack"
end
Platform:
---------
x86_64-linux
[2017-10-27T12:16:22+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2017-10-27T12:16:22+00:00] ERROR: Running exception handlers
- PrometheusHandler
Running handlers complete
[2017-10-27T12:16:22+00:00] ERROR: Exception handlers complete
Chef Client failed. 21 resources updated in 04 minutes 44 seconds
[2017-10-27T12:16:22+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2017-10-27T12:16:22+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-10-27T12:16:22+00:00] ERROR: bash[uninstall deprecated sentry-slack plugin] (gitlab-sentry::default line 91) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2'
---- Begin output of "bash" "/tmp/chef-script20171027-58672-ut4ch8" ----
STDOUT:
STDERR: /tmp/chef-script20171027-58672-ut4ch8: line 1: unexpected EOF while looking for matching `''
/tmp/chef-script20171027-58672-ut4ch8: line 2: syntax error: unexpected end of file
---- End output of "bash" "/tmp/chef-script20171027-58672-ut4ch8" ----
Ran "bash" "/tmp/chef-script20171027-58672-ut4ch8" returned 2
[2017-10-27T12:16:22+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Mind the
line 1: unexpected EOF while looking for matching `''
We have a hanging '
in the code.