TB website error in admin mode after update

lleopold19
Posts: 25
Member Since:
2008-08-04

Hi All, I should have taken to heart the warning that a working system does not need to be updated, but I can't resist the urge...

Last night I updated my TB install by issuing a "yum update" command from console and there were a bunch of new packages. The yum update went without a hitch, but after the update I can not switch to admin mode anymore.

Asterisk is working fine and as I was not in the middle of making changes, calls are processed. Everything also works in the user mode, only when I try to switch to admin mode I am getting errors. The browser shows the following error and the errors with line 171 and 173 are endlessly repeated. There is some king of memory leak as well, as the browser will use all the available memory and at the end will crash.

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

In the httpd error logs I found the following:

PHP Warning:  PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
 in Unknown on line 0
hudlite-server: unrecognized service
hudlite-server: unrecognized service
[Sat Aug 30 13:48:32 2008] [error] [client 192.168.0.254] Sat, 30 Aug 2008 13:48:32 -0400 - Failed to login., referer: <a href="http://pbx.xxxxxx.net/maint/" title="http://pbx.xxxxxx.net/maint/">http://pbx.xxxxxx.net/maint/</a>
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    14    0    14    0     0     55      0 --:--:-- --:--:-- --:--:--    55  0    14    0    14    0     0     55      0 --:--:-- --:--:-- --:--:--     0

and lastly the yum.log showing all the packages installed since a fresh install of TB 2.6.1 currently showing version "v2.6.1.10 ©2008 Fonality, inc All Rights Reserved."

Aug 04 22:49:54 Updated: web-meetme.noarch 3.0.4-35
Aug 04 22:49:55 Updated: tbm-configedit.noarch 2.6.1-1
Aug 04 22:50:07 Updated: tbm-GUIcore.noarch 2.6.1.2-1
Aug 05 12:12:59 Updated: libgcc.i386 4.1.2-42.el5
Aug 05 12:13:43 Updated: glibc-common.i386 2.5-24
Aug 05 12:13:52 Updated: glibc.i686 2.5-24
Aug 05 12:13:55 Updated: bash.i386 3.2-21.el5
Aug 05 12:13:56 Updated: chkconfig.i386 1.3.30.1-2
Aug 05 12:13:57 Updated: popt.i386 1.10.2-48.el5
Aug 05 12:13:57 Updated: audit-libs.i386 1.6.5-9.el5
Aug 05 12:14:08 Updated: perl.i386 4:5.8.8-10.el5_2.3
Aug 05 12:14:08 Updated: nspr.i386 4.7.1-1.el5
Aug 05 12:14:16 Updated: nss.i386 3.12.0.3-1.el5.centos
Aug 05 12:14:17 Updated: libstdc++.i386 4.1.2-42.el5
Aug 05 12:14:18 Updated: libX11.i386 1.0.3-9.el5
Aug 05 12:14:19 Updated: libacl.i386 2.2.39-3.el5
Aug 05 12:14:19 Updated: libibverbs.i386 1.1.1-9.el5
Aug 05 12:14:19 Updated: gnutls.i386 1.4.1-3.el5_1
Aug 05 12:14:20 Updated: cups-libs.i386 1:1.2.4-11.18.el5_2.1
Aug 05 12:14:20 Updated: openib.i386 1.3-3.el5
Aug 05 12:14:21 Updated: iptables.i386 1.3.5-4.el5
Aug 05 12:14:24 Updated: diffutils.i386 2.8.1-15.2.3.el5
Aug 05 12:14:25 Updated: procps.i386 3.2.7-9.el5
Aug 05 12:14:25 Updated: freetype.i386 2.2.1-20.el5_2
Aug 05 12:14:26 Updated: cairo.i386 1.2.4-5.el5
Aug 05 12:14:26 Updated: libvolume_id.i386 095-14.16.el5
Aug 05 12:14:27 Updated: iptables-ipv6.i386 1.3.5-4.el5
Aug 05 12:14:28 Updated: gzip.i386 1.3.5-10.el5.centos
Aug 05 12:14:29 Updated: iproute.i386 2.6.18-7.el5
Aug 05 12:14:29 Updated: pkgconfig.i386 1:0.21-2.el5
Aug 05 12:14:29 Updated: centos-release-notes.i386 5.2-2
Aug 05 12:14:30 Updated: centos-release.i386 10:5-2.el5.centos
Aug 05 12:14:30 Updated: libmthca.i386 1.0.4-9.el5
Aug 05 12:14:31 Updated: librdmacm.i386 1.0.7-1.el5
Aug 05 12:14:32 Updated: libxslt.i386 1.1.17-2.el5_2.2
Aug 05 12:14:32 Updated: libsdp.i386 1:1.1.99-10.el5_2
Aug 05 12:14:33 Updated: libvorbis.i386 1:1.1.2-3.el5_1.2
Aug 05 12:14:34 Updated: file.i386 4.17-13
Aug 05 12:14:34 Updated: nash.i386 5.1.19.6-28
Aug 05 12:14:36 Updated: gnutls-devel.i386 1.4.1-3.el5_1
Aug 05 12:14:37 Updated: grub.i386 0.97-13.2
Aug 05 12:14:40 Updated: libstdc++-devel.i386 4.1.2-42.el5
Aug 05 12:14:41 Updated: perl-suidperl.i386 4:5.8.8-10.el5_2.3
Aug 05 12:14:43 Updated: shared-mime-info.i386 0.19-5.el5
Aug 05 12:14:45 Updated: binutils.i386 2.17.50.0.6-6.el5
Aug 05 12:14:46 Updated: mdadm.i386 2.6.4-1.el5
Aug 05 12:14:47 Updated: checkpolicy.i386 1.33.1-4.el5
Aug 05 12:14:48 Updated: alsa-utils.i386 1.0.14-3.rc4.el5
Aug 05 12:14:48 Installed: libhugetlbfs.i386 1.2-5.el5
Aug 05 12:14:49 Updated: libselinux.i386 1.33.4-5.el5
Aug 05 12:14:54 Updated: coreutils.i386 5.97-14.el5
Aug 05 12:14:56 Updated: pam.i386 0.99.6.2-3.27.el5
Aug 05 12:14:58 Updated: shadow-utils.i386 2:4.0.17-13.el5
Aug 05 12:14:59 Updated: device-mapper.i386 1.02.24-1.el5
Aug 05 12:15:00 Updated: e2fsprogs-libs.i386 1.39-15.el5
Aug 05 12:15:01 Updated: krb5-libs.i386 1.6.1-25.el5
Aug 05 12:15:02 Updated: openssl.i686 0.9.8b-10.el5
Aug 05 12:15:10 Updated: python.i386 2.4.3-21.el5
Aug 05 12:15:11 Updated: openldap.i386 2.3.27-8.el5_2.4
Aug 05 12:15:15 Updated: module-init-tools.i386 3.3-0.pre3.1.37.el5
Aug 05 12:15:17 Updated: udev.i386 095-14.16.el5
Aug 05 12:15:19 Updated: util-linux.i386 2.13-0.47.el5
Aug 05 12:15:20 Updated: newt.i386 0.52.2-10.el5
Aug 05 12:15:21 Updated: dbus.i386 1.0.0-7.el5
Aug 05 12:15:21 Updated: hwdata.noarch 0.213.6-1.el5
Aug 05 12:15:22 Updated: net-snmp-libs.i386 1:5.3.1-24.el5_2.1
Aug 05 12:15:23 Updated: kpartx.i386 0.4.7-17.el5
Aug 05 12:15:23 Updated: pciutils.i386 2.2.3-5
Aug 05 12:15:24 Updated: e2fsprogs.i386 1.39-15.el5
Aug 05 12:15:25 Updated: psmisc.i386 22.2-6
Aug 05 12:15:25 Updated: dmraid.i386 1.0.0.rc13-9.el5
Aug 05 12:15:27 Updated: libuser.i386 0.54.7-2.el5.5
Aug 05 12:15:27 Updated: usermode.i386 1.88-3.el5.1
Aug 05 12:15:28 Updated: OpenIPMI-libs.i386 2.0.6-6.el5
Aug 05 12:15:29 Updated: bind-libs.i386 30:9.3.4-6.0.2.P1.el5_2
Aug 05 12:15:29 Updated: libpcap.i386 14:0.9.4-12.el5
Aug 05 12:15:32 Updated: mysql.i386 5.0.45-7.el5
Aug 05 12:15:34 Updated: device-mapper-multipath.i386 0.4.7-17.el5
Aug 05 12:15:38 Updated: samba-common.i386 3.0.28-1.el5_2.1
Aug 05 12:15:39 Updated: yum-metadata-parser.i386 1.1.2-2.el5
Aug 05 12:15:39 Updated: libselinux-python.i386 1.33.4-5.el5
Aug 05 12:15:39 Updated: audit-libs-python.i386 1.6.5-9.el5
Aug 05 12:15:40 Updated: e2fsprogs-devel.i386 1.39-15.el5
Aug 05 12:15:41 Installed: hicolor-icon-theme.noarch 0.9-2.1
Aug 05 12:15:46 Updated: gtk2.i386 2.10.4-20.el5
Aug 05 12:15:48 Updated: pygtk2.i386 2.10.1-12.el5
Aug 05 12:15:48 Updated: pygtk2-libglade.i386 2.10.1-12.el5
Aug 05 12:15:49 Updated: net-tools.i386 1.60-78.el5
Aug 05 12:15:54 Updated: initscripts.i386 8.45.19.EL-1.el5.centos.1
Aug 05 12:15:57 Updated: kbd.i386 1.12-20.el5
Aug 05 12:15:58 Updated: openssh.i386 4.3p2-26.el5
Aug 05 12:15:58 Updated: mcstrans.i386 0.2.7-1.el5
Aug 05 12:15:59 Updated: libselinux-devel.i386 1.33.4-5.el5
Aug 05 12:16:00 Updated: krb5-devel.i386 1.6.1-25.el5
Aug 05 12:16:04 Updated: isdn4k-utils.i386 3.2-51.el5
Aug 05 12:16:04 Updated: apr-util.i386 1.2.7-7.el5
Aug 05 12:16:05 Installed: python-iniparse.noarch 0.2.3-4.el5
Aug 05 12:16:05 Installed: device-mapper-event.i386 1.02.24-1.el5
Aug 05 12:16:07 Updated: lvm2.i386 2.02.32-4.el5
Aug 05 12:16:08 Updated: mkinitrd.i386 5.1.19.6-28
Aug 05 12:16:12 Updated: openssl-devel.i386 0.9.8b-10.el5
Aug 05 12:16:12 Updated: openssh-clients.i386 4.3p2-26.el5
Aug 05 12:16:13 Updated: openssh-server.i386 4.3p2-26.el5
Aug 05 12:16:14 Updated: vsftpd.i386 2.0.5-12.el5
Aug 05 12:16:21 Updated: samba.i386 3.0.28-1.el5_2.1
Aug 05 12:16:23 Updated: sysklogd.i386 1.4.1-44.el5
Aug 05 12:16:24 Installed: dhcpv6-client.i386 1.0.10-4.el5_2.2
Aug 05 12:16:24 Updated: dhclient.i386 12:3.0.5-13.el5
Aug 05 12:16:29 Updated: notification-daemon.i386 0.3.5-9.el5
Aug 05 12:16:33 Updated: mysql-server.i386 5.0.45-7.el5
Aug 05 12:16:34 Updated: OpenIPMI.i386 2.0.6-6.el5
Aug 05 12:16:35 Updated: authconfig.i386 5.3.21-3.el5
Aug 05 12:16:36 Updated: system-config-securitylevel-tui.i386 1.6.29.1-2.1.el5
Aug 05 12:16:38 Updated: nfs-utils.i386 1:1.0.9-35z.el5_2
Aug 05 12:16:38 Updated: sudo.i386 1.6.8p12-12.el5
Aug 05 12:16:40 Updated: m2crypto.i386 0.16-6.el5.2
Aug 05 12:16:43 Updated: ntp.i386 4.2.2p1-8.el5.centos.1
Aug 05 12:16:43 Updated: openssl-perl.i386 0.9.8b-10.el5
Aug 05 12:16:44 Updated: dhcp.i386 12:3.0.5-13.el5
Aug 05 12:16:45 Updated: rpm-libs.i386 4.4.2-48.el5
Aug 05 12:16:47 Updated: rpm.i386 4.4.2-48.el5
Aug 05 12:16:48 Updated: policycoreutils.i386 1.33.12-14.el5
Aug 05 12:16:50 Updated: hal.i386 0.5.8.1-35.el5
Aug 05 12:16:51 Updated: rpm-python.i386 4.4.2-48.el5
Aug 05 12:16:52 Updated: kudzu.i386 1.2.57.1.17-1
Aug 05 12:16:53 Updated: pm-utils.i386 0.99.3-6.el5.centos.19
Aug 05 12:16:55 Installed: system-config-network-tui.noarch 1.3.99.10-2.el5
Aug 05 12:16:57 Updated: selinux-policy.noarch 2.4.6-137.1.el5
Aug 05 12:17:30 Updated: selinux-policy-targeted.noarch 2.4.6-137.1.el5
Aug 05 12:17:31 Updated: system-config-network.noarch 1.3.99.10-2.el5
Aug 05 12:17:33 Updated: bind.i386 30:9.3.4-6.0.2.P1.el5_2
Aug 05 12:17:35 Updated: net-snmp.i386 1:5.3.1-24.el5_2.1
Aug 05 12:17:36 Updated: yum.noarch 3.2.8-9.el5.centos.2.1
Aug 05 12:17:36 Installed: yum-fastestmirror.noarch 1.1.10-9.el5.centos
Aug 05 12:18:24 Erased: dhcpv6_client
Aug 05 12:18:25 Erased: netconfig
Aug 05 12:18:43 Erased: libhugetlbfs-lib
Aug 05 16:47:20 Erased: rhino-2.6.18-53.1.4.el5
Aug 11 23:59:11 Installed: hddtemp - 0.3-0.14.beta15.el5.centos.i386
Aug 15 12:19:57 Erased: rhino-2.6.18-53.1.4.el5
Aug 16 23:33:30 Updated: postfix - 2:2.3.3-2.1.el5_2.i386
Aug 18 08:54:18 Installed: newt-perl - 1.08-9.2.2.i386
Aug 18 08:54:19 Installed: crypto-utils - 2.3-2.el5.i386
Aug 21 09:37:18 Installed: elinks - 0.11.1-5.1.0.1.el5.i386
Aug 23 10:01:21 Updated: openssh - 4.3p2-26.el5_2.1.i386
Aug 23 10:01:22 Updated: openssh-server - 4.3p2-26.el5_2.1.i386
Aug 23 10:01:23 Updated: openssh-clients - 4.3p2-26.el5_2.1.i386
Aug 30 00:57:23 Updated: zaptel - 1.4.11-1.i686
Aug 30 00:57:23 Updated: libpri - 1.4.7-1.488.i386
Aug 30 00:57:33 Updated: asterisk - 1.4.21.2-1.i386
Aug 30 00:57:34 Updated: libxml2 - 2.6.26-2.1.2.4.i386
Aug 30 00:57:34 Updated: asterisk-addons - 1.4.7-1.i386
Aug 30 00:57:44 Updated: zaptel-modules - 1.4.11-1.2.6.18_53.1.4.el5.i686
Aug 30 00:57:44 Installed: memcached - 1.2.2-2.rf.i386
Aug 30 00:57:45 Installed: php-pecl-memcache - 2.2.3-1.el5_2.i386
Aug 30 00:57:46 Updated: libxml2-python - 2.6.26-2.1.2.4.i386
Aug 30 00:57:48 Updated: web-meetme - 3.0.4-37.noarch
Aug 30 00:57:49 Updated: tb-appliance - 1.0.0.0-5.noarch
Aug 30 00:57:50 Updated: tbm-endpointcfg - 2.6.1-7.noarch
Aug 30 00:57:51 Updated: tbm-cdrreport - 2.6.1-1.noarch
Aug 30 00:57:52 Updated: tbm-asteriskinfo - 2.6.1-2.noarch
Aug 30 00:58:05 Updated: tbm-GUIcore - 2.6.1.3-2.noarch
Aug 30 00:58:06 Updated: tb-scripts - 2.6.1-9.noarch
Aug 30 00:58:07 Updated: tbm-tcpip - 2.6.1-2.noarch
Aug 30 00:58:09 Updated: trixbox - 2.6.1.10-1.i386


ypeleg
Posts: 10
Member Since:
2006-07-31
same issue here

any solution?



wadeb
Posts: 7
Member Since:
2008-08-30
I also have the same issue

All seem to be working,
But when I pull the system status page I get about 3+ mbytes of the error text shown above. My updates were performed the same way, "yum update". I am assuming we still don't have a solution, do we have a hint at the root cause?

Wade B



GSnover
Posts: 1432
Member Since:
2006-11-19
Don't know if it helps, but I just Fresh-Loaded and Updated

a box from scratch - loaded from the 2.6.0.7 .ISO and then did a

yum update --exclude=tbm-pbxconfig --exclude=trixbox

and then loaded all the FreepBX updates and the box is perfect, so I would guess that the problem is in one of these two modules, tbm-pbxconfig or trixbox.

Greg



wadeb
Posts: 7
Member Since:
2008-08-30
there an easy way to backrev those modules?

I am wondering how easy it would be (and how/if risky it would be) to backout the updates to the last known good state. Thanks for the feeback Greg, that is very helpful.

Wade B



GSnover
Posts: 1432
Member Since:
2006-11-19
More info:

Checked yum update without the excludes, and it wanted the following:

tbm-pbxconfig
trixbox
avahi
avahi-glib
esound
gnome-keyring
gnome-mime-data
gnome-mount
gnome-python2
gnome-python2-bonobo
gnome-python2-canvas
gnome-python2-gnomevfs
gnome-vfs2
libart_lgpl
libbonobo
libdaemon
libglade2
libgnome
libgnomecanvas
libgnomeui
pycairo
pygtk2
pygtk2-libglade
pyorbit
python-numeric
shared-mime-info
system-config-network

So I did a:

yum install avahi avahi-glib esound gnome-keyring gnome-mime-data gnome-mount gnome-python2 gnome-python2-bonobo gnome-python2-canvas gnome-python2-gnomevfs gnome-vfs2 libart_lgpl libbonobo libdaemon libglade2 libgnome libgnomecanvas libgnomeui pycairo pygtk2 pygtk2-libglade pyorbit python-numeric shared-mime-info system-config-network

Which worked fine, and then checked yum update:

================================================
Package Arch Version Repository Size
================================================
Installing:
tbm-pbxconfig i386 5.0.0-10 trixbox 4.6 M
replacing freepbx.i386 2.4.0-2

Updating:
trixbox i386 2.6.1.10-1 trixbox 2.5 M

Transaction Summary
================================================
Install 1 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

Total download size: 7.1 M
Is this ok [y/N]: n

So this box has everything that you should have if you did an unrestricted yum update, (other than tbm-pbxconfig and trixbox) and everything is working fine, so I think the problem is in one of these two modules.

Greg



eldanes
Posts: 25
Member Since:
2006-11-11
I have (almost) the same fault as lleopold19

and I did basically the same thing as did lleopold19
fwrite(): 69 is not a valid stream resource in /var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php

However, lleopold19 has fwrite():66 i have fwrite(): 69

Any ideas???



GSnover
Posts: 1432
Member Since:
2006-11-19
Hang on - I have a loaner box that needs to be wiped...

I am going to yum it with everything and see if I can duplicate the error you are seeing...

Stand by...

Greg



atilio
Posts: 288
Member Since:
2006-06-01
I wonder how hard it would

I wonder how hard it would be to add a module that can reverse any updates that break the system. I guess it would have to back up the current settings and configurations before the update and have them available in case the update fails or is buggy. It could be part of trixbox 3.0



GSnover
Posts: 1432
Member Since:
2006-11-19
Hmmm...stranger and stranger

Ok, well I updated the box with ALL updates and patches and the gui is fine - no problems there - went into PBX Settings and tried to update the modules, and all of them updated except these two:

Downloading blacklist 6431 of 6431 (100%)Error(s) downloading blacklist:
File Integrity failed for /var/www/html/admin/modules/_cache/blacklist-2.4.0.1.tgz - aborting

--------------------------------------------------------------------------------

Downloading framework 2512895 of 2512895 (100%)Error(s) downloading framework:
File Integrity failed for /var/www/html/admin/modules/_cache/framework-2.4.1.0.tgz - aborting

But other than that, everything seems to be working fine - What .ISO image did you guys load from? All of my tests were done from a 2.6.0.7 .ISO image as the starting point. If the .ISO is different, then it could be a problem with what's on the .ISO and ANY of the updates, not just tbm-pbxconfig or trixbox!

Greg



ctellechea
Posts: 7
Member Since:
2008-04-19
Have the same problems

I installed from this ISO months ago:
trixbox-2.6.0.7-i386.iso

I updated doing the following:
yum update --exclude=tbm-pbxconfig --exclude=trixbox

as per the example above.

However, I am getting the same errors. I am cursed to have upgraded. I should know better, but keeping boxes patched up, from a security perspective, is typically good policy.

Why the hell isn't there more testing to prevent these sort of things? In any case now I'm going to go ahead and upgrade trixbox and tbm-pbxconfig since that IS NOT the problem.

--

--
Chuck Tellechea
Website: www.networkstrategies.com



ctellechea
Posts: 7
Member Since:
2008-04-19
I'm going to go ahead and upgrade trixbox and tbm-pbxconfig...

No change. Same errors.

--

--
Chuck Tellechea
Website: www.networkstrategies.com



ctellechea
Posts: 7
Member Since:
2008-04-19
The problem appears to be with php vs. module API versions

Hm....

I'm not a php wizard, I much prefer perl, ruby, and python (I hate php actually); however, this is interesting:

Running the commandline php interpreter against the library file yields the following warning:

[sip.nsihosting.net libraries]# php AGI_AsteriskManager.php
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0

The code, near line 150, in AGI_AsteriskManager.php where my errors start (before they loop forever until stopped) is:

function send_request($action, $parameters=array())
{
$req = "Action: $action\r\n";
foreach($parameters as $var=>$val)
$req .= "$var: $val\r\n";
$req .= "\r\n";
fwrite($this->socket, $req);
return $this->wait_response();
}

From the above, fwrite() attempts to write to object 'socket' that and send it $req. However,
I don't believe that 'socket' has been instantiated. It remains NULL and therefore the next function wait_response() ends up looping forever since the variable $allow_timeout=false is set.

The reason that the object socket is not NULL (instantiated) is because the trixbox code required memcached (somewhere in an include, or require, or whatever the hell php uses to include libraries in code) and the module mod_mem_cache.so is compiled with API=20050922 and php is compiled with API=20060613. As per the following log entry in /var/log/httpd/error_log:

---o---
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
hudlite-server: unrecognized service
hudlite-server: unrecognized service
[Sun Aug 31 00:46:04 2008] [error] [client 10.x.x.37] Sun, 31 Aug 2008 00:46:04 -0400 - Failed to login., referer: http://sip.int/maint/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 13 0 13 0 0 67 0 --:--:-- --:--:-- --:--:-- 0
---o---

So, what I think needs to happen is that an updated memcache module needs to be installed to match the php version. However, there may be a bunch of other examples like this and other php modules need to be fixed/upgraded as well.

Somebody PLEASE send this upstream to the appropriate Trixbox PHP coders so they can fix this mess in their yum repo. I don't want to have to spend the time compiling modules unless I have to....

--

--
Chuck Tellechea
Website: www.networkstrategies.com



ctellechea
Posts: 7
Member Since:
2008-04-19
hm... memcache fixed (pecl compile) but... now hudlite issue

I decided to install gcc, automake, php-devel.i386, and use pecl to compile and install a new memcache module.

Now the memcache error is gone, however, there this:

---o---
hudlite-server: unrecognized service
hudlite-server: unrecognized service
[Sun Aug 31 01:20:24 2008] [error] [client 10.x.x.37] Sun, 31 Aug 2008 01:20:24 -0400 - Failed to login., referer: http://sip.int/maint/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 13 0 13 0 0 88 0 --:--:-- --:--:-- --:--:-- 0
---o---

Enough for tonight... I'll have to chase this some more tomorrow unless somebody else takes this and runs with it....

--

--
Chuck Tellechea
Website: www.networkstrategies.com



ctellechea
Posts: 7
Member Since:
2008-04-19
Failed to login.

Well, after installing hud-lite with:
install-hudlite command

The only thing left in the /var/log/httpd/error_log file now is:

---o---
[Sun Aug 31 02:06:58 2008] [error] [client 10.x.x.37] Sun, 31 Aug 2008 02:06:58 -0400 - Failed to login., referer: http://sip.int/maint/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 13 0 13 0 0 87 0 --:--:-- --:--:-- --:--:-- 0
--

So, I'm back to square one with no other theories.

--

--
Chuck Tellechea
Website: www.networkstrategies.com



ctellechea
Posts: 7
Member Since:
2008-04-19
PARTIAL SOLUTION (At least my gui works with errors ignored)

1. First, If you changed the mysql user, asteriskuser, from the default of amp109, to anything else, the upgrade reset it back in the database so:

Edit /etc/amportal.conf and set AMPDPASS=amp109

2. Second go to: /var/www/html/framework/modules/trixbox/libraries/
And edit the file: AGI_AsteriskManager.php

on line 163:
function wait_response($allow_timeout=false)

Change this to:
function wait_response($allow_timeout=true)

When you first change user mode to admin, it will still print all the error messages we were seeing before, and in addition, it will also print:

Notice: Undefined index: data in /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php on line 196
as well as the same for lines: 216, 227, 239, 250, 260, 273, and 287

After which you will see displayed, below the errors, the normal status page for freepbx. The menu will be at the top of the page, above the errors, and will be functional.

Now we need to find out what the hell is going on with asteriskInfo_functions.php but that's for tomorrow or later in the week if nobody else does the detective work. At least its usable now. I'm going to sleep :)

--

--
Chuck Tellechea
Website: www.networkstrategies.com



SampleX
Posts: 17
Member Since:
2008-06-30
I've applied the above

I've applied the above workaround to prevent the inevitable browser crash. I also have had this problem strike since yesterday when I used the Packages page to select all available updates and install them. Pain in the backside, but at least Trixbox is still working - it could have been a lot worse.

Hoping Fonality find a solution for this soon!

Should I be installing FreePBX on this system, since at the moment this is 'as it stands' off of the TrixboxCE install disk with the exception of the updates...?



colinjack
Posts: 334
Member Since:
2006-06-01
It's Trixbox

"... so I would guess that the problem is in one of these two modules, tbm-pbxconfig or trixbox."

Well I excluded tbm-pbxconfig and mine is also bust ... so it is Trixbox.

Changing the asteriskuser password in the sql database didn't help.

It's all working and can be congured using http://trixbox/admin but try and use /maint and it will crash your computer because it leeches memory whilst churning out error messages.

Oops!

--

Colin



ctellechea
Posts: 7
Member Since:
2008-04-19
its not trixbox module

>Well I excluded tbm-pbxconfig and mine is also bust ... so it is Trixbox.

Actually, I don't believe its either. When I first upgraded I excluded both modules and still encountered the bug.

--

--
Chuck Tellechea
Website: www.networkstrategies.com



colinjack
Posts: 334
Member Since:
2006-06-01
Come on Kerry - how about a fix?

Okay ... you have done some fairly intensive testing so am happy to accept that (against my gut feel :)).

Come on Kerry - how about a fix?

--

Colin



necits
Posts: 419
Member Since:
2008-02-23
Possible Fix- Worked for Me

This is definitly a bug. I don't think the variables are setup properly in some of the new updates. I also think this may be an issue with the asmanager password and not the mysql password. Most of us change them in amportal.conf at the same time and I found there are numerous other places that need to be updated for the new updates to work. Here's how I solved it.

grep amp111 -R /etc/*
Change everyfile that has amp111 to what ever you use for ampmanager pass.
grep amp111 -R /var/www/*
Change everyfile that has amp111 to what ever you use for ampmanager pass.
amportal restart

PS:I excluded trixbox and tbm-pbxconfig from the yum updates and still got the error. This happend after I updated all the modules and then changed ampmanager password, asteriskuser mysql password.

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



bradolive
Posts: 13
Member Since:
2007-07-12
The offending file is here

The call on line 150 of /var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php uses the parameters set in /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php

If you place a line before line 150 (Something like echo "Processing ($req)";) you will see the actual call in your output line at the top.

Change the "amp111" in the asteriskInfo_functions.php file (line 164) and you should be set.

It's interesting seeing how many places this password is set (in hunting it down)

From your /etc and your /var/www/html directories you can run

find . -type f -print | xargs grep -l "amp111" 2>/dev/null

and see all of the fun places....



samj
Posts: 8
Member Since:
2008-04-28
update bug

bradolive, you got it! I just changed the amp111 to the password I was using, and everything is working now. Thanks a bunch! Hopefully they fix this bug in their next update.



colinjack
Posts: 334
Member Since:
2006-06-01
Well done!

bradolive - you are a star. Just changed the password and all fixed.

Well done.

--

Colin



dougflund
Posts: 1
Member Since:
2008-04-21
Trixbox forums save the day again

Thanks for the quick response to this one, all, saved me arse again!



GSnover
Posts: 1432
Member Since:
2006-11-19
Which explains what I was seeing...

The machines I was testing on were fresh loads, and our test boxes, all of which still use the default passwords because we update them so frequently.

Good catch Brad!

Greg



tyardley
Posts: 209
Member Since:
2007-09-09
php-pecl-memcache

The only error that I know of after doing a update from 2.6.1 to 2.6.1.10 is php-pecl-memcache on the Centos updates is reported as a newer version. The version numbers actually match to the custom version we compiled for this build. So this updates this rpm and will throw errors when httpd is restarted. Simple remove php-pecl-memcache

rpm -e --nodeps php-pecl-memcache

Then install the version from our repo.

yum install php-pecl-memcache --disablerepo=updates --disablerepo=base --disablerepo=extras

If you look in /var/log/httpd/error_log you might see.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 12 0 12 0 0 28 0 --:--:-- --:--:-- --:--:-- 28^M 0
12 0 12 0 0 28 0 --:--:-- --:--:-- --:--:-- 0

Which is nothing to worry about.

Thank you,
Engineer Tim



necits
Posts: 419
Member Since:
2008-02-23
Quote: The only error that I

Quote: The only error that I know of after doing a update from 2.6.1 to 2.6.1.10 is php-pecl-memcache on the Centos updates is reported as a newer version.

Did you change the default ampmanager password? This only seems to affect people who change the default passwords.

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



tyardley
Posts: 209
Member Since:
2007-09-09
No, I did not change the default

No, I have never changed the default passwords during my upgrade/install tests.

Thank you,
Engineer Tim



SampleX
Posts: 17
Member Since:
2008-06-30
Nice one, Brad... Thanks.

Nice one, Brad... Thanks.



necits
Posts: 419
Member Since:
2008-02-23
Tim, Wouldn't it make sense

Tim,
Wouldn't it make sense to change passwords when testing?
I know alot of us change the default passwords for security purposes (And it's annoying to see the message on the pbxsettings page) Just a thought.....

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



colinjack
Posts: 334
Member Since:
2006-06-01
... and there's more.

... and there's more.

You will also need to update the amp111 password in /var/www/html/maint/modules/asterisk_info/asterisk_info.php if you want to use PBX Info.

--

Colin



dgoner
Posts: 134
Member Since:
2006-05-31
Any word on these packages

Any word on these packages being fixed yet in the repos? Kerry?



cstar707
Posts: 12
Member Since:
2008-02-29
how about a script being

how about a script being made like the passwd-maint or the passwd-amp thats suposed to be there that can go look into all the files and set the password to whatever you want to fix it.. and also the same script can be kept to change the password.. maybe even put into next release on the ISO for when ppl setup new systems they do not have to edit so many things just to change the default passwords..

Just my 2 cents worth



atilio
Posts: 288
Member Since:
2006-06-01
that sounds like a great

that sounds like a great idea cstar707!



dgoner
Posts: 134
Member Since:
2006-05-31
Adding this functionality

Adding this functionality (password setting) has been discussed a number of times. Apparently no one has stepped forward to write the script and the development team is too busy with other things. A year ago I remember sitting in on a webinar where it was being discussed that trixnet would be integrated into CE too. I think fonality should stop promising so much and deliver on a working product with each release.



rrichiez
Posts: 567
Member Since:
2006-12-07
I would like to add.

Thanks for the post I had the same issue and thanks to you I fixed it, but also I had a db error connect when I tried hitting the pbx settings. to fix it all I did was to Log into phpMyAdmin, and select Privileges from the main page. From there, select the user you want to edit, and click the edit icon next to their name.

asteriskuser where it says password put your actual password used. and hit go. for more information look at this page.

http://www.freepbx.org/support/documentation/faq/changing-the-mys...

rrichiez



larcopabx
Posts: 2
Member Since:
2008-07-03
Stil got one more problem with upgrade !!!

Hi first of all many thanks to all who contributed to the above most of which fixed my problems.

One thing that I still have issues with is access to the PBX settings menu under PBX, all other menu items are accessible no problem but not the settings menu ?

Now I have tried various solutions like adding an httpd user called admin, commenting out the access restrictions in trixbox/httpdconf/trixbox.conf.

The only error message I can find is in /var/log/httpd/error_log -

If i have an httpd user called admin i get this

[Tue Sep 02 19:33:24 2008] [error] [client 10.1.1.1] access to /admin/config.php failed, reason: user 'admin' does not meet 'require'ments for user/valid-user to be allowed access, referer: http://10.1.1.2/maint/index.php?freepbx

without as it should be I get this -

[Tue Sep 02 19:35:37 2008] [error] [client 10.1.1.1] user admin not found: /admin/config.php, referer: http://10.1.1.2/maint/index.php?freepbx

I have looked for all instances of amp111 (and amp109) and changed them all.

Any help greatly received. many thanks.



necits
Posts: 419
Member Since:
2008-02-23
If you are using mysql

If you are using mysql authentication you have to comment out these lines in /etc/trixbox/httpdconf/trixbox.conf

#commented out because using mysql auth MJM
#
#AuthType Basic
#AuthName "Restricted Area"
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user wwwadmin maint
#

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



fmvillares
Posts: 12
Member Since:
2006-06-01
Problemx confirmed to be fixed

Hi there i have several systems with trix 2.6.x and 1 upgraded and broke (with all default passwords changed)
Im in the position of saying that is corrects taht the only "bug" is the complete rewrite of the config files and password
so with the fix shown by other user in this forum after changing all the passwors to ours the system will work again
this is other serious design problem, no system engineer with any knowledge of systems design would do 10 different files with passwords on it
use instead some protected database or hash where the pass is stored and use variables stored in only one place like freepbx
i repeat the solution shown up that will show the files to change and reboot and voila, all working and secure....really thanx for this help

-----------------------------
grep amp111 -R /etc/*
Change everyfile that has amp111 to what ever you use for ampmanager pass.
grep amp111 -R /var/www/*
Change everyfile that has amp111 to what ever you use for ampmanager pass.
amportal restart
-----------------------------
and i recomend reboot
Ing. Fernando M. Villares Terán
Intelix Communications

--

Ing. Fernando M. Villares Terán
Intelix Communications



andersonpc
Posts: 58
Member Since:
2007-08-24
RESOLUTION a.k.a. workaround

Your fixed worked for me!! I changed all the files to the updated password that we use and everything is back to normal. Had to reset mysql password to our password as well.

Thank you!

Paul
AndersonPC.com
FtOCC Admin

--

Paul
www.AndersonPC.com
FtOCC Technician

AndersonPC.com



wadeb
Posts: 7
Member Since:
2008-08-30
Worked for me as well

Thank you Michael, well done.

Wade Blackwell



wadeb
Posts: 7
Member Since:
2008-08-30
Spoke too soon, Operator panel still a bit hosed

This fixed the status page,
My operator panel still will not show any queue or call detail and flashes green/red with a page reload every few seconds. Is this related or something else entirely? Thanks.

Wade Blackwell



necits
Posts: 419
Member Since:
2008-02-23
I thinks you may have

I thinks you may have another issue. My FOP works fine. Are you editing the file a samba share?

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



necits
Posts: 419
Member Since:
2008-02-23
Do not change the passwords

Do not change the passwords in /var/www/html/admin/functions.inc.php. These are the variables System Satus uses to see if you are using the default passwords. If you make them the same as your ampmanager password and asteriskuser password you will get the notice that you are using the default passwords on the pbx settings main page. If you changed them chnage them back to amp111 and amp109. On the other hand if you insist on using default passwords you can get rid of the notices by changing the passwords in /var/www/html/admin/functions.inc.php to something besides amp111 and amp109

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



wadeb
Posts: 7
Member Since:
2008-08-30
I edited everything in vi on the box

I looked at the FOP files and I didn't see much in there,
Based on what I described where would you begin looking? Thanks much.

Wade Blackwell



necits
Posts: 419
Member Since:
2008-02-23
Did you change any passwords

Did you change any passwords besides amp109 and amp111 anywhere?

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



necits
Posts: 419
Member Since:
2008-02-23
Make sure you don't have any

Make sure you don't have any typos it should look like this in amportal.conf
# FOPWEBROOT:web root for the Flash Operator Panel
FOPWEBROOT=/var/www/html/panel

# FOPPASSWORD: the secret code for performing transfers and hangups in the Flash Operator Panel
FOPPASSWORD=passw0rd

# FOPSORT: FOP should sort extensions by Last Name [lastname] or by Extension [extension]
FOPSORT=extension

# FOPRUN: set to true if you want FOP started by freepbx_engine (amportal_start), false otherwise
FOPRUN=true

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



aussieboi21
Posts: 33
Member Since:
2007-05-06
Hey Guys, Ok I just hit this

Hey Guys,

Ok I just hit this problem as well following my standard procedure for changing passwords on a new 2.6.1 server after yum updates I was installing. Backed the password changes back to the defaults and problem was gone. Now this got me pondering....

What is the difference between the amp109 password and the amp111 password??

I usually change the default password of the mysql user "asteriskuser" which is amp109 and then go and change the following based on old instructions I found on this forum a while ago:

* The ARI_ADMIN_PASSWORD in /var/www/html/recordings/includes/main.conf.php
* /etc/amportal.conf - changing AMPMGRPASS & AMPDBPASS
* /etc/asterisk/cdr_mysql.conf - changing PASSWORD
* /etc/asterisk/manager.conf - changing SECRET

Now the defaults on all those changes are a mix of amp109, amp111 and ari_password. Now considering I only changed the asteriskuser password which was amp109 how do those other ones work in the default configuration? Up until today I have never had a problem changing passwords by following my method, but it is a little confusing.....

Any help in explaining the different passwords would be great!!

Thanks,
Luke.



thevoipwiz
Posts: 7
Member Since:
2008-08-11
Here is the Fix it is buried deep!

You need to edit the: /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php

nano /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php

Find the line that says $ami->connect("127.0.0.1:5038", 'admin' , 'amp111'); and change the 'amp111' to the same password you used for user: admin. CTRL+X followed by 'Y' to save and exit.

service mysqld restart [ENTER]

amportal restart [ENTER]

That's it!

Document prepared by: Scott J. Arnold 09/11/2008 Contact: Scott@TheVOIPWiz.com
IAX2 Hardware at http://www.thevoipwiz.com



necits
Posts: 419
Member Since:
2008-02-23
Have you even read the whole

Have you even read the whole forum? The "fix" was posted about 12 posts up

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



mholmes
Posts: 31
Member Since:
2008-08-26
Thanks for the crashed dashboard on update

Great fix Bradolive..... I had the same problem with the dashboard and PBX settings not starting. Your post allowed me to get the dashboard up and running. I had figured out the mysql problem, but I was hitting a brick wall on the dashboard.
for the database error preventing the php page from loading is just a password isssue:

I went to the terminal and entered:

mysqladmin -u asteriskuser -p password {my previous password}

then it prompted me for a password I entered amp109.

All worked well, the pbxsettings came right up. For some reason, the update went and poked the default password (amp109) back in mysql.

OH...amportal stop
amportal start
and mysql restart

for some reason the amportal restart did not work only the stop then start. I had read this trick somewhere. it is a quirk.

Thanks to the great minds on this forum!!!!

Michael Holmes
Metal Finishing Company!!!!



morgolis
Posts: 17
Member Since:
2006-08-15
Updating from 2.6.1 to 2.6.1.10 - Cisco Endpoint manager

Just my 2 cents and how I fixed this issue on a system that is PRE 2.6.2.10

Someone correct me on this, but on a system that is 2.6.1 the directory /var/www/html/framework/modules/trixbox... doesn't exist. I'm assuming that, as I have both a 2.6.1 server and a 2.6.1.10 server, when you upgrade it adds these directories and adds these files to the .../trixbox/libraries directories:

AGI_AsteriskManager.php
Notifications.php
TrixpbxDevice.php
TrixpbxExtension.php
Trixpbx.php
TrixpbxUser.php
Trix.php

In order to resolve the issue for the endpoint_cisco.php connect error: "Warning: fopen(/tftpboot/*.cnf.xml) [function.fopen]: failed to open stream: No such file or directory in /var/www/html/maint/modules/endpointcfg/endpoint_cisco.php on line 165"

On the 2.6.1 system, I edited the file: /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php using VI and added these lines as they didn't exist:

Locate:
function buildAsteriskInfo(){
global $XPath;
global $text;

Then add:
include "/var/www/html/framework/modules/trixbox/libraries/AGI_AsteriskManager.php";

$ami = new AGI_AsteriskManager();
$ami->connect("127.0.0.1:5038", 'admin' , 'insert_your_password_here');

On the 2.6.1 system, I had to add the /var/www/html/framework/modules/trixbox/libraries/ directory and then copy the AGI_AsteriskManager.php over from my 2.6.1.10 server.

Now both the front System Status page works as well as the Endpoint manager for Cisco phones.

To conclude, it's very important to distinguish what version of Trixbox you're running as 2.6.1 does not apparently have the same file structure as 2.6.1.10

I hope this helps.



barronj
Posts: 7
Member Since:
2008-10-30
Many Thanks to the Forums

Encountered this issue and was able to address it by matching the references to "amp111" to the password that we changed to.

Many Thanks All
Joe



fasarnat
Posts: 3
Member Since:
2008-01-22
I changed the "amp111" in

I changed the "amp111" in the asteriskInfo_functions.php file (line 164) and everything started to work fine, at "System status" page.

Great job ;)



fasarnat
Posts: 3
Member Since:
2008-01-22
I had to change "amp111" on

I had to change "amp111" on asteriskInfo_functions.php too....

/var/www/html/maint/modules/home/includes/asteriskInfo_functions.php
line 82



talawson
Posts: 8
Member Since:
2008-12-10
SOLUTION

I’ve been through the forum and reset the password ever and reset file permissions after I did all that it still wasn’t working.
I edited /etc/asterisk/manager.conf and changed the bindaddr, it was set to the IP address of the server after changing it back to 0.0.0.0 it was working/

:)



petermac85
Posts: 3
Member Since:
2008-12-09
My fix

I'm behind NAT and a proxy, so commenting out the section of /var/www/html/maint/modules/home/includes/asteriskInfo_functions.php
that reads:

elseif($key == "Public IP"){
exec("curl http://whatismyip.com/automation/n09230945.asp", $pubip);
$message = (sizeof($pubip) > 0) ? $message = $pubip[0]:"Unknown";
$htmlOutput .= "Public IP: $message

";

worked for me. It works in other scripts, but not here. Don't really want to see that info anyway!



bzbee
Posts: 8
Member Since:
2009-02-05
PBX Settings is dead

Hello all,
you can imagine I'v read all of this thread before posting.
I'm also a vistim of these bugs.
I did all of the password changes back in order for every thing to work.
I can't seem to get the "PBX Settings" to work.
I'v done almost anything I can think of.

can anyone help with this ?

Zion.



mcjohn87
Posts: 2
Member Since:
2009-08-10
thanks so much for useful

thanks so much for useful info
website update



Comment viewing options

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