Page 1 of 1

ncpa agent is in active (exited) state

Posted: Thu Feb 10, 2022 8:30 am
by preethu.d
Hi Team,

I am seeing an issue where NCPA is not running on a linux machine shows status as active(exited).
ncpa listener logs show error as "[Errno 97] Address family not supported by protocol".
Can you help in resolving the issue.

2022-01-13 18:24:54,038 9151 INFO stopped
2022-02-09 09:02:54,137 194622 INFO started
2022-02-09 09:02:55,194 194622 INFO Using SSL version TLSv1_2
2022-02-09 09:02:55,197 194622 ERROR [Errno 97] Address family not supported by protocol
Traceback (most recent call last):
File "ncpa_listener.py", line 108, in run
File "/usr/local/lib/python2.7/site-packages/gevent/baseserver.py", line 360, in serve_forever
File "/usr/local/lib/python2.7/site-packages/gevent/baseserver.py", line 304, in start
File "/usr/local/lib/python2.7/site-packages/gevent/pywsgi.py", line 1450, in init_socket
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 127, in init_socket
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 138, in get_listener
File "/usr/local/lib/python2.7/site-packages/gevent/server.py", line 225, in _tcp_listener
File "/usr/local/lib/python2.7/site-packages/gevent/_socket2.py", line 107, in __init__
error: [Errno 97] Address family not supported by protocol
2022-02-09 09:02:55,198 194622 INFO stopped


Regards,
Preethu.

Re: ncpa agent is in active (exited) state

Posted: Fri Feb 11, 2022 10:37 am
by gsmith
Hi

What version of python is installed? You can find out by running:
python -V

Thanks!

Re: ncpa agent is in active (exited) state

Posted: Mon Feb 14, 2022 12:54 am
by preethu.d
Hi,

It is 2.7.18

Regards,
Preethu

Re: ncpa agent is in active (exited) state

Posted: Mon Feb 14, 2022 5:41 pm
by gsmith
Hi,

Could you please send me the NCPA listener log?

Thanks!

Re: ncpa agent is in active (exited) state

Posted: Tue Feb 15, 2022 4:16 am
by preethu.d
Hi,

I have sent you via PM.

Regards,
Preethu

Re: ncpa agent is in active (exited) state

Posted: Wed Feb 16, 2022 11:58 am
by gsmith
Hi

In your /usr/local/ncpa/etc/ncpa.cfg please change or add
ip = 0.0.0.0

and restart the ncpa_listener service
service ncpa_listener restart

Let me know the result. If you are still having problems please include a fresh copy of ncpa_listener.log as well as
your /usr/local/ncpa/etc/ncpa.cfg file.

Thanks

Re: ncpa agent is in active (exited) state

Posted: Thu Feb 17, 2022 10:35 am
by preethu.d
Hi,

Thanks you so much.
It is running now.
You can lock the thread.

Regards,
Preethu