Stuck During upgrade NOW WHAT

Issues still now everything seems to start fine but http://‘my_server_ip’/admin results in:
http://‘my_server_ip’/admin/config.php 500 server error

What is in the httpd log when this happens?

[Thu Aug 09 14:29:28 2012] [error] [client 10.10.10.105] File does not exist: /var/www/html/favicon.ico
[Thu Aug 09 14:29:30 2012] [error] [client 10.10.10.105] PHP Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /var/www/html/admin/modules/callerid/functions.inc/functions.inc.php on line 0, referer: http://10.10.10.11/

I think this is a Zend issue… But I’m going absolutely batshit trying to figure out the Zend website what package to download and then how to install it… isn’t there a HowTo or something… I’m ready to smash the whole thing into bit size bits!

remove the sysadmin module. Something with your zend setup is broke. Also we only certify that module with FreePBX Distro and PBXiaF not AsteriskNow and its part of the commercial repos not standard freepbx repos.

I think it might be better to cut your losses and start from new. Take a full backup then load the freepbx distro and restore your backup, there might be a bit of cleaning up to do but you should be good to go very quickly.

I totally cool with that. Been kicking it around anyway. can you tell me how to do a backup from the shell prompt, and then the commands to restore… You can skip the simple stuff scp’ing the file elsewhere after the backup, then bringing after the re-install… I just need the paths, commands, and any switches or options I might need to use for a backup/restore from shell.
Thanks everyone.

Did you try just running /var/lib/asterisk/bin/module_admin and remove sysadminpro ???

ok tried to uninstall it… got that same PHP Fatal error… here is the result:
also notice it doesn’t appear sysadmin is installed.

[root@AsteriskProd src]# /var/lib/asterisk/bin/module_admin uninstall sysadminpro
PHP Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /var/www/html/admin/modules/callerid/functions.inc/functions.inc.php on line 0
[root@AsteriskProd src]# /var/lib/asterisk/bin/module_admin list
no repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Module Version Status


announcement 2.10.0.0 Enabled
asterisk-cli 2.10.0.0 Enabled
asteriskinfo 2.10.0.1 Enabled
backup 2.10.0.9 Enabled
blacklist 2.10.0.0 Enabled
builtin Enabled
bulkdids 2.10.0.2 Enabled
bulkextensions 2.10.0.0 Enabled
callback 2.10.0.0 Enabled
callerid 2.10.0.5 Enabled
callforward 2.10.0.0 Enabled
callrecording 2.10.0.0 Enabled
callwaiting 2.10.0.0 Enabled
campon 2.10.0.0 Enabled
cdr 2.10.0.3 Disabled; Pending upgrade to 2.10.0.0
cidlookup 2.10.0.0 Enabled
conferences 2.10.0.1 Enabled
core 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.0beta2.0
customappsreg 2.10.0.0 Enabled
customcontexts 2.10.0.0 Enabled
customerdb 2.5.0.4 Enabled
dahdiconfig 2.10.0.0 Enabled
dashboard 2.10.0.1 Enabled
daynight 2.10.0.0 Enabled
dictate 2.10.0.0 Enabled
directory 2.10.0.7 Enabled
disa 2.10.0.1 Enabled
donotdisturb 2.10.0.0 Enabled
dundicheck 2.10.0.0 Enabled
endpointman 2.10.1.3 Enabled
extensionsettings 2.10.0.1 Enabled
fax 2.10.0.1 Enabled
featurecodeadmin 2.10.0.1 Disabled; Pending upgrade to 2.10.0.0
findmefollow 2.10.0.1 Enabled
framework 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.1.1
fw_ari 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.0.beta1.0
fw_fop 2.10.0.2 Enabled
fw_langpacks 2.9.0.1 Enabled
gabcast 2.5.0.2 Enabled
iaxsettings 2.10.0.1 Enabled
infoservices 2.10.0.0 Enabled
inventorydb 2.5.0.2 Enabled
irc 2.10.0.1 Enabled
ivr 2.10.0.3 Enabled
javassh 2.10.0.0 Enabled
languages 2.10.0.0 Enabled
logfiles 2.10.0.1 Enabled
manager 2.10.0.0 Enabled
miscapps 2.10.0.0 Enabled
miscdests 2.10.0.0 Enabled
music 2.10.0.0 Enabled
outroutemsg 2.10.0.0 Enabled
paging 2.10.0.2 Enabled
parking 2.10.0.0 Enabled
pbdirectory 2.10.0.0 Enabled
phonebook 2.10.0.0 Enabled
phpagiconf 2.10.0.0 Enabled
phpinfo 2.10.0.0 Enabled
pinsets 2.10.0.0 Enabled
printextensions 2.10.0.1 Enabled
queueprio 2.10.0.0 Enabled
queues 2.10.0.1 Enabled
recordings 3.3.11.4 Disabled; Pending upgrade to 3.3.11.3
restart 2.10.0.1 Enabled
ringgroups 2.10.0.0 Enabled
setcid 2.10.0.0 Enabled
sipsettings 2.10.0.1 Enabled
sipstation 2.10.0.1 Enabled
speeddial 2.10.0.0 Enabled
sysadmin Not Installed (Locally available)
tftpmanager Not Installed (Locally available)
timeconditions 2.10.0.1 Enabled
ttsengines 2.10.0.3 Enabled
userpaneltab 2.10.0.0 Enabled
vmblast 2.10.0.1 Enabled
voicemail 2.10.0.0 Enabled
weakpasswords 2.10.0.0 Enabled

This seems crazy but… after trying module_admin remove sysadmin
I edited php.ini commenting out:
;zend_extension=/usr/src/ZendGuardLoader5.3/php-5.3.x/ZendGuardLoader.so
;zend_loader.enable=1

[root@AsteriskProd src]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@AsteriskProd src]# amportal restart

Fetching FreePBX settings with gen_amp_conf.php…

STOPPING ASTERISK
Waiting for Asterisk to Stop Gracefully…
All calls will be dropped once the timer hits 0. To cancel, press CTL-C
Asterisk ended with exit status 0
Asterisk shutdown normally.

Asterisk Stopped

STOPPING FOP SERVER
FOP Server Stopped
SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
Asterisk Started

STARTING FOP SERVER
FOP Server Started

Everything looks good right???
now when I goto http://10.10.10.11/admin
I get http://10.10.10.11/admin/config.php
and the page content reads:
callerid 2.10.0.5 Copyright 2011 by Schmoozecom, Inc., All rights reserved By installing, copying, downloading, distributing, inspecting or using the materials provided herewith, you agree to all of the terms of use as outlined in our End User Agreement which can be found and reviewed at www.schmoozecom.com/cmeula built Thu, 10 Nov 2011 22:13:20 +0000 (1320963200) @r14913

Now what?
‘module_admin -R standard,extended upgradeall’ YIELDS:

[root@AsteriskProd src]# /var/lib/asterisk/bin/module_admin -R standard,extended upgradeall
Upgrading: parking, music, paging, callerid, dundicheck, bulkextensions, setcid, pbdirectory, fax, phpagiconf, miscapps, blacklist, customappsreg, directory, backup, outroutemsg, dashboard, disa, timeconditions, infoservices, customcontexts, languages, sipsettings, findmefollow, vmblast, weakpasswords, fw_fop, extensionsettings, announcement, voicemail, asterisk-cli, restart, daynight, cidlookup, callwaiting, dictate, speeddial, iaxsettings, miscdests, callforward, endpointman, conferences, javassh, ringgroups, campon, manager, queueprio, donotdisturb, irc, bulkdids, ivr, sipstation, printextensions, phonebook, phpinfo, queues, pinsets
Upgrading parking…
Downloading 28793 of 28793 (100%)

Untaring…Done
Module parking successfully downloaded

callerid 2.10.0.5
Copyright 2011 by Schmoozecom, Inc., All rights reserved

By installing, copying, downloading, distributing, inspecting or using
the materials provided herewith, you agree to all of the terms of use as
outlined in our End User Agreement which can be found and reviewed at
www.schmoozecom.com/cmeula

built Thu, 10 Nov 2011 22:13:20 +0000 (1320963200) @r14913

==========================================================
Appears callerid 2.10.0.5 is interrupting things…

Your issue is you have commercial modules installed that need zend. Those commercial modules will only install if you have zend which at some point you must of had it installed. None of the commercial modules are designed to work with Asterisk Now

OK, problem is I can’t seem to get ride of them.

Can you tell me how to do a backup from the shell prompt, and then the commands to restore… You can skip the simple stuff scp’ing the file elsewhere after the backup, then bringing after the re-install… I just need the paths, commands, and any switches or options I might need to use for a backup/restore from shell.

I don’t know how to do a backup from the CLI without using mysqldump.

How are you trying to delete the modules? Are you using module_admin?

OK, I’m pretty sure I have tried ALL the ways to uninstall, disable, or remove a module. See below… I separated each attempt with a double set of '=" lines

============================================================

[root@AsteriskProd bin]# ./module_admin list
no repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Module Version Status


announcement 2.10.0.0 Enabled
asterisk-cli 2.10.0.0 Enabled
asteriskinfo 2.10.0.1 Enabled
backup 2.10.0.9 Enabled
blacklist 2.10.0.0 Enabled
builtin Enabled
bulkdids 2.10.0.2 Enabled
bulkextensions 2.10.0.0 Enabled
callback 2.10.0.0 Disabled; Pending upgrade to 2.10.0.1
callerid 2.10.0.5 Enabled
callforward 2.10.0.0 Enabled
callrecording 2.10.0.0 Disabled; Pending upgrade to 2.10.0.2
callwaiting 2.10.0.0 Enabled
campon 2.10.0.0 Enabled
cdr 2.10.0.3 Disabled; Pending upgrade to 2.10.0.0
cidlookup 2.10.0.0 Enabled
conferences 2.10.0.1 Enabled
core 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.1.0
customappsreg 2.10.0.0 Enabled
customcontexts 2.10.0.0 Enabled
customerdb 2.5.0.4 Enabled
dahdiconfig 2.10.0.0 Enabled
dashboard 2.10.0.1 Enabled
daynight 2.10.0.0 Enabled
dictate 2.10.0.0 Enabled
directory 2.10.0.7 Enabled
disa 2.10.0.1 Enabled
donotdisturb 2.10.0.0 Enabled
dundicheck 2.10.0.0 Enabled
endpointman 2.10.1.3 Enabled
extensionsettings 2.10.0.1 Enabled
fax 2.10.0.1 Enabled
featurecodeadmin 2.10.0.1 Disabled; Pending upgrade to 2.10.0.0
findmefollow 2.10.0.1 Enabled
framework 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.1.1
fw_ari 2.10.0rc1.0 Disabled; Pending upgrade to 2.10.0.beta1.0
fw_fop 2.10.0.2 Enabled
fw_langpacks 2.9.0.1 Disabled; Pending upgrade to 2.10.0.0
gabcast 2.5.0.2 Enabled
iaxsettings 2.10.0.1 Enabled
infoservices 2.10.0.0 Enabled
inventorydb 2.5.0.2 Enabled
irc 2.10.0.1 Enabled
ivr 2.10.0.3 Enabled
javassh 2.10.0.0 Enabled
languages 2.10.0.0 Enabled
logfiles 2.10.0.1 Enabled
manager 2.10.0.0 Enabled
miscapps 2.10.0.0 Enabled
miscdests 2.10.0.0 Enabled
music 2.10.0.0 Enabled
outroutemsg 2.10.0.0 Enabled
paging 2.10.0.2 Enabled
parking 2.10.0.0 Disabled; Pending upgrade to 2.10.0.2
pbdirectory 2.10.0.0 Enabled
phonebook 2.10.0.0 Enabled
phpagiconf 2.10.0.0 Enabled
phpinfo 2.10.0.0 Enabled
pinsets 2.10.0.0 Enabled
printextensions 2.10.0.1 Enabled
queueprio 2.10.0.0 Enabled
queues 2.10.0.1 Enabled
recordings 3.3.11.4 Disabled; Pending upgrade to 3.3.11.3
restart 2.10.0.1 Enabled
ringgroups 2.10.0.0 Enabled
setcid 2.10.0.0 Enabled
sipsettings 2.10.0.1 Enabled
sipstation 2.10.0.1 Enabled
speeddial 2.10.0.0 Enabled
sysadmin Not Installed (Locally available)
tftpmanager Not Installed (Locally available)
timeconditions 2.10.0.1 Enabled
ttsengines 2.10.0.3 Enabled
userpaneltab 2.10.0.0 Enabled
vmblast 2.10.0.1 Enabled
voicemail 2.10.0.0 Enabled
weakpasswords 2.10.0.0 Enabled

==============================================================

[root@AsteriskProd bin]# ./module_admin delete callerid

callerid 2.10.0.5
Copyright 2011 by Schmoozecom, Inc., All rights reserved

By installing, copying, downloading, distributing, inspecting or using
the materials provided herewith, you agree to all of the terms of use as
outlined in our End User Agreement which can be found and reviewed at
www.schmoozecom.com/cmeula

built Thu, 10 Nov 2011 22:13:20 +0000 (1320963200) @r14913

===========================================================

[root@AsteriskProd bin]# ./module_admin disable callerid

callerid 2.10.0.5
Copyright 2011 by Schmoozecom, Inc., All rights reserved

By installing, copying, downloading, distributing, inspecting or using
the materials provided herewith, you agree to all of the terms of use as
outlined in our End User Agreement which can be found and reviewed at
www.schmoozecom.com/cmeula

built Thu, 10 Nov 2011 22:13:20 +0000 (1320963200) @r14913

============================================================
[root@AsteriskProd bin]# ./module_admin uninstall callerid

callerid 2.10.0.5
Copyright 2011 by Schmoozecom, Inc., All rights reserved

By installing, copying, downloading, distributing, inspecting or using
the materials provided herewith, you agree to all of the terms of use as
outlined in our End User Agreement which can be found and reviewed at
www.schmoozecom.com/cmeula

built Thu, 10 Nov 2011 22:13:20 +0000 (1320963200) @r14913
[root@AsteriskProd bin]#

rm /var/www/html/admin/modules/xxx with xxx being the module name

WOW… that was like using the EASY button.
Thanks Again! After nearly 8 monthss down, my GUI is back and all is well.

Scott

Make sure you go to module admin and have it uninstall those modules that you forced erased.

this fixed my problem of DB.php not found

pear install db