Solved 4 3CX installs will not install v15.5 SP2 linux debian

Discussion in '3CX Phone System - General' started by DocTechAZ, Dec 8, 2017.

Thread Status:
Not open for further replies.
  1. DocTechAZ

    Joined:
    Nov 17, 2017
    Messages:
    44
    Likes Received:
    12
    We have 15 debian linux 3cx installs, and recently 4 of them are failing to update when we try to install SP2.

    They email us the following error message:
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
    Rollback to 15.5.3849.1...
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

    I ran this command on the local linux console logged in as root.
    sudo dpkg --configure -a

    This spit out some output that had errors in it, but the update still will not install.
    Output from sudo dpkg --configure -a:
    sudo dpkg --configure -a
    Setting up wireshark-common (1.12.1+g01b65bf-4+deb8u11) ...
    debconf: unable to initialize frontend: Dialog
    debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
    debconf: falling back to frontend: Readline
    debconf: unable to initialize frontend: Readline
    debconf: (This frontend requires a controlling tty.)
    debconf: falling back to frontend: Teletype
    Configuring wireshark-common
    ----------------------------

    Dumpcap can be installed in a way that allows members of the "wireshark" system
    group to capture packets. This is recommended over the alternative of running
    Wireshark/Tshark directly as root, because less of the code will run with
    elevated privileges.

    For more detailed information please see
    /usr/share/doc/wireshark-common/README.Debian.

    Enabling this feature may be a security risk, so it is disabled by default. If
    in doubt, it is suggested to leave it disabled.

    Should non-superusers be able to capture packets?
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/DbDriver/Stack.pm line 111.
    Use of uninitialized value $val in substitution (s///) at /usr/share/perl5/Debconf/Format/822.pm line 83, <GEN6> line 1.
    Use of uninitialized value $val in concatenation (.) or string at /usr/share/perl5/Debconf/Format/822.pm line 84, <GEN6> line 1.
    Processing triggers for libc-bin (2.19-18+deb8u10) ...
    Setting up tshark (1.12.1+g01b65bf-4+deb8u11) ...

    We had been told to install tshark previously by a 3cx support rep to troubleshoot call quality a while back so i suspect thats why that part is in there.

    the command
    sudo dpkg --configure -a
    no longer gives any output now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. DocTechAZ

    Joined:
    Nov 17, 2017
    Messages:
    44
    Likes Received:
    12
    I was able to go through the auth logs and see what command 3cx tries to run to upgrade, and heres what i found.

    /usr/bin/apt-get update -o Dir::Etc::sourcelist=sources.list.d/3cxpbx.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0
    Hit http://downloads.3cx.com InRelease
    Hit http://downloads.3cx.com Packages
    Ign http://downloads.3cx.com Translation-en
    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DocTechAZ

    Joined:
    Nov 17, 2017
    Messages:
    44
    Likes Received:
    12
    We found a way to fix the problem!

    Reboot the machine fully, so file locks get released, 3cx web admin will still fail to update it after the reboot, but apt-get can run the update just fine we discovered, so do this in SSH, or on the linux console as root, if you cannot login as root, add sudo to the beginning(sudo apt-get......)

    apt-get upgrade 3cxpbx

    Hit Y to accept it,

    It will pull the update and install it and restart the services automatically.

    15 years of linux experience pays off
    --Brentt @ DocTechAZ
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DocTechAZ

    Joined:
    Nov 17, 2017
    Messages:
    44
    Likes Received:
    12
    If this doesnt work for you, try running
    dpkg --configure -a
    before hand, accepting or answering any questions it asks, then proceeding with my instructions above and all should be well.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. apostolis_3CX

    apostolis_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    149
    Likes Received:
    15
    Glad to see your issue was resolved and thank you for sharing the solution.
     
  6. apostolis_3CX

    apostolis_3CX Support Team
    Staff Member 3CX Support

    Joined:
    Nov 1, 2017
    Messages:
    149
    Likes Received:
    15
    Glad to see your issue was resolved and thank you for sharing the solution.
     
Thread Status:
Not open for further replies.