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

Fluentd process continues to restart if ConfigError raised #1180

Closed
tagomoris opened this issue Aug 24, 2016 · 0 comments
Closed

Fluentd process continues to restart if ConfigError raised #1180

tagomoris opened this issue Aug 24, 2016 · 0 comments
Labels
bug Something isn't working v0.14

Comments

@tagomoris
Copy link
Member

When I wrote a configuration file which raises configuration errors, Fluentd v0.14 continues to restart until I makhde Ctrl-c.

MBA:fluentd tagomoris$ cat yay.conf
<source>
  @type yay
</source>
MBA:fluentd tagomoris$ bundle exec bin/fluentd -c yay.conf 
2016-08-24 19:45:47 +0900 [info]: reading config file path="yay.conf"
2016-08-24 19:45:47 +0900 [info]: starting fluentd-0.14.2
2016-08-24 19:45:47 +0900 [info]: spawn command to main: /Users/tagomoris/.rbenv/versions/2.3.1/bin/ruby -Eascii-8bit:ascii-8bit  -rbundler/setup bin/fluentd -c yay.conf --under-supervisor
2016-08-24 19:45:47 +0900 [info]: reading config file path="yay.conf"
2016-08-24 19:45:47 +0900 [info]: starting fluentd-0.14.2 without supervision
2016-08-24 19:45:47 +0900 [info]: gem 'fluentd' version '0.14.2'
2016-08-24 19:45:47 +0900 [info]: adding source type="yay"
2016-08-24 19:45:47 +0900 [error]: config error file="yay.conf" error="Unknown input plugin 'yay'. Run 'gem search -rd fluent-plugin' to find plugins"
2016-08-24 19:45:47 +0900 [info]: Worker 0 finished unexpectedly with status 1
2016-08-24 19:45:48 +0900 [info]: reading config file path="yay.conf"
2016-08-24 19:45:48 +0900 [info]: starting fluentd-0.14.2 without supervision
2016-08-24 19:45:48 +0900 [info]: gem 'fluentd' version '0.14.2'
2016-08-24 19:45:48 +0900 [info]: adding source type="yay"
2016-08-24 19:45:48 +0900 [error]: config error file="yay.conf" error="Unknown input plugin 'yay'. Run 'gem search -rd fluent-plugin' to find plugins"
2016-08-24 19:45:48 +0900 [info]: Worker 0 finished unexpectedly with status 1
2016-08-24 19:45:49 +0900 [info]: reading config file path="yay.conf"
2016-08-24 19:45:49 +0900 [info]: starting fluentd-0.14.2 without supervision
2016-08-24 19:45:49 +0900 [info]: gem 'fluentd' version '0.14.2'
2016-08-24 19:45:49 +0900 [info]: adding source type="yay"
2016-08-24 19:45:49 +0900 [error]: config error file="yay.conf" error="Unknown input plugin 'yay'. Run 'gem search -rd fluent-plugin' to find plugins"
2016-08-24 19:45:49 +0900 [info]: Worker 0 finished unexpectedly with status 1
2016-08-24 19:45:49 +0900 [info]: reading config file path="yay.conf"
2016-08-24 19:45:49 +0900 [info]: starting fluentd-0.14.2 without supervision
2016-08-24 19:45:49 +0900 [info]: gem 'fluentd' version '0.14.2'
2016-08-24 19:45:49 +0900 [info]: adding source type="yay"
2016-08-24 19:45:49 +0900 [error]: config error file="yay.conf" error="Unknown input plugin 'yay'. Run 'gem search -rd fluent-plugin' to find plugins"
2016-08-24 19:45:50 +0900 [info]: Worker 0 finished unexpectedly with status 1
^C2016-08-24 19:45:50 +0900 [info]: Received graceful stop
/Users/tagomoris/github/fluentd/lib/fluent/configurable.rb:21:in `require': Interrupt
    from /Users/tagomoris/github/fluentd/lib/fluent/configurable.rb:21:in `<top (required)>'
    from /Users/tagomoris/github/fluentd/lib/fluent/config.rb:19:in `require'
    from /Users/tagomoris/github/fluentd/lib/fluent/config.rb:19:in `<top (required)>'
    from /Users/tagomoris/github/fluentd/lib/fluent/supervisor.rb:20:in `require'
    from /Users/tagomoris/github/fluentd/lib/fluent/supervisor.rb:20:in `<top (required)>'
    from /Users/tagomoris/github/fluentd/lib/fluent/command/fluentd.rb:19:in `require'
    from /Users/tagomoris/github/fluentd/lib/fluent/command/fluentd.rb:19:in `<top (required)>'
    from bin/fluentd:5:in `require'
    from bin/fluentd:5:in `<main>'
2016-08-24 19:45:50 +0900 [info]: Worker 0 finished with signal SIGINT

I expected that Fluentd doesn't restart for configuration errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v0.14
Projects
None yet
Development

No branches or pull requests

1 participant