Forum

Unified Communications PBX System

Help us to improve VitalPBX

Processing ...
USD
Updating Fax Module...
 

[Solved] Updating Fax Module 1.0.3-1 in VitalPBX 2.3.8-1  

  RSS

DannyLarsen
(@dannylarsen)
Estimable Member
Joined: 2 years ago
Posts: 141
07/10/2019 1:24 pm  

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


mrivera
(@ing-joserivera26)
Developer Admin
Joined: 2 years ago
Posts: 1673
07/10/2019 1:27 pm  

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


DannyLarsen
(@dannylarsen)
Estimable Member
Joined: 2 years ago
Posts: 141
07/10/2019 1:29 pm  

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


mrivera
(@ing-joserivera26)
Developer Admin
Joined: 2 years ago
Posts: 1673
07/10/2019 1:30 pm  

Try the following: 

/usr/share/ombutel/uninstall/fax.php "uninstall"
vitalpbx --build-db

DannyLarsen
(@dannylarsen)
Estimable Member
Joined: 2 years ago
Posts: 141
07/10/2019 1:35 pm  
/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


mrivera
(@ing-joserivera26)
Developer Admin
Joined: 2 years ago
Posts: 1673
07/10/2019 1:45 pm  

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

DannyLarsen
(@dannylarsen)
Estimable Member
Joined: 2 years ago
Posts: 141
07/10/2019 1:54 pm  

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


mrivera
(@ing-joserivera26)
Developer Admin
Joined: 2 years ago
Posts: 1673
07/10/2019 2:10 pm  

You're welcome.


Share:

Please Login or Register