Last modified: 2014-07-26 22:41:56 UTC
$ hhvm Uncaught exception: Could not open extension /usr/lib/hphp/extensions/20131007/luasandbox.so: /usr/lib/hphp/extensions/20131007/luasandbox.so: undefined symbol: zend_objects_destroy_object Tried to upgrade everything that moves, etc.
Works for me: $ ls -l /usr/lib/hphp/extensions/20131007/luasandbox.so -rw-r--r-- 1 root root 108936 Jul 2 00:54 /usr/lib/hphp/extensions/20131007/luasandbox.so $ dpkg -S /usr/lib/hphp/extensions/20131007/luasandbox.so hhvm-luasandbox: /usr/lib/hphp/extensions/20131007/luasandbox.so $ dpkg -s hhvm-luasandbox Package: hhvm-luasandbox Status: install ok installed Priority: optional Section: web Installed-Size: 149 Maintainer: Tim Starling <tstarling@wikimedia.org> Architecture: amd64 Source: php-luasandbox Version: 2.0-1 Depends: hhvm, libc6 (>= 2.17), libgcc1 (>= 1:4.1.1), liblua5.1-0, libstdc++6 (>= 4.1.1) Description: Lua extension for HHVM A HHVM extension providing a sandboxed Lua environment which can be used to run untrusted code. Homepage: https://www.mediawiki.org/wiki/Extension:Scribunto
I was able to reproduce it (see last part below). After some git pulls into MediaWiki-Vagrant, role toggling, and halt/up, I can't reproduce it any more. I ran the commands Bryan provided, and got the same output. --- 2014-07-14 19:24:35 +0000 Puppet (notice): Compiled catalog for mediawiki-vagrant in environment production in 5.58 seconds 2014-07-14 19:24:41 +0000 Puppet (info): Applying configuration version '1405365870.ace5817' 2014-07-14 19:24:41 +0000 mount[files] (info): allowing mediawiki-vagrant access 2014-07-14 19:24:52 +0000 /Stage[main]/Apt/Exec[/usr/bin/apt-get update]/returns (notice): executed successfully 2014-07-14 19:24:55 +0000 /Stage[main]/Hhvm/Service[hhvm]/ensure (notice): ensure changed 'stopped' to 'running' 2014-07-14 19:24:55 +0000 /Stage[main]/Hhvm/Service[hhvm] (info): Unscheduling refresh on Service[hhvm] 2014-07-14 19:24:56 +0000 /Stage[main]/Mediawiki/Exec[install composer deps]/returns (notice): Uncaught exception: Could not open extension /usr/lib/hphp/extensions/20131007/luasandbox.so: /usr/lib/hphp/extensions/20131007/luasandbox.so: undefined symbol: zend_objects_destroy_object 2014-07-14 19:24:56 +0000 Puppet (err): /usr/bin/composer install --no-interaction --quiet --optimize-autoloader returned 255 instead of one of [0] 2014-07-14 19:24:56 +0000 /Stage[main]/Mediawiki/Exec[install composer deps]/returns (err): change from notrun to 0 failed: /usr/bin/composer install --no-interaction --quiet --optimize-autoloader returned 255 instead of one of [0] 2014-07-14 19:24:59 +0000 Puppet (notice): Finished catalog run in 21.27 seconds ---
Service[hhvm] requires all of the hhvm packages to be installed (see ::hhvm). That log shows Service[hhvm] being started, so luasandbox.so should be present, but obviously it wasn't. One thing we could do for this particular problem would be to change the command used to run composer to use /usr/bin/php5 instead of /usr/bin/php. We have done something similar for most puppet execution of maintenance scripts because of other issues with hhvm for short running command line scripts. I'm more and more inclined to ask Ori to revert the code in ::hhvm that sets /usr/bin/php to be a symlink to /usr/bin/hhvm. I think running the wiki under hhvm is a great idea, but it seems like there is still quite a bit of instability with running random php scripts using it.
Gone after nuking the VM and reprovisioning. Apparently, the initial upgrade screwed up deb sources order.
I'm getting this after nuking and reprovisioning: Uncaught exception: Could not open extension /usr/lib/hphp/extensions/20131007/luasandbox.so: /usr/lib/hphp/extensions/20131007/luasandbox.so: cannot open shared object file: No such file or directory I can work around the problem with: sudo ln -s /usr/lib/hphp/extensions/20140702/ /usr/lib/hphp/extensions/20131007
Apache wasn't working either....
Fixed by Bryan in I986205e0c