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.