[Bug 269629] net-mgmt/netdata: Netdata 1.38.0 complains about permissions using default config

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 19 Mar 2023 14:55:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269629

--- Comment #9 from Graham Perrin <grahamperrin@freebsd.org> ---
(In reply to Daniel Engberg from comment #8)

Thanks, I tried that already. 

Retry: 

----

root@mowa219-gjp4-8570p-freebsd:~ # date 
Sun Mar 19 14:20:14 GMT 2023
root@mowa219-gjp4-8570p-freebsd:~ # service netdata stop
Stopping netdata.
Waiting for PIDS: 15502 15503, 15502 15503, 15502 15503, 15502 15503, 15502
15503.
root@mowa219-gjp4-8570p-freebsd:~ # service netdata status
netdata is not running.
root@mowa219-gjp4-8570p-freebsd:~ # pkg delete --quiet --yes netdata
==> You should manually remove the "netdata" user. 
==> You should manually remove the "netdata" group 
You may need to manually remove /usr/local/etc/netdata/netdata.conf if it is no
longer needed.
root@mowa219-gjp4-8570p-freebsd:~ # rm
/usr/local/libexec/netdata/plugins.d/apps.plugin
rm: /usr/local/libexec/netdata/plugins.d/apps.plugin: No such file or directory
root@mowa219-gjp4-8570p-freebsd:~ # pkg install --quiet --yes netdata
===> Creating groups.
Using existing group 'netdata'.
===> Creating users
Using existing user 'netdata'.
===> Creating homedir(s)
=====
Message from netdata-1.38.1:

--
Quick start for local-only use:

1. sysrc netdata_enable="YES"
2. service netdata start
3. Go to http://localhost:19999/
4. <Optional> Connect to Netdata Cloud using the netdata-claim.sh script:
   https://learn.netdata.cloud/docs/agent/claim#claiming-script
root@mowa219-gjp4-8570p-freebsd:~ # ls -hln
/usr/local/libexec/netdata/plugins.d/apps.plugin
-rwsr-x---  1 0  302   117K Mar 13 01:57
/usr/local/libexec/netdata/plugins.d/apps.plugin
root@mowa219-gjp4-8570p-freebsd:~ # date ; service netdata start
Sun Mar 19 14:23:37 GMT 2023
Starting netdata.
root@mowa219-gjp4-8570p-freebsd:~ # 

----


Then: 

----

% tail -f -n 0 /var/log/messages
Mar 19 14:23:39 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: PROCFILE: Cannot
open file '/usr/local/etc/netdata/apps_groups.conf'
Mar 19 14:30:09 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 78634 command line (command 'python3.9')
Mar 19 14:35:51 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 80348 command line (command 'sh')
Mar 19 14:35:52 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 80958 command line (command 'sh')
Mar 19 14:35:59 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 81586 command line (command 'cat')
Mar 19 14:36:06 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 82186 command line (command 'sh')
Mar 19 14:36:06 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 82188 command line (command 'gsed')
Mar 19 14:40:14 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 82829 command line (command 'python3.9')
Mar 19 14:46:00 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 83745 command line (command 'python3.9')
Mar 19 14:46:00 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 83748 command line (command 'cc')
Mar 19 14:46:12 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 83978 command line (command 'c++')
Mar 19 14:46:14 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 84021 command line (command 'sccache')
Mar 19 14:47:51 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 84882 command line (command 'sysctl')
Mar 19 14:48:25 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: heartbeat clock:
woke up 504757 microseconds later than expected (can be due to system load or
the CLOCK_REALTIME set to the future).
Mar 19 14:50:01 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 85232 command line (command 'gfortran12')
Mar 19 14:50:03 mowa219-gjp4-8570p-freebsd apps.plugin[78013]: Cannot fetch
process 85258 command line (command 'sh')
^C
%

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