tagomoris / fluent-plugin-secure-forward

Other
140 stars 30 forks source link

can't modify frozen String #20

Closed slava-vishnyakov closed 8 years ago

slava-vishnyakov commented 9 years ago

I'm trying to run the plugin on FreeBSD and get this error:

2015-06-15 20:41:52 +0300 [error]: unexpected error error="can't modify frozen String"
  2015-06-15 20:41:52 +0300 [error]: /usr/local/lib/ruby/gems/2.1/gems/fluent-plugin-secure-forward-0.3.2/lib/fluent/plugin/output_node.rb:319:in `feed_each'
  2015-06-15 20:41:52 +0300 [error]: /usr/local/lib/ruby/gems/2.1/gems/fluent-plugin-secure-forward-0.3.2/lib/fluent/plugin/output_node.rb:319:in `block in connect'
  2015-06-15 20:41:52 +0300 [error]: /usr/local/lib/ruby/gems/2.1/gems/fluent-plugin-secure-forward-0.3.2/lib/fluent/plugin/output_node.rb:310:in `loop'
  2015-06-15 20:41:52 +0300 [error]: /usr/local/lib/ruby/gems/2.1/gems/fluent-plugin-secure-forward-0.3.2/lib/fluent/plugin/output_node.rb:310:in `connect'

The same config on Ubuntu works fine

<match *.**>
  type secure_forward
  shared_key ......
  self_hostname ${hostname}
  secure no

  flush_interval 1s
  <server>
    name ...
    host ...
    port ...
    weight 60
  </server>
</match>
slava-vishnyakov commented 9 years ago

Just in case: the installation on FreeBSD is done like this

pkg install rubygem-fluentd 
/usr/local/bin/fluent-gem install fluent-plugin-secure-forward

The config file is /usr/local/etc/fluentd/fluent.conf and command to test is

/usr/local/bin/fluentd -c /usr/local/etc/fluentd/fluent.conf
repeatedly commented 9 years ago

It seems similar case with this > https://github.com/fluent/fluentd/issues/598 Could you update fluentd to latest version?

tagomoris commented 8 years ago

I'll close this at once. Please open another issue for further problems.