Roundcube Community Forum

 

Strange error: randomly missing mysql extension

Started by infinity, April 14, 2013, 08:44:10 PM

Previous topic - Next topic

infinity

Hello, everyone,

since some releases (I think something like 0.6 or 0.7, don't now exacly) my roundcube installation has a really strange bug. Most times it works perfect, but every few days (or sometimes weeks) it fails with this error:
[15-Apr-2013 02:24:56 Europe/Berlin] MDB2 Error: not found (-4): [Error message: extension mysql is not compiled into PHP]

[15-Apr-2013 02:24:56 +0200]: DB Error: [Error message: extension mysql is not compiled into PHP]
** mysql(mysql)://webmail:[email protected]/webmail in /srv/www/net.foej.mail/httpsdocs/program/include/rcube_mdb2.php on line 107 (GET /)


This is quite strange because a) every other webapp works (eg drupal, symfony or wordpress), b) mysql extension is still in php -m list and c) it can be solved by restarting apache(!) service (not mysqld - apache!).

There is no other error message, even if I switch to DEBUG = error level 8. I can even update roundcube (just did an update from 0.8.5 to 0.8.6) - it still does not work. I even changed my php version (from Debian 6.0 packages to Dotdeb Packages for Debian 6.0 which means much more up2date apache, php and mysql packages) - still no effect.

The only thing which solved the issue is restarting apache. Then roundcube works again.

Apache uses php5 via fcgi and suexec. It's a debian 6.0 and roundcube 0.8.6. And I ran out of ideas how to solve this. Can you help? Perhaps give some hints what to do to get a better bug report next time? As you might understand my users don't like to wait too long for restarting apache when the error occures, so I need a strategy / an idea first and just run it through quite fast before restarting apache. Thanks! :)

SKaero

I would say its an Apache problem, but couldn't give any advices on fixing it. I'd recommend you upgrade to the RoundCube 0.9 RC2 since the whole database system has been re-written.