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

RPM: fixed attrs for conf.d dirs #15828

Merged
merged 2 commits into from Aug 17, 2023
Merged

RPM: fixed attrs for conf.d dirs #15828

merged 2 commits into from Aug 17, 2023

Conversation

k0ste
Copy link
Contributor

@k0ste k0ste commented Aug 17, 2023

go.d.plugin can't load module default configuration, cause conf files are inaccessible with netdata user

[netdata@host conf.d]$ stat go.d/chrony.conf
stat: cannot statx 'go.d/chrony.conf': Permission denied

go.d.plugin can't load module default configuration, cause
conf files are inaccessible with `netdata` user

```bash
[netdata@host conf.d]$ stat go.d/chrony.conf
stat: cannot statx 'go.d/chrony.conf': Permission denied
```
@github-actions github-actions bot added the area/packaging Packaging and operating systems support label Aug 17, 2023
@k0ste
Copy link
Contributor Author

k0ste commented Aug 17, 2023

Found it when debug "why chrony metrics is absent"

Screenshot 2023-08-17 at 15 04 32

After fix:

[netdata@host /]$ stat /usr/lib/netdata/conf.d/go.d/chrony.conf
  File: /usr/lib/netdata/conf.d/go.d/chrony.conf
  Size: 2138            Blocks: 8          IO Block: 4096   regular file
Device: 97fh/2431d      Inode: 16938492    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (  987/ netdata)
Access: 2023-08-17 15:41:34.000000000 +0300
Modify: 2023-08-17 15:41:34.000000000 +0300
Change: 2023-08-17 15:56:01.060105288 +0300
 Birth: 2023-08-17 15:56:01.060105288 +0300

config group loads fine:

[ DEBUG ] build[manager] build.go:164 received config group ('/usr/lib/netdata/conf.d/go.d/chrony.conf'): 1 jobs (added: 1, removed: 0)
[ DEBUG ] build[manager] build.go:313 building chrony[local] job, config: map[__provider__:file reader __source__:/usr/lib/netdata/conf.d/g
o.d/chrony.conf address:127.0.0.1:323 autodetection_retry:0 module:chrony name:local priority:70000 timeout:1 update_every:1]
[ INFO  ] chrony[local] job.go:208 check success
[ INFO  ] chrony[local] job.go:228 started, data collection interval 1s
[ DEBUG ] run[manager] run.go:43 tick 0

netdata.spec.in Outdated Show resolved Hide resolved
@Ferroin Ferroin merged commit d20fe0c into netdata:master Aug 17, 2023
120 checks passed
Ferroin pushed a commit that referenced this pull request Aug 22, 2023
* RPM: fixed attrs for conf.d dirs

go.d.plugin can't load module default configuration, cause
conf files are inaccessible with `netdata` user

```bash
[netdata@host conf.d]$ stat go.d/chrony.conf
stat: cannot statx 'go.d/chrony.conf': Permission denied
```

* Set defattr directory permissions to 0755
stelfrag pushed a commit to stelfrag/netdata that referenced this pull request Aug 23, 2023
* RPM: fixed attrs for conf.d dirs

go.d.plugin can't load module default configuration, cause
conf files are inaccessible with `netdata` user

```bash
[netdata@host conf.d]$ stat go.d/chrony.conf
stat: cannot statx 'go.d/chrony.conf': Permission denied
```

* Set defattr directory permissions to 0755

(cherry picked from commit d20fe0c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants