[Bug 292629] sysutils/fluent-bit: in_tail plugin fails on inotify function

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Jan 2026 11:39:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292629

            Bug ID: 292629
           Summary: sysutils/fluent-bit: in_tail plugin fails on inotify
                    function
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: girgen@FreeBSD.org
          Reporter: hiroo.ono+freebsd@gmail.com
          Assignee: girgen@FreeBSD.org
             Flags: maintainer-feedback?(girgen@FreeBSD.org)

Created attachment 267361
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267361&action=edit
add a patch to in_tail plugin

On FreeBSD, userland inotify functions do not accept IN_IGNORED and
IN_Q_OVERFLOW flags (they are only returned from system calls by kernel), and
if specified, invokes an error.
fluent-bit's in_tail plugin emits error like:

[2026/01/21 20:06:18.523667480] [error] [input:tail:tail.1] inode=1692335
cannot register file /var/log/h2o/access-2026-01.log
[2026/01/21 20:07:18.523516068] [error]
[/wrkdirs/usr/ports/sysutils/fluent-bit/work/fluent-bit-4.2.2/plugins/in_tail/tail_fs_inotify.c:147
errno=22] Invalid argument

The attached patch removes the flag above to avoid this error.

-- 
You are receiving this mail because:
You are the assignee for the bug.