blank screen after update, missing DB.php

Discussion in 'General' started by wasim, Dec 4, 2010.

  1. wasim

    Nov 25, 2010
    Likes Received:
    recently upgraded a recent elastix install, by doing a yum upgrade, returned after coffee to a blank screen on the web interface


    [Sat Dec 04 15:52:56 2010] [error] [client] PHP Warning: require_once(DB.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/modules/pbxadmin/index.php on line 164

    turned out that php-pear-DB had been obsoleted, and was replaced by php-pear-db which didn't have DB.php

    /var/log/yum.log verified this

    Dec 02 14:48:38 Installed: php-pear-db-1.7.13-2.el5.rf.noarch
    Dec 02 14:48:51 Erased: php-pear-DB

    so, did a

    rpm -e --nodeps php-pear-db
    yum install php-pear-DB

    so far nothing else seems to have been broken by this

    but what is vexing me is why i've got

    Nov 26 06:37:34 Installed: elastix-callcenter-2.0.0-10.noarch
    Nov 26 06:39:14 Updated: elastix-2.0.0-58.noarch
    Dec 02 14:48:45 Updated: elastix-pbx-2.0.0-41.noarch

    when I installed 2.0.3 from the iso :(

    I wonder what RPMS are in 2.0.3 ... I hope yum update hasn't downgraded me

    - wasim

    here is the complete yum.log update

    Dec 02 14:48:11 Installed: atk-1.12.2-1.fc6.x86_64
    Dec 02 14:48:11 Updated: krb5-libs-1.6.1-36.el5_5.6.x86_64
    Dec 02 14:48:11 Updated: freetype-2.2.1-28.el5_5.1.x86_64
    Dec 02 14:48:11 Installed: ORBit2-2.14.3-5.el5.x86_64
    Dec 02 14:48:11 Updated: php-common-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:11 Installed: libXrender-0.9.1-3.1.x86_64
    Dec 02 14:48:12 Installed: cairo-1.2.4-5.el5.x86_64
    Dec 02 14:48:12 Installed: libbonobo-2.16.0-1.1.el5_5.1.x86_64
    Dec 02 14:48:13 Updated: php-mbstring-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:13 Updated: php-pdo-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:13 Updated: php-mysql-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:13 Installed: libXfixes-4.0.1-2.1.x86_64
    Dec 02 14:48:13 Updated: openldap-2.3.43-12.el5_5.3.x86_64
    Dec 02 14:48:13 Installed: libXcursor-1.1.7-1.1.x86_64
    Dec 02 14:48:13 Installed: libXft-2.1.10-1.1.x86_64
    Dec 02 14:48:13 Installed: libXrandr-1.1.1-3.3.x86_64
    Dec 02 14:48:14 Updated: php-cli-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:15 Updated: php-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:15 Installed: shared-mime-info-0.19-5.el5.x86_64
    Dec 02 14:48:15 Installed: lua-5.1.4-4.el5.x86_64
    Dec 02 14:48:15 Installed: libcroco-0.6.1-2.1.x86_64
    Dec 02 14:48:17 Updated: initscripts-8.45.30-3.el5.centos.x86_64
    Dec 02 14:48:17 Installed: avahi-0.6.16-9.el5_5.x86_64
    Dec 02 14:48:17 Installed: avahi-glib-0.6.16-9.el5_5.x86_64
    Dec 02 14:48:18 Updated: perl-BerkeleyDB-0.43-1.el5.rf.x86_64
    Dec 02 14:48:19 Installed: ruby-libs-1.8.5-5.el5_4.8.x86_64
    Dec 02 14:48:20 Installed: ruby-1.8.5-5.el5_4.8.x86_64
    Dec 02 14:48:20 Installed: startup-notification-0.8-4.1.x86_64
    Dec 02 14:48:20 Installed: gamin-0.1.7-8.el5.x86_64
    Dec 02 14:48:20 Installed: libXi-1.0.1-4.el5_4.x86_64
    Dec 02 14:48:20 Updated: gsm-1.0.13-1.el5.rf.x86_64
    Dec 02 14:48:20 Installed: libXres-1.0.1-3.1.x86_64
    Dec 02 14:48:20 Installed: libXinerama-1.0.1-2.1.x86_64
    Dec 02 14:48:20 Installed: libdbi-0.8.1-2.1.x86_64
    Dec 02 14:48:20 Updated: perl-Parse-RecDescent-1.965.1-1.el5.rf.noarch
    Dec 02 14:48:21 Updated: perl-Mail-IMAPClient-3.23-1.el5.rf.noarch
    Dec 02 14:48:23 Installed: bitstream-vera-fonts-1.10-7.noarch
    Dec 02 14:48:23 Installed: pango-1.14.9-8.el5.centos.x86_64
    Dec 02 14:48:23 Updated: perl-IO-Multiplex-1.10-1.el5.rf.noarch
    Dec 02 14:48:23 Updated: perl-HTML-TokeParser-Simple-3.15-1.el5.rf.noarch
    Dec 02 14:48:23 Installed: perl-Pod-Escapes-1.04-5.el5.noarch
    Dec 02 14:48:24 Installed: perl-Pod-Simple-3.15-1.el5.rf.noarch
    Dec 02 14:48:24 Installed: perl-Test-Pod-1.44-1.el5.rf.noarch
    Dec 02 14:48:24 Updated: perl-MailTools-2.07-1.el5.rf.noarch
    Dec 02 14:48:24 Updated: perl-Net-Server-0.99-1.el5.rf.noarch
    Dec 02 14:48:24 Installed: hicolor-icon-theme-0.9-2.1.noarch
    Dec 02 14:48:29 Installed: gtk2-2.10.4-21.el5_5.6.x86_64
    Dec 02 14:48:30 Installed: GConf2-2.14.0-9.el5.x86_64
    Dec 02 14:48:30 Installed: libglade2-2.6.0-2.x86_64
    Dec 02 14:48:30 Installed: libgnomecanvas-2.14.0-4.1.x86_64
    Dec 02 14:48:30 Installed: gnome-keyring-0.6.0-1.fc6.x86_64
    Dec 02 14:48:30 Installed: libwnck-2.16.0-4.fc6.x86_64
    Dec 02 14:48:31 Installed: notification-daemon-0.3.5-9.el5.x86_64
    Dec 02 14:48:31 Installed: libnotify-0.4.2-6.el5.x86_64
    Dec 02 14:48:31 Installed: perl-UNIVERSAL-can-1.16-1.el5.rf.noarch
    Dec 02 14:48:31 Installed: perl-UNIVERSAL-isa-1.03-1.el5.rf.noarch
    Dec 02 14:48:31 Installed: perl-Test-MockObject-1.09-1.el5.rf.noarch
    Dec 02 14:48:31 Installed: perl-Test-Mock-LWP-0.05-1.el5.rf.noarch
    Dec 02 14:48:31 Updated: perl-WWW-Mechanize-1.56-1.el5.rf.noarch
    Dec 02 14:48:32 Installed: gnome-mime-data-2.4.2-3.1.x86_64
    Dec 02 14:48:34 Installed: xorg-x11-fonts-Type1-7.1-2.1.el5.noarch
    Dec 02 14:48:35 Updated: php-gd-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:36 Updated: php-xml-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:36 Updated: php-imap-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:36 Updated: php-soap-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:36 Updated: krb5-workstation-1.6.1-36.el5_5.6.x86_64
    Dec 02 14:48:37 Updated: krb5-devel-1.6.1-36.el5_5.6.x86_64
    Dec 02 14:48:37 Updated: ppp-2.4.4-14.1.rhel5.x86_64
    Dec 02 14:48:38 Updated: perl-Unix-Syslog-1.1-1.el5.rf.x86_64
    Dec 02 14:48:38 Updated: 1:perl-Convert-UUlib-1.33-2.el5.rf.x86_64
    Dec 02 14:48:38 Updated: sox-12.18.1-1.el5_5.1.x86_64
    Dec 02 14:48:38 Installed: php-pear-db-1.7.13-2.el5.rf.noarch
    Dec 02 14:48:39 Updated: php-devel-5.1.6-27.el5_5.3.x86_64
    Dec 02 14:48:41 Updated: phpmyadmin-
    Dec 02 14:48:42 Updated: freetype-devel-2.2.1-28.el5_5.1.x86_64
    Dec 02 14:48:42 Installed: perl-Date-Manip-5.56-1.el5.rf.noarch
    Dec 02 14:48:42 Updated: rpmforge-release-0.5.2-2.el5.rf.x86_64
    Dec 02 14:48:42 Updated: perl-Data-UUID-1.203-1.el5.rf.x86_64
    Dec 02 14:48:45 Updated: elastix-pbx-2.0.0-41.noarch
    Dec 02 14:48:46 Installed: gnome-vfs2-2.16.2-6.el5_5.1.x86_64
    Dec 02 14:48:47 Installed: libgnome-2.16.0-6.el5.x86_64
    Dec 02 14:48:47 Installed: libbonoboui-2.16.0-1.fc6.x86_64
    Dec 02 14:48:48 Installed: libgnomeui-2.16.0-5.el5.x86_64
    Dec 02 14:48:48 Installed: gnome-mount-0.5-3.el5.x86_64
    Dec 02 14:48:48 Installed: libgsf-1.14.1-6.1.x86_64
    Dec 02 14:48:48 Installed: librsvg2-2.16.1-1.el5.x86_64
    Dec 02 14:48:50 Updated: graphviz-2.22.0-4.el5.rf.x86_64
    Dec 02 14:48:50 Updated: rrdtool-1.4.4-1.el5.rf.x86_64
    Dec 02 14:48:50 Installed: perl-rrdtool-1.4.4-1.el5.rf.x86_64
    Dec 02 14:48:51 Erased: php-pear-DB
    Dec 02 14:48:54 Erased: perl-DateManip
    Dec 04 16:02:58 Installed: php-pear-DB-1.7.13-1.el5.centos.noarch
  2. kevinwithnall

    Dec 13, 2010
    Likes Received:
    Did you get this worked out ? Its happening on lots of my servers now.

    I would love to hear any solutions.
  3. JCVH

    May 20, 2011
    Likes Received:
    Well, it has been a lot of time since the last response, but i got same issue right now and found the solution myself partially because of this post.
    I will post this in english and spanish, so can serve anyone.

    Well, today i runned a yum update that let me with the blank page.
    I googled the issue, and comes to this:

    First, if you usually access the machine with it's IP, and your server used to allow http access, after the update it is left with "secure mode" so only allow https, and redirects you so, sometimes it get a blank page for starters (no elastix login interface). Well, it is just that the https server expects you to ask for the server NAME instead of the IP, so you need to access https://ELASTIX_BOX_LINUX_NAME/ instead of https://ELASTIX_BOX_IP/ that gives blank. If you dont have a DNS resolution for the name, you can add an entry to the hosts file of your client.

    After that, if you can access every elastix interface tab, but the PBX one, it is the "missing DB.php" issue.
    Happens that when you run yum update, when the php-pear-db packet is updated, it doesn't actually install the dataase itself automatically (but just the packet).
    I fixed this by issuing the command:

    pearl install db

    So, i recover access to everything, with no need to mess with the packets.

    That is, thanks everybody for the usual help that you leave here and i, as others, usually make use of :)


    Bueno, ha pasado tiempo desde la última respuesta, pero encontré el mismo problema justo ahora, y encontré la solución en parte por este post.
    Responderé en inglés y español, así le sirve a cualquiera.

    primero, si usualmente se accedía a la máquina con si dirección IP, con http, después del update el servidor web queda en modo seguro, de modo que no admite https, solo https, así que redirige al acceso seguro. Así, a veces queda con una página en blanco para empezar, sin interfaz para ingresar login y password.
    Bien, sucede que el servidor espera que le soliciten acceso por su NOMBRE, no su IP, de modo que se necesita acceder a https://NOMBRE_LINUX_DE_MAQUINA_ELASTIX/ en vez de https://IP_DE_SERVIDOR/ que enttrega una página en blanco.
    Si no se tiene resolución del nombre por DNS, se puede agregar una entrada al archivo hosts del cliente.

    Luego, si se puede accesar a todas las pestañas de Elastix, exepto a la "PBX", se trata del problema del archivo DB.php desaparecido.
    Sucede que cuando se corre el update, cuando se actualiza el paquete php-pear-db, no siempre se instala automáticamente la base de datos en sí, (solo el módulo).
    Se arregla corriendo el comando:

    pearl install db

    Así, se recupera acceso a todo.

    Eso es, gracias a todos por la ayuda usual que dejan acá, y que varios usamos cotidianamente.


Share This Page