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

undefined method `corresponding_proxies' #614

Closed
ruanwz opened this issue Jun 12, 2015 · 6 comments
Closed

undefined method `corresponding_proxies' #614

ruanwz opened this issue Jun 12, 2015 · 6 comments

Comments

@ruanwz
Copy link

ruanwz commented Jun 12, 2015

Hi, when I run fluentd -c fluentd.conf, there is below error, should I downgrade to 0.12.10 to avoid this issue?

2015-06-12 04:29:48 +0000 [error]: unexpected error error="undefined method `corresponding_proxies' for {\"time_format\"=>\"%d/%b/%Y:%H:%M:%S %z\"}:Hash"
  2015-06-12 04:29:48 +0000 [error]: /u/apps/fans_server_staging/shared/bundle/ruby/2.2.0/gems/fluentd-0.12.11/lib/fluent/configurable.rb:49:in `configure'
@repeatedly
Copy link
Member

How to use fluentd?
configure method should receive Element, not Hash.

should I downgrade to 0.12.10 to avoid this issue?

Downgrade to 0.12.10 may resolve this error but it should not occur in normal situation.

@ruanwz
Copy link
Author

ruanwz commented Jun 12, 2015

Thanks for reply! Just begin to use fluent, my config is something like this:

  <source>
    type tail
    path /var/log/nginx/access.log
    pos_file /var/log/td-agent/access.log.pos
    tag nginx.access
    format nginx
  </source>
  <match **>
    type s3
    path nginx
    buffer_path /var/log/fluent/s3
    time_format #(optional; default is ISO-8601)
    aws_key_id XXXXXXXX
    aws_sec_key XXXXXXX
    s3_bucket bbbbbbbb
    s3_endpoint s3.cn-north-1.amazonaws.com.cn
    s3_region cn-north-1
    s3_object_key_format #(optional; default="%{path}%{time_slice}_%{index}.%{file_extension}")
    auto_create_bucket #(optional; default=true)
    check_apikey_on_start #(optional; default=true)
    proxy_uri #(optional)
  </match>

After downgrade to 0.12.10, the issue disappear.

@repeatedly
Copy link
Member

Thanks and I found the bug!
I will fix this bug and release new version soon.
Please wait.

@repeatedly
Copy link
Member

@ruanwz Could you try #616 patch?

@ruanwz
Copy link
Author

ruanwz commented Jun 12, 2015

Just verify that the patch #616 fix this issue. Thanks!

@ruanwz ruanwz closed this as completed Jun 12, 2015
@repeatedly
Copy link
Member

Thanks for the testing!
I will release new version.

repeatedly added a commit that referenced this issue Jun 12, 2015
configure requires Config::Element, not Hash. fixes #614
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants