You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was use a previous version of mailer on my sensu server without issue. I just upgraded to the latest version on Github and am now running into an issue which has something to do with the erubis gem.
I see the following error anytime sensu tries to send an email using the latest mailer handler:
"/usr/local/share/gems/gems/mixlib-cli-1.5.0/lib/mixlib/cli.rb:191:in `parse_options': invalid option: --json_config (OptionParser::InvalidOption)
from /usr/local/share/gems/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:16:in `initialize'
from /usr/local/share/gems/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:52:in `new'
from /usr/local/share/gems/gems/sensu-plugin-1.2.0/lib/sensu-handler.rb:52:in `block in <class:Handler>'
/usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:63:in `initialize': No such file or directory - \"/var/run/abrt/abrt.socket\" (Errno::ENOENT)
from /usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:63:in `new'\n\tfrom /usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:63:in `abrt_socket'
from /usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:22:in `report'\n\tfrom /usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:41:in `write_dump'
from /usr/share/gems/gems/abrt-0.0.6/lib/abrt/handler.rb:13:in `handle_exception'
from /usr/share/gems/gems/abrt-0.0.6/lib/abrt.rb:7:in `block in <top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- erubis (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from /etc/sensu/handlers/mailer.rb:20:in `<main>'"
Like I said, this was working fine on a previous version. But for the curious, this is how the handler is getting called:
So to try and track down what was causing the issue, I tried commenting out all references to the "erubis" gem, and once I did that the handler actually ran. Although it no longer did anything, it at least ran.
Running on CentOS 7.1
Sensu v0.22.1
I was use a previous version of mailer on my sensu server without issue. I just upgraded to the latest version on Github and am now running into an issue which has something to do with the erubis gem.
I see the following error anytime sensu tries to send an email using the latest mailer handler:
Like I said, this was working fine on a previous version. But for the curious, this is how the handler is getting called:
So to try and track down what was causing the issue, I tried commenting out all references to the "erubis" gem, and once I did that the handler actually ran. Although it no longer did anything, it at least ran.
These are the gems I have installed on my system:
So at this point I'm stumped and looking for any help.
The text was updated successfully, but these errors were encountered: