Package: netdata
Version: 1.10.0+dfsg-1
Severity: important

Dear Maintainer,

When tryng to execute python modules they cannot seem to find their config. 
When debugging it I see the following:

netdata@sid:~$ whoami
netdata
netdata@sid:~$ /usr/lib/x86_64-linux-gnu/netdata/plugins.d/python.d.plugin 
debug 1 postgres
2018-07-20 13:55:44: python.d INFO: plugin: main: Using python 2
2018-07-20 13:55:44: python.d ERROR: plugin: main: "python.d.conf" 
configuration file not found. Using defaults.
2018-07-20 13:55:44: python.d DEBUG: plugin: main: module load source: 
'postgres' => [OK]
2018-07-20 13:55:44: python.d ERROR: plugin: main: module load config: 
'postgres' => [FAILED]
2018-07-20 13:55:44: python.d ERROR: plugin: main: load config error : [Errno 
2] No such file or directory: 
'/usr/lib/x86_64-linux-gnu/netdata/plugins.d/../../../../etc/netdata/python.d/postgres.conf'
2018-07-20 13:55:44: python.d DEBUG: plugin: main: job initialization: 
'postgres postgres' => ['OK']
2018-07-20 13:55:44: python.d DEBUG: plugin: main: module status: 'postgres' => 
[OK] (jobs: 1)
2018-07-20 13:55:44: python.d ERROR: postgres: postgres: 'python-psycopg2' 
module is needed to use postgres.chart.py
2018-07-20 13:55:44: python.d INFO: postgres: postgres: check() => [FAILED]
2018-07-20 13:55:44: python.d INFO: plugin: main: FINISHED

python.d.conf is in it's default location:

netdata@sid:~$ ls -l /etc/netdata/python.d.conf 
-rw-r--r-- 1 root root 1495 May  3 12:40 /etc/netdata/python.d.conf
netdata@sid:~$ 

It seems like netdata is looking at the wrong location. 
/usr/lib/x86_64-linux-gnu/netdata/plugins.d/../../../../etc/netdata/python.d/postgres.conf
 is still one level too deep. It needs one more ../ more likely it should just 
look in /etc/netdata for the config.


-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages netdata depends on:
ii  adduser                3.117
ii  debconf [debconf-2.0]  1.5.68
ii  libc6                  2.27-5
ii  libcap2-bin            1:2.25-1.2
ii  libuuid1               2.32-0.1
ii  lsb-base               9.20170808
ii  netdata-data           1.10.0+dfsg-1
ii  python3                3.6.6-1
ii  python3-six            1.11.0-2
ii  python3-urllib3        1.22-1
ii  python3-yaml           3.12-1+b2
ii  zlib1g                 1:1.2.11.dfsg-1

Versions of packages netdata recommends:
ii  curl    7.60.0-2
ii  fping   4.0-6
ii  nodejs  8.11.2~dfsg-1

netdata suggests no packages.

-- Configuration Files:
/etc/netdata/health_alarm_notify.conf changed [not included]

-- debconf information excluded

Reply via email to