hhvm 3.17.1~jessie

Minor problem after upgrading to v3.17.1 – HHVM wouldn’t restart and I had the following error in /var/log/hhvm/error.log:

Failed to initialize central HHBC repository:\n Failed to initialize schema in /var/run/hhvm/hhvm.hhbc(rw-r--r-- www-data:www-data): RepoQuery::step(repo=0x7fa828525a00) error: 'CREATE TABLE main.FileMd5_68c9b831b56bea5d8c90f6fca5ea358cdaaea626(path TEXT, md5 BLOB, UNIQUE(path, md5));' --> (13) database or disk is full\n Failed to open /var/www/.hhvm.hhbc: 14 - unable to open database file\n

The disk definitely wasn’t full. Deleting the file /var/run/hhvm/hhvm.hhbc and restarting seemed to fix this problem. (Note: same problem/resolution from earlier).

HHVM using way more memory in v3.14

Since the 3.14 version of HHVM, I haven’t been able to run it at all – it would crash on load with a memory error (“Failed to mmap persistent RDS region”). This VPS has been running happily with only 512MB of RAM, but this latest update must’ve pushed it over the line.

I tried a bunch of things to tweak the memory usage but in the end simply couldn’t get it to load; I’ve simply added another 256MB of RAM and now it works fine.

HHVM v3.13.0 Silently Fails, Causing “Bad Gateway” Errors

If you’re suddenly getting “Bad Gateway” errors on your HHVM setup and it’s happened in the last week or so, it’s probably this problem.

In a nutshell, HHVM running in daemon mode seems to silently crash (leaving no error messages that I could find) after serving a few requests. On this server it would crash instantly if a fatal error was generated, but it seemed to serve several normal requests fine before finally dying.

Running under server mode it seems to work as normal.

Updated 2016-04-07 – as per the Github linked above this is now fixed in v3.13.1.

502 Bad Gateway errors after upgrading to v3.7.3

The HHVM team just released a new update to fix an SSL issue – more details available here.

After upgrading to the new version (v3.7.3 if you’re running out of latest Debian, or v3.3.7/v3.6.5 if you’re running older versions), my HHVM would not restart, yielding a 502 Bad Gateway error when loading this site.

The error log (/var/log/hhvm/error.log) had the following error:

Failed to initialize central HHBC repository:\n Failed to initialize schema in /var/run/hhvm/hhvm.hhbc: RepoQuery::step(repo=0x7f32f1c3bc00) error: ‘CREATE TABLE main.UnitLineTable_6ba408ef27e1fc7820c8bd6352989f40c1acb812(unitSn INTEGER PRIMARY KEY, data BLOB);’ –> (13) database or disk is full\n Failed to open /root/.hhvm.hhbc: 14 – unable to open database file\n Failed to open /var/www/.hhvm.hhbc: 14 – unable to open database file\n

I deleted /root/.hhvm.hhbc and restarted, which didn’t fix it, but /var/www/.hhvm.hhbc did not exist. I found a /var/run/hhvm/hhvm.hhbc which I deleted; restarting HHVM at that point (via /etc/init.d/hhvm restart) then had the site back up and running.