Portal problem after packages upgrade [solved]

Paymotech
Posts: 5
Member Since:
2008-06-23

Hello all.

I've just updated my TrixBox CE using the "Packages" module and now, I cannot use FreePBX anymore.
I've tried to restart the server, asterisk is working just fine, but I cannot use FreePBX or Trixbox admin.

Here are the update logs:

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* trixbox: yum.trixbox.org
* base: styx.biochem.wfubmc.edu
* addons: mirror.its.uidaho.edu
* extras: mirror.trouble-free.net
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Update Process
Could not find update match for nmap-2:4.76-1
Resolving Dependencies
--> Running transaction check
---> Package tb-scripts.noarch 0:2.6.1-9 set to be updated
---> Package tbm-endpointcfg.noarch 0:2.6.1-7 set to be updated
---> Package trixbox.i386 0:2.6.1.10-1 set to be updated
---> Package tbm-cdrreport.noarch 0:2.6.1-1 set to be updated
---> Package tbm-asteriskinfo.noarch 0:2.6.1-2 set to be updated
---> Package tb-appliance.noarch 0:1.0.0.0-5 set to be updated
---> Package asterisk.i386 0:1.4.21.2-2 set to be updated
---> Package web-meetme.noarch 0:3.0.4-37 set to be updated
---> Package aastra-xml-scripts.noarch 0:2.1.1-1 set to be updated
--> Processing Dependency: aastra-ipphone > 2.3.1 for package: aastra-xml-scripts
---> Package tbm-GUIcore.noarch 0:2.6.1.3-2 set to be updated
--> Processing Dependency: memcached > 1.2.2 for package: tbm-GUIcore
--> Processing Dependency: php-pecl-memcache > 2.2.3 for package: tbm-GUIcore
---> Package tbm-tcpip.noarch 0:2.6.1-2 set to be updated
---> Package libpri.i386 0:1.4.7-1.488 set to be updated
---> Package zaptel.i686 0:1.4.11-1 set to be updated
---> Package asterisk-addons.i386 0:1.4.7-2 set to be updated
--> Running transaction check
---> Package memcached.i386 0:1.2.2-2.rf set to be updated
---> Package aastra-ipphone.noarch 0:2.4.0-1 set to be updated
---> Package php-pecl-memcache.i386 0:2.2.3-5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved


Package Arch Version Repository Size

Updating:
aastra-xml-scripts noarch 2.1.1-1 trixbox 2.1 M
asterisk i386 1.4.21.2-2 trixbox 23 M
asterisk-addons i386 1.4.7-2 trixbox 513 k
libpri i386 1.4.7-1.488 trixbox 76 k
tb-appliance noarch 1.0.0.0-5 trixbox 516 k
tb-scripts noarch 2.6.1-9 trixbox 31 k
tbm-GUIcore noarch 2.6.1.3-2 trixbox 10 M
tbm-asteriskinfo noarch 2.6.1-2 trixbox 12 k
tbm-cdrreport noarch 2.6.1-1 trixbox 197 k
tbm-endpointcfg noarch 2.6.1-7 trixbox 169 k
tbm-tcpip noarch 2.6.1-2 trixbox 112 k
trixbox i386 2.6.1.10-1 trixbox 2.5 M
web-meetme noarch 3.0.4-37 trixbox 375 k
zaptel i686 1.4.11-1 trixbox 2.5 M
Installing for dependencies:
aastra-ipphone noarch 2.4.0-1 trixbox 27 M
memcached i386 1.2.2-2.rf trixbox 74 k
php-pecl-memcache i386 2.2.3-5 trixbox 32 k

Transaction Summary

Install 3 Package(s)
Update 14 Package(s)
Remove 0 Package(s)

Total download size: 69 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : zaptel ####################### [ 1/31]
Updating : libpri ####################### [ 2/31]
Updating : asterisk ####################### [ 3/31]
Updating : asterisk-addons ####################### [ 4/31]
Installing: php-pecl-memcache ####################### [ 5/31]
Installing: aastra-ipphone ####################### [ 6/31]
Installing: memcached ####################### [ 7/31]
Updating : aastra-xml-scripts ####################### [ 8/31]Shutting down mDNSResponder: [ OK ]
Starting mDNSResponder: [ OK ]

Updating : web-meetme ####################### [ 9/31]mysqladmin: CREATE DATABASE failed; error: 'Can't create database 'meetme'; database exists'
Please note:
If upgrading you will get a error
that the meetme database already exists
this is normal on upgrades


Please be sure to do a amportal stop/start
A amportal restart is not sufficient and will put
asterisk in a restarting state.

Updating : tb-appliance ####################### [10/31]
Updating : tbm-endpointcfg ####################### [11/31]
Updating : tbm-cdrreport ####################### [12/31]
Updating : tbm-asteriskinfo ####################### [13/31]
Updating : tbm-GUIcore ####################### [14/31]
Updating : tb-scripts ####################### [15/31]
Updating : tbm-tcpip ####################### [16/31]
Updating : trixbox ####################### [17/31]mkdir: cannot create directory `/var/www/upload': File exists
group asterisk already present
user asterisk already present
error reading information on service cups: No such file or directory
error reading information on service cpuspeed: No such file or directory

Cleanup : tb-scripts ####################### [18/31]
Cleanup : tbm-endpointcfg ####################### [19/31]
Cleanup : trixbox ####################### [20/31]
Cleanup : tbm-cdrreport ####################### [21/31]
Cleanup : tbm-asteriskinfo ####################### [22/31]
Cleanup : tb-appliance ####################### [23/31]
Cleanup : asterisk ####################### [24/31]
Cleanup : web-meetme ####################### [25/31]
Cleanup : aastra-xml-scripts ####################### [26/31]
Cleanup : tbm-GUIcore ####################### [27/31]
Cleanup : tbm-tcpip ####################### [28/31]
Cleanup : libpri ####################### [29/31]
Cleanup : zaptel ####################### [30/31]
Cleanup : asterisk-addons ####################### [31/31]

Dependency Installed: aastra-ipphone.noarch 0:2.4.0-1 memcached.i386 0:1.2.2-2.rf php-pecl-memcache.i386 0:2.2.3-5
Updated: aastra-xml-scripts.noarch 0:2.1.1-1 asterisk.i386 0:1.4.21.2-2 asterisk-addons.i386 0:1.4.7-2 libpri.i386 0:1.4.7-1.488 tb-appliance.noarch 0:1.0.0.0-5 tb-scripts.noarch 0:2.6.1-9 tbm-GUIcore.noarch 0:2.6.1.3-2 tbm-asteriskinfo.noarch 0:2.6.1-2 tbm-cdrreport.noarch 0:2.6.1-1 tbm-endpointcfg.noarch 0:2.6.1-7 tbm-tcpip.noarch 0:2.6.1-2 trixbox.i386 0:2.6.1.10-1 web-meetme.noarch 0:3.0.4-37 zaptel.i686 0:1.4.11-1
Complete!

When I try to connect to FreePBX, browser output:

FATAL ERROR
DB Error: connect failed

asterisk output:

  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  == Manager 'admin' logged off from 127.0.0.1

System Status, browser output:

Warning: fwrite(): 64 is not a valid stream resource in /var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php on line 150
Warning: feof(): 64 is not a valid stream resource in /var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php on line 171
Warning: fgets(): 64 is not a valid stream resource in /var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php on line 173

asterisk output:

  == Parsing '/etc/asterisk/manager.conf': Found
  == Parsing '/etc/asterisk/manager_additional.conf': Found
  == Parsing '/etc/asterisk/manager_custom.conf': Found
  == Connect attempt from '127.0.0.1' unable to authenticate

I didn't change the asterisk manager password and/or the mysql password.
I think a configuration file has been overwritten, but which one ?

Thanks for your help.
Cédric.



Paymotech
Posts: 5
Member Since:
2008-06-23
It's seems that the upgrade

It's seems that the upgrade has changed automatically the mysql password.
I've updated it and I'm now able to use FreePBX.
Do I need to update another file than /etc/amportal.conf ?

System Status is still not working.



Paymotech
Posts: 5
Member Since:
2008-06-23
This update really suck !

I've found the problem !

./maint/modules/asterisk_info/asterisk_info.php:82: $ami->connect("127.0.0.1:5038", 'admin' , 'amp111');
./maint/modules/home/includes/asteriskInfo_functions.php:164: $ami->connect("127.0.0.1:5038", 'admin' , 'amp111');

The password is hard coded !!
This really suck for a "professional" software, I'm really disapointed :(



jehuerga
Posts: 8
Member Since:
2007-04-06
Paymotech is the Man!

Thanks a lot for your help!.
After going around and around with this issue, I just follow this instruction and guest what?!
Everything works like a charm!.
Thanks again for this post -- 10 of 10!



Paymotech
Posts: 5
Member Since:
2008-06-23
Thanks ;)

Thank you.
It is not really a tutorial but I'm pleased to help :)
Good luck for the next update ;)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.