Created attachment 244896 [details] Collector.log After updating to version 1.42.2, my custom collector stopped working. I checked the logs and found some permission issues in collector.log. I completely removed netdata and reinstalled the package. Nevertheless, the errors keep persisting. I've attached the error.log and collector.log. (I've omitted the start from error log that.) For example, this happens: ERROR: plugin[main] : error on loading '/usr/local/etc/netdata/python.d.conf' : PermissionError(13, 'Permission denied') But the file exists. -rw-r----- 1 netdata netdata 1477 Sep 15 21:32 /usr/local/etc/netdata/python.d.conf Likewise this exists. -rw-r----- 1 netdata netdata 2502 Sep 10 08:57 /usr/local/lib/netdata/conf.d/python.d/riakkv.conf
Created attachment 244897 [details] error.log
Created attachment 244898 [details] Run netdata as root This was probably introduced by the user changes made by netdata (they now expect to be run as root). Can you try the attached patch to the init script? If it works, I'll add it to the update to v1.42.3 at D41819
Doesn't seem to work, still getting e.g. 2023-09-15 22:10:11: python.d ERROR: plugin[main] : [smartd_log] error on loading '/usr/local/lib/netdata/conf.d/python.d/smartd_log.conf' : PermissionError(13, 'Permission denied') # ls -l /usr/local/lib/netdata/conf.d/python.d/smartd_log.conf -rw-r----- 1 netdata netdata 2974 Sep 10 08:57 /usr/local/lib/netdata/conf.d/python.d/smartd_log.conf Seems like the server processes are running as nobody: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND nobody 38448 0.6 0.4 251528 140920 - IN 22:10 0:03.84 /usr/local/sbin/netdata -P /var/db/netdata/netdata.pid nobody 38449 0.0 0.0 26620 14536 - IN 22:10 0:00.00 /usr/local/sbin/netdata --special-spawn-server
Did you restart netdata with the new init script?
I did, twice now, still running as nobody
I checked the configuration from localhost:19999/netdata.conf, it has the following interesting bit there: [global] # run as user = nobody Seems too much of coincidence to not be a coincidence...
(In reply to Antti Rasinen from comment #6) Yes, just noticed that too. My netdata.conf already has run as user = netdata. Try changing it and reverting the rc.d changes
Alright! Looks much more promising, smartd collector is already collecting some data. I'll try my custom collector next and report
Allright, I'll make sure to update the default user in v1.42.3
(In reply to Antti Rasinen from comment #8) And the custom collector works too. Excellent. Thanks for the help.