NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

ncpa_listener.service exists with python error on fresh install of Ubuntu 22.04 LTS (Jammy Jellyfish) #871

Closed murdock-illinois closed 2 years ago

murdock-illinois commented 2 years ago

Followed instructions in BUILDING.rst; build and install worked fine but it won't run -- exits immediately with python error about FIPS_mode being undefined:

ncpa_listener.service - LSB: This manages the NCPA Listener service Loaded: loaded (/etc/init.d/ncpa_listener; generated) Active: active (exited) since Mon 2022-05-23 14:41:15 MST; 47s ago Docs: man:systemd-sysv-generator(8) Process: 3189 ExecStart=/etc/init.d/ncpa_listener start (code=exited, status=0/SUCCESS) CPU: 165ms

May 23 14:41:15 newcomp ncpa_listener[3191]: File "/usr/local/lib/python2.7/site-packages/OpenSSL/crypto.py", line 17, in May 23 14:41:15 newcomp ncpa_listener[3191]: from OpenSSL._util import ( May 23 14:41:15 newcomp ncpa_listener[3191]: File "/usr/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in May 23 14:41:15 newcomp ncpa_listener[3191]: from cryptography.hazmat.bindings.openssl.binding import Binding May 23 14:41:15 newcomp ncpa_listener[3191]: File "/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in May 23 14:41:15 newcomp ncpa_listener[3191]: from cryptography.hazmat.bindings._openssl import ffi, lib May 23 14:41:15 newcomp ncpa_listener[3191]: File "ExtensionLoader_cryptography_hazmat_bindingsopenssl.py", line 25, in May 23 14:41:15 newcomp ncpa_listener[3191]: File "ExtensionLoader_cryptography_hazmat_bindingsopenssl.py", line 17, in bootstrap May 23 14:41:15 newcomp ncpa_listener[3191]: ImportError: /usr/local/ncpa/cryptography.hazmat.bindings._openssl.so: undefined symbol: FIPS_mode May 23 14:41:15 newcomp systemd[1]: Started LSB: This manages the NCPA Listener service.

...any ideas or suggestions about what is going on, how to work around it?

Rob

jomann09 commented 2 years ago

I'm not sure if there's a good workaround, without doing some changes to the underlying packages and/or code. We will be working on a Ubuntu 22 build for NCPA 3 - which will be using python 3 instead of trying to use 2. We are working on the build process for now.

austinjhunt commented 2 years ago

Hi @jomann09! Is there an estimated timeline for a new 22.04-friendly version of NCPA? We're about to begin rolling out the new OS within our infrastructure and we use NCPA heavily for monitoring so our goal is to include its installation in the provisioning template. Love the project!

jomann09 commented 2 years ago

I think this should work, you can test it out if you'd like - I'm still testing it but unless I find anything major this should be out here in the next few days. https://assets.nagios.com/downloads/ncpa/dev/ncpa-2.4.0.u22.amd64.deb

jomann09 commented 2 years ago

Closing this as a duplicate of #868 though, will track any more changes there.