Updating Fax Module 1.0.3-1 in VitalPBX 2.3.8-1

VitalPBX Community Support General Discussion Updating Fax Module 1.0.3-1 in VitalPBX 2.3.8-1

  • Post
    DannyLarsen
    Participant
    none

    Tesitn the Virtual Fax I have removed the old fax module using yum remove vitalpbx-virtual-faxes

    When reinstalling using yum install vitalpbx-virtual-faxes I get this error

    Can you help

    Dependencies Resolved

    =====================================================================================================================================================
    Package Arch Version Repository Size
    =====================================================================================================================================================
    Installing:
    vitalpbx-virtual-faxes x86_64 1.0.3-1 vpbx-addons 169 k

    Transaction Summary
    =====================================================================================================================================================
    Install 1 Package

    Total download size: 169 k
    Installed size: 247 k
    Is this ok [y/d/N]: y
    Downloading packages:
    vitalpbx-virtual-faxes-1.0.3-1.x86_64.rpm | 169 kB 00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : vitalpbx-virtual-faxes-1.0.3-1.x86_64 1/1
    iaxmodem.service is not a native service, redirecting to /sbin/chkconfig.
    Executing /sbin/chkconfig iaxmodem on
    Importing fax.sql…
    PHP Fatal error: Uncaught exception ‘Exception’ with message ‘ERROR 1452 (23000) at line 103: Cannot add or update a child row: a foreign key constraint fails (`ombutel`.`#sql-11a1_efac`, CONSTRAINT `#sql-11a1_efac_ibfk_10` FOREIGN KEY (`fax_device_id`) REFERENCES `ombu_fax_devices` (`id`) ON DELETE SET NULL)
    ‘ in /usr/share/ombutel/scripts/apply_patches:0
    Stack trace:
    #0 /usr/share/ombutel/scripts/apply_patches(0): patcher::shellcmd()
    #1 /usr/share/ombutel/scripts/apply_patches(0): patcher->shellcmd(‘set -eo pipefai…’)
    #2 /usr/share/ombutel/scripts/apply_patches(0): patcher->import_dbscript()
    #3 /usr/share/ombutel/scripts/apply_patches(0): patcher->apply()
    #4 {main}
    thrown in /usr/share/ombutel/scripts/apply_patches on line 0
    Verifying : vitalpbx-virtual-faxes-1.0.3-1.x86_64 1/1

    Installed:
    vitalpbx-virtual-faxes.x86_64 0:1.0.3-1

    0
Viewing 7 replies - 1 through 7 (of 7 total)
  • Replies
    Up
    0
    Down

    The idea of a new version is not to delete the old one, the idea is performing a yum update.

    0
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    It was not working from the gui update so I manually removed it and tried to re install

    0
    Up
    0
    Down

    Try the following: 

    /usr/share/ombutel/uninstall/fax.php "uninstall"
    vitalpbx --build-db
    0
    DannyLarsen
    Participant
    none
    Up
    0
    Down
    /usr/share/ombutel/uninstall/fax.php "uninstall"

    vitalpbx –build-db
    Importing fax.sql…
    PHP Fatal error: Uncaught exception ‘Exception’ with message ‘ERROR 1452 (23000) at line 103: Cannot add or update a child row: a foreign key constraint fails (`ombutel`.`#sql-11a1_efdf`, CONSTRAINT `#sql-11a1_efdf_ibfk_10` FOREIGN KEY (`fax_device_id`) REFERENCES `ombu_fax_devices` (`id`) ON DELETE SET NULL)
    ‘ in /usr/share/ombutel/scripts/apply_patches:0
    Stack trace:
    #0 /usr/share/ombutel/scripts/apply_patches(0): patcher::shellcmd()
    #1 /usr/share/ombutel/scripts/apply_patches(0): patcher->shellcmd(‘set -eo pipefai…’)
    #2 /usr/share/ombutel/scripts/apply_patches(0): patcher->import_dbscript()
    #3 /usr/share/ombutel/scripts/apply_patches(0): patcher->apply()
    #4 {main}
    thrown in /usr/share/ombutel/scripts/apply_patches on line 0

    0
    Up
    0
    Down

    I did the same on my testing server and is working fine. You may try the following:

    mysql -uroot -e"update ombutel.ombu_users set fax_device_id = null";
    /usr/share/ombutel/uninstall/fax.php "uninstall"
    yum clean all
    yum reinstall vitalpbx-virtual-faxes
    0
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    Thank you, that solved my issue, sorry to be a pain 🙂

    0
    Up
    0
    Down

    You’re welcome.

    0
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Updating Fax Module 1.0.3-1 in VitalPBX 2.3.8-1’ is closed to new replies.