Core module error after restore

Hi. everyone. I have a problem after restore my freepbx.

Exception (404)
Unable to locate the FreePBX BMO Class 'Core’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install core 2) fwconsole ma enable core

/var/www/html/admin/libraries/BMO/Self_Helper.class.php
$needs_zend = isset($info[$module][‘depends’][‘phpcomponent’]) && stristr($info[$module][‘depends’][‘phpcomponent’], ‘zend’);
$licFileExists = glob (‘/etc/schmooze/license-*.zl’);
$complete_zend = (!function_exists(‘zend_loader_install_license’) || empty($licFileExists));
if ($needs_zend && class_exists(‘\Schmooze\Zend’,false) && \Schmooze\Zend::fileIsLicensed($try) && $complete_zend) {
break;
}

                include $try;
                $loaded = $try;
                break;
            }
        }
    }

    // Right, after all of this we should now have our object ready to create.
    if (!class_exists($objname,false) && !class_exists($this->moduleNamespace.$objname,false) && !class_exists($this->freepbxNamespace.$objname,false)) {
        // Bad things have happened.
        if (!$loaded) {
            $sobjname = strtolower($objname);
            throw new \Exception(sprintf(_("Unable to locate the FreePBX BMO Class '%s'"),$objname) . sprintf(_("A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install %s 2) fwconsole ma enable %s"),$sobjname,$sobjname),404);
            //die_freepbx(sprintf(_("Unable to locate the FreePBX BMO Class '%s'"),$objname), sprintf(_("A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) amportal a ma install %s 2) amportal a ma enable %s"),$sobjname,$sobjname));
        }

        // We loaded a file that claimed to represent that class, but didn't.
        throw new \Exception(sprintf(_("Attempted to load %s but it didn't define the class %s"),$try,$objname),404);
    }

    return true;
}

}


[root@freepbx ~]# fwconsole ma list
No repos specified, using: [commercial,standard] from last GUI settings

±---------------------±-----------±----------------------------------±------------±----------+
| Module | Version | Status | License | Signature |
±---------------------±-----------±----------------------------------±------------±----------+
| accountcodepreserve | 13.0.2.2 | Enabled | GPLv2 | Sangoma |
| adv_recovery | 15.0.53.9 | Enabled | Commercial | Sangoma |
| amd | 15.0.3 | Enabled | GPLv3+ | Sangoma |
| api | 15.0.11 | Enabled | AGPLv3+ | Sangoma |
| arimanager | 15.0.3.20 | Enabled | GPLv3+ | Sangoma |
| asterisk-cli | 14.0.4 | Enabled | GPLv3+ | Sangoma |
| asteriskinfo | 15.0.14 | Enabled | GPLv3+ | Sangoma |
| backup | 15.0.25 | Enabled | GPLv3+ | Sangoma |
| blacklist | 15.0.4 | Enabled | GPLv3+ | Sangoma |
| builtin | | Enabled | | Unsigned |
| bulkhandler | 15.0.4 | Enabled | GPLv3+ | Sangoma |
| calendar | 15.0.10 | Enabled | GPLv3+ | Sangoma |
| callaccounting | 15.0.28 | Enabled | Commercial+ | Sangoma |
| callback | 15.0.12 | Enabled | GPLv3+ | Sangoma |
| callerid | 15.0.16 | Enabled | Commercial | Sangoma |
| callforward | 15.0.16 | Enabled | AGPLv3+ | Sangoma |
| calllimit | 15.0.5.6 | Enabled | Commercial | Sangoma |
| callrecording | 15.0.7.29 | Enabled | AGPLv3+ | Sangoma |
| callwaiting | 15.0.4.6 | Enabled | GPLv3+ | Sangoma |
| cdr | 15.0.24.3 | Enabled | GPLv3+ | Sangoma |
| cel | 15.0.17 | Enabled | GPLv3+ | Sangoma |
| certman | 15.0.49 | Enabled | AGPLv3+ | Sangoma |
| cidlookup | 15.0.27 | Enabled | GPLv3+ | Sangoma |
| conferences | 15.0.7.11 | Enabled | GPLv3+ | Sangoma |
| conferencespro | 15.0.3.18 | Enabled | Commercial | Sangoma |
| configedit | 13.0.7.3 | Enabled | AGPLv3+ | Sangoma |
| contactmanager | 15.0.12 | Enabled | GPLv3+ | Sangoma |
| core | | Not Installed (Locally available) | GPLv3+ | Sangoma |
| cos | 15.0.15 | Enabled | Commercial | Sangoma |
| customappsreg | 15.0.14 | Enabled | GPLv3+ | Sangoma |
| cxpanel | 15.0.4 | Enabled | GPLv3 | Sangoma |
| dahdiconfig | 15.0.5.9 | Enabled | GPLv3+ | Sangoma |
| dashboard | 15.0.18 | Enabled | AGPLv3+ | Sangoma |
| daynight | 15.0.12 | Enabled | GPLv3+ | Sangoma |
| dictate | 15.0.7 | Enabled | GPLv3+ | Sangoma |
| digium_phones | 15.0.12 | Enabled | GPLv2 | Sangoma |
| digiumaddoninstaller | 13.0.1.4 | Enabled | GPLv2 | Sangoma |
| directory | 15.0.19 | Enabled | GPLv3+ | Sangoma |
| disa | 15.0.4.9 | Enabled | AGPLv3+ | Sangoma |
| donotdisturb | 15.0.10 | Enabled | GPLv3+ | Sangoma |
| dynroute | 15.0.3 | Enabled | GPLv3+ | Sangoma |
| endpoint | 15.0.65.7 | Enabled | Commercial | Sangoma |
| extensionsettings | 13.0.4 | Enabled | GPLv3+ | Sangoma |
| fax | 15.0.22 | Enabled | GPLv3+ | Sangoma |
| featurecodeadmin | 13.0.6.11 | Enabled | GPLv3+ | Sangoma |
| filestore | 15.0.9 | Enabled | AGPLv3 | Sangoma |
| findmefollow | 15.0.37 | Enabled | GPLv3+ | Sangoma |
| firewall | 15.0.43 | Enabled | AGPLv3+ | Sangoma |
| framework | 15.0.37.4 | Enabled | GPLv2+ | Sangoma |
| fw_langpacks | 14.0.1 | Enabled | GPLv3+ | Sangoma |
| hotelwakeup | 15.0.5.5 | Enabled | GPLv2 | Sangoma |
| iaxsettings | 15.0.8 | Enabled | AGPLv3 | Sangoma |
| infoservices | 15.0.3 | Enabled | GPLv2+ | Sangoma |
| iotserver | 15.0.10.1 | Enabled | Commercial | Sangoma |
| irc | 13.0.1 | Enabled | GPLv3+ | Sangoma |
| ivr | 15.0.30 | Enabled | GPLv3+ | Sangoma |
| languages | 15.0.13 | Enabled | GPLv3+ | Sangoma |
| logfiles | 15.0.15 | Enabled | GPLv3+ | Sangoma |
| manager | 15.0.22 | Enabled | GPLv2+ | Sangoma |
| miscapps | 15.0.10 | Enabled | GPLv3+ | Sangoma |
| miscdests | 15.0.2.12 | Enabled | GPLv3+ | Sangoma |
| music | 15.0.22 | Enabled | GPLv3+ | Sangoma |
| oracle_connector | 15.0.14 | Enabled | Commercial | Sangoma |
| outroutemsg | 15.0.9 | Enabled | GPLv3+ | Sangoma |
| paging | 15.0.4.35 | Enabled | GPLv3+ | Sangoma |
| pagingpro | 15.0.2 | Enabled | Commercial | Sangoma |
| parking | 15.0.15.4 | Enabled | GPLv3+ | Sangoma |
| parkpro | 15.0.13 | Enabled | Commercial | Sangoma |
| pbdirectory | 2.11.0.6 | Enabled | GPLv3+ | Sangoma |
| pbxmfa | 15.0.12 | Enabled | Commercial+ | Sangoma |
| phonebook | 15.0.12 | Enabled | GPLv3+ | Sangoma |
| phpinfo | 13.0.2 | Enabled | GPLv2+ | Sangoma |
| pinsets | 15.0.1.15 | Enabled | GPLv3+ | Sangoma |
| pinsetspro | 15.0.4 | Enabled | Commercial | Sangoma |
| pm2 | 15.0.10 | Enabled | AGPLv3+ | Sangoma |
| pms | 15.0.8 | Enabled | Commercial | Sangoma |
| presencestate | 15.0.11 | Enabled | GPLv3+ | Sangoma |
| printextensions | 13.0.3.4 | Enabled | GPLv3+ | Sangoma |
| queueprio | 15.0.10 | Enabled | GPLv3+ | Sangoma |
| queues | 15.0.39 | Enabled | GPLv2+ | Sangoma |
| queuestats | 15.0.13 | Enabled | Commercial | Sangoma |
| qxact_reports | 15.0.20 | Enabled | Commercial | Sangoma |
| recording_report | 15.0.13 | Enabled | Commercial | Sangoma |
| recordings | 15.0.6 | Enabled | GPLv3+ | Sangoma |
| restapi | 13.0.21.2 | Enabled | AGPLv3 | Sangoma |
| restapps | 15.0.42.1 | Enabled | Commercial | Sangoma |
| ringgroups | 15.0.11.17 | Enabled | GPLv3+ | Sangoma |
| sangomaconnect | 15.0.56.34 | Enabled | Commercial | Sangoma |
| sangomacrm | 15.0.23.11 | Enabled | Commercial | Sangoma |
| sangomartapi | 15.0.53.37 | Enabled | Commercial | Sangoma |
| setcid | 15.0.9 | Enabled | GPLv3+ | Sangoma |
| sipsettings | 15.0.11 | Enabled | AGPLv3+ | Sangoma |
| sipstation | 15.0.16 | Enabled | Commercial | Sangoma |
| sms | 15.0.37 | Enabled | Commercial | Sangoma |
| soundlang | 15.0.5.10 | Enabled | GPLv3+ | Sangoma |
| speeddial | 2.11.0.4 | Enabled | GPLv3+ | Sangoma |
| superfecta | 15.0.5 | Enabled | GPLv2+ | Sangoma |
| sysadmin | 15.0.33.10 | Enabled | Commercial | Sangoma |
| timeconditions | 15.0.15.11 | Enabled | GPLv3+ | Sangoma |
| tts | 15.0.12 | Enabled | GPLv3+ | Sangoma |
| ttsengines | 15.0.4.7 | Enabled | AGPLv3 | Sangoma |
| ucp | 15.0.15 | Enabled | AGPLv3+ | Sangoma |
| userman | 15.0.69.19 | Enabled | AGPLv3+ | Sangoma |
| vega | 15.0.12 | Enabled | Commercial+ | Sangoma |
| versionupgrade | 15.0.42 | Enabled | Commercial | Sangoma |
| vmblast | 15.0.11.8 | Enabled | GPLv3+ | Sangoma |
| vmnotify | 15.0.20 | Enabled | Commercial | Sangoma |
| voicemail | 15.0.30 | Enabled | GPLv3+ | Sangoma |
| voicemail_report | 15.0.7 | Enabled | Commercial | Sangoma |
| voipinnovations | 15.0.34 | Enabled | Commercial | Sangoma |
| vqplus | 15.0.7.30 | Enabled | Commercial | Sangoma |
| weakpasswords | 13.0.2 | Enabled | GPLv3+ | Sangoma |
| webcallback | 15.0.6.3 | Enabled | Commercial | Sangoma |
| webrtc | 15.0.10.13 | Enabled | GPLv3+ | Sangoma |
| xmpp | 15.0.6.12 | Enabled | AGPLv3 | Sangoma |
| zulu | 15.0.62 | Enabled | Commercial | Sangoma |
±---------------------±-----------±----------------------------------±------------±----------+
[root@freepbx ~]#
[root@freepbx ~]# fwconsole ma refreshsignatures
Getting Data from Online Server…

How can I fix it?

Can you install the core module?

fwconsole ma install core

I tried

[root@freepbx ~]# fwconsole ma downloadinstall core
No repos specified, using: [commercial,standard] from last GUI settings

Downloading module ‘core’

In Self_Helper.class.php line 212:

Unable to locate the FreePBX BMO Class 'Core’A required module might be disabled or uninstalled. Recommended steps (run from the CLI): 1) fwconsole ma install core 2) fwconsole ma enable core

moduleadmin [-f|–force] [-d|–debug] [–edge] [–ignorecache] [–stable] [–color] [–skipchown] [-e|–autoenable] [–skipdisabled] [–snapshot SNAPSHOT] [–format FORMAT] [-R|–repo REPO] [-t|–tag TAG] [–skipbreakingcheck] [–sendemail] [–onlystdout] [–] []…

[root@freepbx ~]# ^C
[root@freepbx ~]# fwconsole ma install core
Updating tables trunks, pjsip, sip, dahdi, iax, indications_zonelist, devices, users, incoming, dahdichandids, outbound_route_patterns, outbound_route_sequence, outbound_route_trunks, outbound_routes, outbound_route_email, trunk_dialpatterns…
In DBALException.php line 131:

An exception occurred while executing ‘CREATE TABLE outbound_routes (route_id INT AUTO_INCREMENT NOT NULL, name VARCHAR(40) DEFAULT NULL, outcid VARCHAR(255) DEFAULT NULL, outcid_mode VARCHAR(20) DEFAULT NULL, password VARCHAR(30) DEFAULT NULL, emergency_route VARCHAR(4) DEFAULT NULL, intracompany_route VARCHAR
(4) DEFAULT NULL, mohclass VARCHAR(80) DEFAULT NULL, time_group_id INT DEFAULT NULL, dest VARCHAR(255) DEFAULT NULL, time_mode VARCHAR(20) DEFAULT ‘’, calendar_id VARCHAR(255) DEFAULT NULL, calendar_group_id VARCHAR(255) DEFAULT NULL, timezone VARCHAR(255) DEFAULT NULL, notification_on VARCHAR(255) DEFAULT ‘cal
l’, PRIMARY KEY(route_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ENGINE = InnoDB’:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘asterisk.outbound_routes’ already exists

In Connection.php line 1044:

SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘asterisk.outbound_routes’ already exists

moduleadmin [-f|–force] [-d|–debug] [–edge] [–ignorecache] [–stable] [–color] [–skipchown] [-e|–autoenable] [–skipdisabled] [–snapshot SNAPSHOT] [–format FORMAT] [-R|–repo REPO] [-t|–tag TAG] [–skipbreakingcheck] [–sendemail] [–onlystdout] [–] []…