Page MenuHomePhabricator

PHP Fatal error: Class 'Memcached' not found
Closed, ResolvedPublic

Description

mw18 (at least) is missing the php5-memcached package:

reedy@fenari:~$ tail -n 1000 /home/wikipedia/syslog/apache.log | grep Memcached
Oct 31 15:36:14 10.0.11.18 apache2[21681]: PHP Fatal error: Class 'Memcached' not found in /usr/local/apache/common-local/php-1.21wmf3/includes/objectcache/MemcachedPeclBagOStuff.php on line 57
reedy@fenari:~$ ssh 10.0.11.18
Linux mw18 2.6.32-41-generic #89-Ubuntu SMP Fri Apr 27 22:18:56 UTC 2012 x86_64 GNU/Linux
Ubuntu 10.04.4 LTS

78 packages can be updated.
64 updates are security updates.

New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.

The last Puppet run was at Wed Oct 31 15:41:25 UTC 2012 (1 minutes ago).
reedy@mw18:~$ dpkg -l | grep memcached
ii memcached 1.4.2-1ubuntu3 A high-performance memory object caching sys
reedy@mw18:~$ logout
Connection to 10.0.11.18 closed.
reedy@fenari:~$ ssh 10.0.11.17
Linux mw17 2.6.32-33-server #72-Ubuntu SMP Fri Jul 29 21:21:55 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.3 LTS

119 packages can be updated.
97 updates are security updates.

New release 'precise' available.
Run 'do-release-upgrade' to upgrade to it.

The last Puppet run was at Wed Oct 31 14:58:51 UTC 2012 (43 minutes ago).
reedy@mw17:~$ dpkg -l | grep memcached
ii libmemcached10 1.0.8-1~wmf+lucid1 C and C++ client library to the memcached se
ii memcached 1.4.2-1ubuntu4 A high-performance memory object caching sys
ii php5-memcached 2.1.0-2~wmf+lucid1 memcached extension module for PHP5, uses li

Going to have a look around and see if it's not anywhere else either...


Version: unspecified
Severity: normal

Details

Reference
bz41589

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:59 AM
bzimport set Reference to bz41589.
bzimport added a subscriber: Unknown Object (MLST).

Would look to be only mw18...

apt-get -s install php5-memcached
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root@mw18:~# dpkg --configure -a
Processing triggers for libapache2-mod-php5 ...

  • Reloading web server config apache2 [ OK ]

Setting up php-luasandbox (1.1-1~lucid) ...


The following extra packages will be installed:

libmemcached10 php5-igbinary

The following NEW packages will be installed:

libmemcached10 php5-igbinary php5-memcached

0 upgraded, 3 newly installed, 0 to remove and 73 not upgraded.
Inst libmemcached10 (1.0.8-1~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)
Inst php5-igbinary (1.1.1-1~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)
Inst php5-memcached (2.1.0-2~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)
Conf libmemcached10 (1.0.8-1~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)
Conf php5-igbinary (1.1.1-1~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)
Conf php5-memcached (2.1.0-2~wmf+lucid1 Wikimedia:10.04/lucid-wikimedia)

Unpacking php5-memcached (from .../php5-memcached_2.1.0-2~wmf+lucid1_amd64.deb) ...
Processing triggers for libapache2-mod-php5 ...

  • Reloading web server config apache2 [ OK ]

Setting up libmemcached10 (1.0.8-1~wmf+lucid1) ...

Setting up php5-igbinary (1.1.1-1~wmf+lucid1) ...
Setting up php5-memcached (2.1.0-2~wmf+lucid1) ...

srv286 also the same problem, but the cause was different