Page 1 of 1

NCPA Listener fails to start

Posted: Mon Mar 18, 2019 9:28 am
by realtebo
I am on the following os

Code: Select all

# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.4 (stretch)
Release:        9.4
Codename:       stretch

# python -V
Python 2.7.13

>>> psutil.__version__
'5.6.1'
I have this critical problem when trying to start ncpa_listener service

Code: Select all

# /etc/init.d/ncpa_listener start
Started NCPA Listener
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module>
  File "ncpa_listener.py", line 5, in <module>
  File "/root/ncpa/agent/ncpadaemon.py", line 14, in <module>
  File "/root/ncpa/agent/listener/database.py", line 5, in <module>
  File "/root/ncpa/agent/listener/server.py", line 11, in <module>
  File "/root/ncpa/agent/listener/psapi.py", line 250, in <module>
  File "/root/ncpa/agent/listener/psapi.py", line 221, in get_root_node
  File "/root/ncpa/agent/listener/psapi.py", line 157, in get_disk_node
  File "/usr/local/lib/python2.7/site-packages/psutil/__init__.py", line 2017, in disk_io_counters
  File "/usr/local/lib/python2.7/site-packages/psutil/_pslinux.py", line 1117, in disk_io_counters
  File "/usr/local/lib/python2.7/site-packages/psutil/_pslinux.py", line 1090, in read_procfs
What am I doing wrong?

Re: NCPA Listener fails to start

Posted: Tue Mar 19, 2019 1:53 pm
by ssax
Did some of the information get cut off from the backtrace? Please post the full backtrace.

Re: NCPA Listener fails to start

Posted: Tue Mar 19, 2019 1:55 pm
by ssax
Additionally, please PM or attach your ncpa.cfg file for review.

Do you see anything related in your ncpa_listener.log or in /var/log/messages?