Recently the 3.14 update just came, after upgrade the HHVM won't start:
root@milliondollarserver:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
hhvm
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://dl.hhvm.com/ubuntu/ trusty/main hhvm amd64 3.14.0~trusty [18.6 MB]
Fetched 18.6 MB in 1s (10.3 MB/s)
(Reading database ... 92960 files and directories currently installed.)
Preparing to unpack .../hhvm_3.14.0~trusty_amd64.deb ...
********************************************************************
* HHVM is being removed. You can remove it from your webserver with:
*
* $ sudo /usr/share/hhvm/uninstall_fastcgi.sh
* $ sudo /etc/init.d/nginx restart
* $ sudo /etc/init.d/apache restart
********************************************************************
Unpacking hhvm (3.14.0~trusty) over (3.13.2~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up hhvm (3.14.0~trusty) ...
update-alternatives: using /usr/bin/hhvm to provide /usr/bin/php (php) in auto mode
********************************************************************
* HHVM is installed.
*
* Running PHP web scripts with HHVM is done by having your
* webserver talk to HHVM over FastCGI. Install nginx or Apache,
* and then:
* $ sudo /usr/share/hhvm/install_fastcgi.sh
* $ sudo /etc/init.d/hhvm restart
* (if using nginx) $ sudo /etc/init.d/nginx restart
* (if using apache) $ sudo /etc/init.d/apache restart
*
* Detailed FastCGI directions are online at:
* https://github.com/facebook/hhvm/wiki/FastCGI
*
* If you're using HHVM to run web scripts, you probably want it
* to start at boot:
* $ sudo update-rc.d hhvm defaults
*
* Running command-line scripts with HHVM requires no special setup:
* $ hhvm whatever.php
*
* You can use HHVM for /usr/bin/php even if you have php-cli
* installed:
* $ sudo /usr/bin/update-alternatives \
* --install /usr/bin/php php /usr/bin/hhvm 60
********************************************************************
/usr/bin/hhvm: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory
root@milliondollarserver:~# service hhvm restart
* Restarting HHVM FastCGI Daemon hhvm
/usr/bin/hhvm: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory
Than I installed the libdouble-conversion library:
root@milliondollarserver:~# apt-cache search libdouble
libdouble-conversion1 - routines to convert IEEE floats to and from strings
libdouble-conversion-dbg - routines to convert IEEE floats to and from strings (debugging symbols)
libdouble-conversion-dev - routines to convert IEEE floats to and from strings (development files)
root@milliondollarserver:~# apt-get install libdouble-conversion1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libdouble-conversion1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 31.5 kB of archives.
After this operation, 104 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe libdouble-conversion1 amd64 2.0.1-1 [31.5 kB]
Fetched 31.5 kB in 0s (96.7 kB/s)
Selecting previously unselected package libdouble-conversion1:amd64.
(Reading database ... 92960 files and directories currently installed.)
Preparing to unpack .../libdouble-conversion1_2.0.1-1_amd64.deb ...
Unpacking libdouble-conversion1:amd64 (2.0.1-1) ...
Setting up libdouble-conversion1:amd64 (2.0.1-1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
But still no luck:
root@milliondollarserver:~# service hhvm start
/usr/bin/hhvm: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
root@milliondollarserver:~# service hhvm restart
* Restarting HHVM FastCGI Daemon hhvm
/usr/bin/hhvm: error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory
I have to install liblz4 to fix it:
root@milliondollarserver:~# apt-cache search liblz4
liblz4-1 - Fast LZ compression algorithm library - runtime
liblz4-1-dbg - Fast LZ compression algorithm library - Debugging Symbols
liblz4-dev - Fast LZ compression algorithm library - development files
liblz4-tool - Fast LZ compression algorithm library - tool
root@milliondollarserver:~# apt-get install liblz4-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
liblz4-1
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.1 kB of archives.
After this operation, 72.7 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu/ trusty/universe liblz4-1 amd64 0.0~r114-2ubuntu1 [16.1 kB]
Fetched 16.1 kB in 0s (55.5 kB/s)
Selecting previously unselected package liblz4-1:amd64.
(Reading database ... 92966 files and directories currently installed.)
Preparing to unpack .../liblz4-1_0.0~r114-2ubuntu1_amd64.deb ...
Unpacking liblz4-1:amd64 (0.0~r114-2ubuntu1) ...
Setting up liblz4-1:amd64 (0.0~r114-2ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
root@milliondollarserver:~# service hhvm start
I noticed my Debian 8 Jessie server doesn't have this issue, only the Ubuntu 14.04 LTS.
Just a heads up for every one test your code and server before you upgrade the production system.
I like (not love anymore, since version 3.10) HHVM, but it got some quality issues since Version 3.10.
Hope it just a temporary thing.
I will keep support HHVM but not suggest it in production system.
Have a nice weekend!
I had the same issue, thanks a lot for your help.
ReplyDeleteglade it helps!
ReplyDeleteI had the same issue.
ReplyDeleteThanks!