NCPA 3.0.1 on Debian Linux – update/re-install issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
bbahn
Posts: 114
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by bbahn »

It looks like each of those processes are in interruptible sleep, which means they're waiting on an event to complete.
Can you check

Code: Select all

ps aux | grep -E 'apt|dpkg'
so we can see what apt/dpkg are doing while things are hanging?

You can also check these logs to see if apt/dpkg had any errors: /var/log/dpkg.log and /var/log/apt/term.log
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
madmachinery
Posts: 10
Joined: Wed Jan 31, 2024 1:07 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by madmachinery »

kg2857 wrote: Sun Mar 31, 2024 9:28 pm Maybe kill the ncpa service processes and rerun the upgrade.
Unfortunately that is part of the 'infinite loop' I'm currently in. I kill all the related processes, but then uninstall/reinstall spins them back up and they never complete.
bbahn
Posts: 114
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by bbahn »

@madmachinery,

Have you tried this yet?
bbahn wrote: Mon Apr 01, 2024 9:58 am It looks like each of those processes are in interruptible sleep, which means they're waiting on an event to complete.
Can you check

Code: Select all

ps aux | grep -E 'apt|dpkg'
so we can see what apt/dpkg are doing while things are hanging?

You can also check these logs to see if apt/dpkg had any errors: /var/log/dpkg.log and /var/log/apt/term.log
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
madmachinery
Posts: 10
Joined: Wed Jan 31, 2024 1:07 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by madmachinery »

bbahn wrote: Mon Apr 08, 2024 9:16 am Have you tried this yet?
I did, thought I included the output:
ps aux | grep -E 'apt|dpkg'

Code: Select all

root     10932  0.0  0.0  68748  7376 ?        S    Apr01   4:07 apt install --reinstall ncpa
root     11160  0.0  0.0  45624 20552 pts/11   Ss+  Apr01   0:00 /usr/bin/dpkg --status-fd 39 --no-triggers --unpack --auto-deconfigure /var/cache/apt/archives/ncpa_3.0.2-1_amd64.deb
root     11403  0.0  0.0   6772  3256 pts/11   S+   Apr01   0:00 /bin/bash /var/lib/dpkg/tmp.ci/preinst upgrade 3.0.2-1 3.0.2-1
madmachinery
Posts: 10
Joined: Wed Jan 31, 2024 1:07 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by madmachinery »

kg2857 wrote: Sun Mar 31, 2024 9:28 pm Maybe kill the ncpa service processes and rerun the upgrade.
Unfortunately it just puts me back in the same loop:
# kill 3797 3839
# apt reinstall ncpa

Code: Select all

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
# dpkg --configure -a

Code: Select all

Processing triggers for libc-bin (2.28-10+deb10u2) ...
# apt reinstall ncpa

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  ncpa
1 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
1 not fully installed or removed.
Need to get 0 B/26.4 MB of archives.
After this operation, 75.9 MB of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 173923 files and directories currently installed.)
Preparing to unpack .../ncpa_3.0.2-1_amd64.deb ...
Try to stop services with systemctl
Try to stop services with service

Progress: [ 20%] [####################..................................................................................]
madmachinery
Posts: 10
Joined: Wed Jan 31, 2024 1:07 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by madmachinery »

service --status-all
So, this command on its own hangs indefinitely. I'm now working on that, which will very likely resolve the issue (which is probably not related to ncpa at all with the exception of this command being run as part of the installation process).
madmachinery
Posts: 10
Joined: Wed Jan 31, 2024 1:07 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by madmachinery »

CONFIRMED. Looks like an admin created an init script in /etc/init.d that was broken and causing the service command to hang.

This had nothing to do with ncpa all along!
bbahn
Posts: 114
Joined: Thu Jan 12, 2023 5:42 pm

Re: NCPA 3.0.1 on Debian Linux – update/re-install issue

Post by bbahn »

Glad to hear it. Thanks for letting us know.
April: Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply