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

out_file: start-up check fails with <worker 0-N> directive #3941

Closed
fujimotos opened this issue Nov 1, 2022 · 0 comments · Fixed by #3942
Closed

out_file: start-up check fails with <worker 0-N> directive #3941

fujimotos opened this issue Nov 1, 2022 · 0 comments · Fixed by #3942
Assignees
Labels
bug Something isn't working

Comments

@fujimotos
Copy link
Member

fujimotos commented Nov 1, 2022

Describe the bug

When out_file is configured with append=true and workers > 1,
it tries to confirm that the inter-worker lock is available.

This check can cause an unexpected exception during startup if it's
combined with ranged worker directive (such as <worker 0-2>)

To Reproduce

  1. Save the following configuration as fluentd.conf
  2. Run fluentd -c fluentd.conf

Expected behavior

Fluentd should start up without errors.

Your Environment

- Fluentd version: v1.15.2
- TD Agent version: N/A
- Operating system: N/A
- Kernel version: N/A

Your Configuration

<system>
  workers 2
</system>

<worker 0-1>
  <source>
    @type dummy
    tag test.log
  </source>
  
  <match test.**>
    @type file
    path output.log
    append true
    <buffer>
      @type memory
    </buffer>
  </match>
</worker>

Your Error Log

out_file.rb:193:in `configure': must set FLUENTD_LOCK_DIR on multi-worker append mode (Fluent::InvalidLockDirectory)

Additional context

No response

@fujimotos fujimotos self-assigned this Nov 1, 2022
@fujimotos fujimotos added the bug Something isn't working label Nov 1, 2022
@fujimotos fujimotos moved this to Work-In-Progress in Fluentd Kanban Nov 1, 2022
Repository owner moved this from Work-In-Progress to Done in Fluentd Kanban Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant