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

in_unix plugin does not work with --under-supervisor (permission denied with var/run/fluent/fluent.sock) #4333

Open
sijin-won opened this issue Oct 26, 2023 · 1 comment
Labels
enhancement Feature request or improve operations

Comments

@sijin-won
Copy link

sijin-won commented Oct 26, 2023

Describe the bug

We run fluentd without any the command line option(automatically with --under-supervisor). the in_unix plugin didn't work because the socket file's permission was insufficient.

$ ls -l /var/run/fluent/fluent.sock
srwxr-xr-x 1 _fluentd _fluentd 0 Oct 26 08:27 /var/run/fluent/fluent.sock

To Reproduce

  1. Install fluent with the following command
# fluent-package 5 (LTS)
curl -fsSL https://toolbelt.treasuredata.com/sh/install-ubuntu-jammy-fluent-package5-lts.sh | sh
  1. add configuration
<source>
  @type unix
  path /var/run/fluent/fluent.sock
</source>
  1. restart fluentd with the following command
$ sudo systemctl restart fluentd.service
  1. The created /var/run/fluent/fluent.sock file can not be written
$ ls -l /var/run/fluent/fluent.sock
srwxr-xr-x 1 _fluentd _fluentd 0 Oct 26 08:27 /var/run/fluent/fluent.sock

Expected behavior

The permission should be srwxrwxrwx.

Your Environment

- Fluentd version:

$ sudo fluent-gem list | grep fluentd
fluentd (1.16.2)
  • TD Agent version:
  • Operating system:
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
  • Kernel version:
$ uname -r
6.2.0-1017-gcp

Your Configuration

<source>
  @type unix
  path /var/run/fluent/fluent.sock
</source>

Your Error Log

nothing

Additional context

No response

@ashie
Copy link
Member

ashie commented Dec 8, 2023

Expected behavior

The permission should be srwxrwxrwx.

Hmm, it should be customizable.

@ashie ashie added feature request *Deprecated Label* Use enhancement label in general and removed waiting-for-triage labels Dec 8, 2023
@kenhys kenhys added enhancement Feature request or improve operations and removed feature request *Deprecated Label* Use enhancement label in general labels Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request or improve operations
Projects
None yet
Development

No branches or pull requests

3 participants