Skip to content

bug: "Too many open files" reported by all fluentbit pod #854

@marshtompsxd

Description

@marshtompsxd

Describe the issue

Hi FluentBit developers, thanks for building this awesome operator!

I was following the guide to set up fluentbit and stream logs to kafka. The operator bring up the fluentbit daemon set but I find that each fluentbit process keeps restarting and reporting

...
level=info msg="backoff timer done" actual=1m4.0014963s expected=1m4s
level=info msg="Fluent bit started"
Fluent Bit v1.8.11
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

[2023/07/28 16:19:05] [ info] [engine] started (pid=64)
[2023/07/28 16:19:05] [ info] [storage] version=1.1.5, initializing...
[2023/07/28 16:19:05] [ info] [storage] in-memory
[2023/07/28 16:19:05] [ info] [storage] normal synchronization mode, checksum disabled, max_chunks_up=128
[2023/07/28 16:19:05] [ info] [cmetrics] version=0.2.2
[2023/07/28 16:19:05] [error] [lib] backend failed
[2023/07/28 16:19:05] [error] [plugins/in_tail/tail_fs_inotify.c:305 errno=24] Too many open files
[2023/07/28 16:19:05] [error] Failed initialize input tail.0
level=error msg="Fluent bit exited" error="exit status 255"
level=info msg=backoff delay=2m8s

and when I check kafka I find no logs streamed to it.

To Reproduce

Follow the guide.

Expected behavior

All fluentbit processes should successfully stream the log to kafka.

Your Environment

- Fluent Operator version: `kubesphere/fluent-operator:v1.0.2`
- Container Runtime: `containerd://1.6.19-46-g941215f49`
- Operating system: `Ubuntu 22.04.2 LTS`
- Kernel version: `5.10.76-linuxkit`

My env is a kind cluster with 1 control-plane node and 3 worker nodes running on a Macbook

NAME                 STATUS   ROLES           AGE   VERSION
kind-control-plane   Ready    control-plane   17m   v1.26.3
kind-worker          Ready    <none>          16m   v1.26.3
kind-worker2         Ready    <none>          16m   v1.26.3
kind-worker3         Ready    <none>          16m   v1.26.3


### How did you install fluent operator?

By running https://github.com/kubesphere-sigs/fluent-operator-walkthrough/blob/master/deploy-fluent-operator.sh

### Additional context

_No response_

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions