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

Bug reporting - stack level too deep ec2_metadata.rb #49

Open
azman0101 opened this issue Feb 21, 2020 · 0 comments
Open

Bug reporting - stack level too deep ec2_metadata.rb #49

azman0101 opened this issue Feb 21, 2020 · 0 comments

Comments

@azman0101
Copy link

With this configuration:


    <match **>
      @type ec2_metadata

      # aws_key_id  YOUR_AWS_KEY_ID
      # aws_sec_key YOUR_AWS_SECRET/KEY

      metadata_refresh_seconds 300 # Optional, default 300 seconds
      imdsv2 false                  # Optional, default false

      output_tag ${availability_zone}.${tag}
    </match>

I get this error:

#<Thread:0x00007fb5331ed648@event_loop@/var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/plugin_helper/thread.rb:70 run> terminated with exception (report_on_exception is true):
/var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/ec2_metadata.rb:156:in `each': stack level too deep (SystemStackError)
	from /var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/ec2_metadata.rb:156:in `each_with_index'
	from /var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/ec2_metadata.rb:156:in `prepare_placeholders'
	from /var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/ec2_metadata.rb:131:in `modify'
	from /var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/out_ec2_metadata.rb:23:in `block in process'
	from /var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/event.rb:110:in `each'
	from /var/lib/gems/2.5.0/gems/fluent-plugin-ec2-metadata-0.1.3/lib/fluent/plugin/out_ec2_metadata.rb:22:in `process'
	from /var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/plugin/output.rb:797:in `emit_sync'
	from /var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/event_router.rb:97:in `emit_stream'
	 ... 2617 levels...
	from /var/lib/gems/2.5.0/gems/cool.io-1.6.0/lib/cool.io/loop.rb:88:in `run_once'
	from /var/lib/gems/2.5.0/gems/cool.io-1.6.0/lib/cool.io/loop.rb:88:in `run'
	from /var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/plugin_helper/event_loop.rb:93:in `block in start'
	from /var/lib/gems/2.5.0/gems/fluentd-1.9.2/lib/fluent/plugin_helper/thread.rb:78:in `block in thread_create'
2020-02-21 14:46:35 +0000 [error]: unexpected error error_class=SystemStackError error="stack level too deep"

gem 'activesupport', '6.0.2.1'
gem 'fluentd', '1.8.1'
gem 'fluent-plugin-concat', '2.4.0'
gem 'fluent-plugin-detect-exceptions', '0.0.13'
gem 'fluent-plugin-elasticsearch', '3.8.0'
gem 'fluent-plugin-kubernetes_metadata_filter', '2.4.1'
gem 'fluent-plugin-multi-format-parser', '1.0.0'
gem 'fluent-plugin-prometheus', '1.7.0'
gem 'fluent-plugin-systemd', '1.0.2'
gem 'fluent-plugin-grok-parser', '2.6.1'
gem 'fluent-plugin-rewrite-tag-filter', '2.2.0'
gem 'fluent-plugin-kinesis', '3.2.0'
gem 'oj', '3.10.1'

Regards

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

1 participant