if you just want to see the solution skip following until the headline „final solution“<\/strong><\/p>\n\n\n\n
i tried to upgrade from 14 to 15 with the FreePBX upgrader tool (https:\/\/wiki.freepbx.org\/display\/FOP\/Upgrade+to+FreePBX+15)<\/p>\n\n\n\n
tried to do it with <\/p>\n\n\n\n
fwconsole versionupgrade<\/em><\/code><\/p>\n\n\n\n
aswell without success.<\/p>\n\n\n\n
ran into problems with the framework module:<\/p>\n\n\n\n
fwconsole ma install framework
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobs\u2026Erledigt
PHP Fatal error: Call to a member function writeln() on string in \/var\/www\/html\/admin\/modules\/framework\/install.php on line 38
Whoops\\Exception\\ErrorException: Call to a member function writeln() on string in file \/var\/www\/html\/admin\/modules\/framework\/install.php on line 38
Stack trace:<\/p>\n\n\n\n
Whoops\\Exception\\ErrorException->() \/var\/www\/html\/admin\/modules\/framework\/install.php:3<\/li><\/ol>\n\n\n\nso i tried to fix this with:<\/p>\n\n\n\n
[root@localhost ~]# yum reinstall freepbx<\/em><\/p>\n\n\n\n
but ended up with:
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Installed package freepbx-14.1-1.sng7.noarch not available.<\/em><\/p>\n\n\n\n
so i tried the usual install command that failed aswell:<\/p>\n\n\n\n
yum install freepbx
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
Package: freepbx-14.1-1.sng7.x86_64 – can’t co-install with freepbx-14.1-1.sng7.noarch
Nothing to do<\/em><\/p>\n\n\n\n
i tried to remove freepbx that failed:<\/p>\n\n\n\n
[root@localhost ~]# yum remove freepbx
Loaded plugins: fastestmirror, versionlock
Resolving Dependencies
–> Running transaction check
—> Package freepbx.noarch 0:14.1-1.sng7 will be erased
–> Processing Dependency: freepbx for package: sangoma-pbx-2012-1.sng7.noarch
–> Running transaction check
—> Package sangoma-pbx.noarch 0:2012-1.sng7 will be erased
–> Finished Dependency Resolution
Error: Trying to remove „sangoma-pbx“, which is protected<\/em><\/p>\n\n\n\n
<\/p>\n\n\n\n
deleted the protection with<\/p>\n\n\n\n
rm \/etc\/yum\/protected.d\/sangoma-pbx.conf<\/em><\/p>\n\n\n\n
then<\/p>\n\n\n\n
yum remove freepbx<\/em><\/p>\n\n\n\n
then <\/p>\n\n\n\n
yum install freepbx<\/em><\/p>\n\n\n\n
then<\/p>\n\n\n\n
fwconsole ma install framework<\/em><\/p>\n\n\n\n
that should not fail anymore now!<\/p>\n\n\n\n
fwconsole ma updateall <\/em><\/p>\n\n\n\n
should work aswell.<\/p>\n\n\n\n
freepbx gui was working then, but could not connect to asterisk.<\/p>\n\n\n\n
res_odbc.c: res_odbc: Error SQLConnect=-1 errno=1045 [unixODBC][MySQL][ODBC 5.2(w) Driver]Access denied for use r ‚freepbxuser’@’localhost‘<\/em><\/p>\n\n\n\n
edit \/etc\/asterisk\/modules.conf and comment out chan_local.so<\/p>\n\n\n\n
;preload = chan_local.so<\/em><\/p>\n\n\n\n
create missing file:<\/p>\n\n\n\n
touch \/etc\/asterisk\/extconfig_custom.conf
chown asterisk:asterisk extconfig_custom.conf<\/em><\/p>\n\n\n\n
now after asterisk could be started again i ran<\/p>\n\n\n\n
asterisk-version-switch<\/em><\/p>\n\n\n\n
again and „switched“ to the already running version 18 again, that re-installed sangoma-pbx-2012-1.sng7.noarch<\/p>\n\n\n\n
not sure if this was installed before aswell – but at the end the problem remained. <\/p>\n\n\n\n
final solution<\/strong><\/p>\n\n\n\n
soo… i started again with the backup i made at the beginning! if you ran into this situation without a backup, i think youre lost! backup your configuration and start from scratch.<\/p>\n\n\n\n
i just followed this guide step by step in the exact same order:<\/p>\n\n\n\n