Page 2 of 2

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

Posted: Mon Apr 01, 2024 9:58 am
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

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

Posted: Mon Apr 01, 2024 10:05 am
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.

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

Posted: Mon Apr 08, 2024 9:16 am
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

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

Posted: Mon Apr 08, 2024 1:20 pm
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

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

Posted: Tue Apr 09, 2024 1:48 pm
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%] [####################..................................................................................]

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

Posted: Tue Apr 09, 2024 2:39 pm
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).

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

Posted: Tue Apr 09, 2024 3:44 pm
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!

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

Posted: Wed Apr 10, 2024 10:44 am
by bbahn
Glad to hear it. Thanks for letting us know.