Uninstall Addon cause error

VitalPBX Community Support Reporting an Issue Uninstall Addon cause error

  • Post
    Dan Hole
    Participant
    Up
    -1
    Down
    I have uninstalled the Dynamic Routing Add on and get the following error

    <b>Fatal error</b>: Uncaught Error: Class ‘modules\addons\view’ not found in /usr/share/vitalpbx/www/modules/addons/addons.php:0 Stack trace: #0 /usr/share/vitalpbx/www/modules/addons/addons.php(0): modules\addons\addons->getContent(Object(app\Notification)) #1 /usr/share/vitalpbx/www/includes/app/Core.php(0): modules\addons\addons->remove_package() #2 /usr/share/vitalpbx/www/includes/app/Core.php(0): app\Core->loadModuleAction(‘\\modules\\addons…’, ‘remove_package’) #3 /usr/share/vitalpbx/www/includes/app/Core.php(0): app\Core->_loadModule() #4 /usr/share/vitalpbx/www/index.php(0): app\Core->run() #5 {main} thrown in <b>/usr/share/vitalpbx/www/modules/addons/addons.php</b> on line <b>0</b>

    this then caused the web page to display the apache default page and i cannot get vital pbx web page to load

     

    Attachments:
    You must be logged in to view attached files.
    0
Viewing 10 replies - 1 through 10 (of 10 total)
  • Replies
    Up
    0
    Down
    The dynamic routing is a dependence of VitalPBX, It is possible that the VitalPBX package has been uninstalled also.
    0
    Dan Hole
    Participant
    Up
    0
    Down
    looking at the yum log it erased all the modules when it errored

    [root@PBX02 www]# tail -30 /var/log/yum.log
    Nov 30 13:18:02 Installed: ghostscript-9.25-5.el7.x86_64
    Nov 30 13:18:03 Installed: hylafax+-7.0.3-1.el7.x86_64
    Nov 30 13:18:03 Installed: iaxmodem-1.3.0-1.x86_64
    Nov 30 13:18:03 Installed: vitalpbx-virtual-faxes-3.0.1-3.x86_64
    Nov 30 13:18:23 Installed: vitalpbx-vitxi-server-1.0.0-3.x86_64
    Nov 30 13:18:37 Installed: vitxi-1.0.2-4.x86_64
    Nov 30 15:22:40 Installed: asterisk-sounds-en_GB_Beatrix-ulaw-3.0.0-1.noarch
    Dec 11 11:16:23 Erased: vitalpbx-communicator-3.0.0-2.x86_64
    Dec 11 11:16:24 Erased: vitxi-1.0.2-4.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-bulk-extensions-3.0.0-1.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-custom_contexts-3.0.0-1.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-maintenance-3.0.1-3.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-epm-1.0.0-2.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-vitxi-server-1.0.0-3.x86_64
    Dec 11 11:16:25 Erased: vitalpbx-branding-3.0.1-2.x86_64
    Dec 11 11:16:25 Erased: vitalpbx-ivr_stats-3.0.0-1.x86_64
    Dec 11 11:16:44 Erased: vitalpbx-high-availability-2.0.0-1.x86_64
    Dec 11 11:16:44 Erased: sonata-recordings-3.0.1-2.noarch
    Dec 11 11:16:45 Erased: vitalpbx-virtual-faxes-3.0.1-3.x86_64
    Dec 11 11:16:45 Erased: vitalpbx-phone-books-3.0.0-2.x86_64
    Dec 11 11:16:45 Erased: vitalpbx-dynamic-destinations-3.0.0-1.x86_64
    Dec 11 11:16:47 Erased: vitalpbx-geo-firewall-3.0.0-1.x86_64
    Dec 11 11:16:48 Erased: sonata-stats-1.0.1-4.x86_64
    Dec 11 11:16:48 Erased: sonata-switchboard-3.0.1-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-api-v2-3.0.1-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-g729-3.0.0-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-monitor-3.0.4-2.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-themes-3.0.4-2.x86_64
    Dec 11 11:16:49 Erased: vitalpbx-3.0.4-2.x86_64
    Dec 11 11:16:49 Erased: vitalpbx-dynamic-routing-3.0.0-1.x86_64

    root@PBX02 www]# yum list vital*
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    * base: uk.mirrors.clouvider.net
    * epel: mirrors.ukfast.co.uk
    * extras: mirrors.coreix.net
    * updates: mirrors.coreix.net
    Installed Packages
    vitalpbx-asterisk-configs.x86_64 3.0.4-2 @vpbx-core
    vitalpbx-fail2ban-config.noarch 3.0.0-1 @anaconda/3
    vitalpbx-sounds.x86_64 3.0.4-2 @vpbx-core
    vitalpbx-sounds-es.x86_64 3.0.4-2 @vpbx-core

    0
    Dan Hole
    Participant
    Up
    0
    Down
    looking at the yum log it erased all the modules when it errored

    [root@PBX02 www]# tail -30 /var/log/yum.log
    Nov 30 13:18:02 Installed: ghostscript-9.25-5.el7.x86_64
    Nov 30 13:18:03 Installed: hylafax+-7.0.3-1.el7.x86_64
    Nov 30 13:18:03 Installed: iaxmodem-1.3.0-1.x86_64
    Nov 30 13:18:03 Installed: vitalpbx-virtual-faxes-3.0.1-3.x86_64
    Nov 30 13:18:23 Installed: vitalpbx-vitxi-server-1.0.0-3.x86_64
    Nov 30 13:18:37 Installed: vitxi-1.0.2-4.x86_64
    Nov 30 15:22:40 Installed: asterisk-sounds-en_GB_Beatrix-ulaw-3.0.0-1.noarch
    Dec 11 11:16:23 Erased: vitalpbx-communicator-3.0.0-2.x86_64
    Dec 11 11:16:24 Erased: vitxi-1.0.2-4.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-bulk-extensions-3.0.0-1.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-custom_contexts-3.0.0-1.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-maintenance-3.0.1-3.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-epm-1.0.0-2.x86_64
    Dec 11 11:16:24 Erased: vitalpbx-vitxi-server-1.0.0-3.x86_64
    Dec 11 11:16:25 Erased: vitalpbx-branding-3.0.1-2.x86_64
    Dec 11 11:16:25 Erased: vitalpbx-ivr_stats-3.0.0-1.x86_64
    Dec 11 11:16:44 Erased: vitalpbx-high-availability-2.0.0-1.x86_64
    Dec 11 11:16:44 Erased: sonata-recordings-3.0.1-2.noarch
    Dec 11 11:16:45 Erased: vitalpbx-virtual-faxes-3.0.1-3.x86_64
    Dec 11 11:16:45 Erased: vitalpbx-phone-books-3.0.0-2.x86_64
    Dec 11 11:16:45 Erased: vitalpbx-dynamic-destinations-3.0.0-1.x86_64
    Dec 11 11:16:47 Erased: vitalpbx-geo-firewall-3.0.0-1.x86_64
    Dec 11 11:16:48 Erased: sonata-stats-1.0.1-4.x86_64
    Dec 11 11:16:48 Erased: sonata-switchboard-3.0.1-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-api-v2-3.0.1-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-g729-3.0.0-1.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-monitor-3.0.4-2.x86_64
    Dec 11 11:16:48 Erased: vitalpbx-themes-3.0.4-2.x86_64
    Dec 11 11:16:49 Erased: vitalpbx-3.0.4-2.x86_64
    Dec 11 11:16:49 Erased: vitalpbx-dynamic-routing-3.0.0-1.x86_64

    root@PBX02 www]# yum list vital*
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    * base: uk.mirrors.clouvider.net
    * epel: mirrors.ukfast.co.uk
    * extras: mirrors.coreix.net
    * updates: mirrors.coreix.net
    Installed Packages
    vitalpbx-asterisk-configs.x86_64 3.0.4-2 @vpbx-core
    vitalpbx-fail2ban-config.noarch 3.0.0-1 @anaconda/3
    vitalpbx-sounds.x86_64 3.0.4-2 @vpbx-core
    vitalpbx-sounds-es.x86_64 3.0.4-2 @vpbx-core

    0
    Up
    0
    Down
    You must install VitalPBX:

    yum -y install vitalpbx vitalpbx-asterisk-configs vitalpbx-fail2ban-config vitalpbx-sounds vitalpbx-themes

    Then, you can reinstall all the required add-ons again.

    0
    Dan Hole
    Participant
    Up
    0
    Down
    Sorry it didnt work, guess its also lost the repo?

    [root@PBX02 ~]# yum -y install vitalpbx vitalpbx-asterisk-configs vitalpbx-fail2ban-config vitalpbx-sounds vitalpbx-themes
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: uk.mirrors.clouvider.net
    * epel: mirrors.coreix.net
    * extras: mirrors.coreix.net
    * updates: mirrors.coreix.net
    No package vitalpbx available.
    No package vitalpbx-themes available.
    Nothing to do

    0
    Up
    0
    Down
    For downloading the repo you can use the following command:

    wget -P /etc/yum.repos.d/ https://raw.githubusercontent.com/VitalPBX/VPS/vitalpbx-3/resources/vitalpbx.repo

    0
    Dan Hole
    Participant
    Up
    0
    Down
    OK that has worked however, i have lost a lot of my config looks like when it installs it recreates the sql tables.

    As i was setting this up still i hadnt created a backup, dont supose it will have created one as part of the install?

    0
    Dan Hole
    Participant
    Up
    0
    Down
    when going into extentions i also get the following error

    <b>Exception</b>: SQLSTATE[42S22]: Column not found: 1054 Unknown column '3bafc5de211f50611f282494ecf2c162.tenant_id' in 'where clause' With Query: select 3bafc5de211f50611f282494ecf2c162.id as id,3bafc5de211f50611f282494ecf2c162.description as description,3bafc5de211f50611f282494ecf2c162.cos_id as cos_id,3bafc5de211f50611f282494ecf2c162.secret as secret,3bafc5de211f50611f282494ecf2c162.associated_email as associated_email,3bafc5de211f50611f282494ecf2c162.cid_name as cid_name,3bafc5de211f50611f282494ecf2c162.cid_number as cid_number,3bafc5de211f50611f282494ecf2c162.country_code as country_code,3bafc5de211f50611f282494ecf2c162.area_code as area_code from ombutel.ombu_fax_devices as 3bafc5de211f50611f282494ecf2c162 where 3bafc5de211f50611f282494ecf2c162.tenant_id = ? at file /usr/share/vitalpbx/www/includes/db.php on line 0

    0
    Dan Hole
    Participant
    Up
    0
    Down
    Can i suggest that you disable the option to uninstall any add ons which would cause this same issue.

    I have managed to restore form a server backup to get the system running again.

    0
    Bryan
    Participant
    Up
    0
    Down
    I agree with Dan.  The Addons page is a mine field.  Just ran into this myself and am having to reinstall again.
    0
Viewing 10 replies - 1 through 10 (of 10 total)
  • The forum ‘Reporting an Issue’ is closed to new topics and replies.