3cx update started on schedule and took the system down

rayno_b

Gold Partner
Joined
Apr 6, 2017
Messages
9
Reaction score
1
Our 3cx system is set to automatically run updates.

Our 3CX update (20.0.10.1785) also triggered a Debian OS update that included grub-pc. Because grub-pc.postinst spawned an interactive debconf frontend prompt asking which disk (/dev/nvme0n1) to install GRUB onto—and there was no interactive terminal attached to the background 3CX updater—dpkg and apt-get have been sitting frozen on that prompt, holding the package lock while 3cxpbx is half-upgraded.

This was quite frustrating, as the dependency on 3cx to manage these auto-updates, effectively failed half way, leaving the entire system inaccessible until we manually found the issue, got the grup-pc matter resolved and finalising the update.

My question is - is this a common issue, and why did the update trigger if it needed an interactive prompt on an administrator side to finalise the update? This caused quite a considerable amount of down time for the end users and was extremely difficult to figure out.
 
@rayno_b can you please open a ticket to your Support portal to check it out further ?
 
You may want to troubleshoot this with 3CX Support AI as it's very good at this sort of stuff.

I wonder if you experienced the same issue I had because of how I installed 3CX (GRUB loader installed on incorrect drive).

Check out my first post and go to the end where I mention caveats.

may be good for you to run through your other systems to check grub is correct or you'll encounter the same problems when doing debian updates.
 
  • Like
Reactions: rayno_b
Hi NikosT, I absolutely can yes, but the issue is already resolved?
 
I can confirm the problem. this issue happened on 2 of my 3CX installations.
system was stuck with 60% cpu

# ps aux | grep -E "apt|dpkg"
root 135153 0.0 0.1 6340 2080 pts/1 S+ 08:18 0:00 grep -E apt|dpkg
root 1179160 0.3 0.5 19372 12028 ? S 05:24 0:34 apt-get -y --allow-downgrades install 3cxpbx=20.0.10.1785
root 1179274 0.0 0.3 10536 6060 pts/0 Ss+ 05:24 0:00 /usr/bin/dpkg --status-fd 17 --configure --pending
root 1179275 8.0 1.0 25512 20316 pts/0 R+ 05:24 14:04 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst configure 2.06-13+deb12u1
root 1179308 7.6 0.1 7336 3716 pts/0 S+ 05:24 13:24 /bin/bash /var/lib/dpkg/info/grub-pc.postinst configure 2.06-13+deb12u1

to resolv this issue I had to
kill -9 1179160 1179274 1179275 1179308

then continue the update with
dpkg --configure -a
this will show the grub installation dialog and allow it to be completed interactively

if the 3CX update is not automatically triggered you need to do
apt-get -y --allow-downgrades install 3cxpbx=20.0.10.1785
 

Forum statistics

Threads
112,491
Messages
592,833
Members
165,709
Latest member
kosa