Thanks to visit codestin.com
Credit goes to github.com

Skip to content

python SocketService: lack of connect timeout, python.d.plugin hangs #5541

Description

@Steve8291
Bug report summary

No python modules will display charts on Ubuntu Server 18.04
Both Sensors and Redis modules appear to be working.
Output of /usr/libexec/netdata/plugins.d/python.d.plugin 1 debug sensors

2019-03-03 13:23:36: python.d INFO: plugin: main: Using python 2
2019-03-03 13:23:36: python.d DEBUG: plugin: main: loading '/etc/netdata/python.d.conf'
2019-03-03 13:23:36: python.d ERROR: plugin: main: cannot load '/etc/netdata/python.d.conf': [Errno 2] No such file or directory: '/etc/netdata/python.d.conf'. Will try stock version.
2019-03-03 13:23:36: python.d DEBUG: plugin: main: loading '/usr/lib/netdata/conf.d/python.d.conf'
2019-03-03 13:23:36: python.d DEBUG: plugin: main: module load source: 'sensors' => [OK]
2019-03-03 13:23:36: python.d DEBUG: plugin: main: loading '/etc/netdata/python.d/sensors.conf'
2019-03-03 13:23:36: python.d ERROR: plugin: main: cannot load '/etc/netdata/python.d/sensors.conf' : [Errno 2] No such file or directory: '/etc/netdata/python.d/sensors.conf'. Will try stock version.
2019-03-03 13:23:36: python.d DEBUG: plugin: main: loading '/usr/lib/netdata/conf.d/python.d/sensors.conf'
2019-03-03 13:23:36: python.d DEBUG: plugin: main: job initialization: 'sensors sensors' => ['OK']
2019-03-03 13:23:36: python.d DEBUG: plugin: main: module status: 'sensors' => [OK] (jobs: 1)
2019-03-03 13:23:36: python.d INFO: sensors: sensors: check() => [OK]
CHART netdata.runtime_sensors '' 'Execution time for sensors' 'ms' 'python.d' netdata.pythond_runtime line 145000 1
DIMENSION run_time 'run time' absolute 1 1

2019-03-03 13:23:36: python.d DEBUG: sensors: sensors: create() => [OK] (charts: 3)
2019-03-03 13:23:36: python.d DEBUG: sensors: sensors: started, update frequency: 1
CHART sensors.coretemp-isa-0000_temperature '' 'coretemp-isa-0000 temperature' 'Celsius' 'temperature' 'sensors.temperature' line 60002 1 '' 'python.d.plugin' 'sensors'
DIMENSION 'coretemp-isa-0000_temp1' 'Package id 0' absolute 1 1000 ''
DIMENSION 'coretemp-isa-0000_temp2' 'Core 0' absolute 1 1000 ''
DIMENSION 'coretemp-isa-0000_temp3' 'Core 1' absolute 1 1000 ''
DIMENSION 'coretemp-isa-0000_temp4' 'Core 2' absolute 1 1000 ''
DIMENSION 'coretemp-isa-0000_temp5' 'Core 3' absolute 1 1000 ''

BEGIN sensors.coretemp-isa-0000_temperature 0
SET 'coretemp-isa-0000_temp1' = 37000
SET 'coretemp-isa-0000_temp2' = 23000
SET 'coretemp-isa-0000_temp3' = 25000
SET 'coretemp-isa-0000_temp4' = 24000
SET 'coretemp-isa-0000_temp5' = 36000
END

I have attempted run netdata off an Ubuntu 18.04 Desktop livecd. This works fine.
Also attempted to install all python packages on the server that were not present as compared with the livecd. This also had no effect.

OS / Environment

Ubuntu Server 18.04

Netdata version (ouput of netdata -V)

netdata v1.12.2-4-nightly

Component Name

python.d.plugin

Steps To Reproduce

Fresh install of Ubuntu Server 18.04

apt install lm-sensors
apt install redis-server
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
Expected behavior

Charts should show for Sensors and Redis.

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions