Tuesday 7 July 2015

HHVM Failed to open /var/www/.hhvm.hhbc

Hi if you get error Like Below

Failed to initialize central HHBC repository:\n  Failed to initialize schema in /var/run/hhvm/hhvm.hhbc: RepoQuery::step(repo=0x7f814678e600) error: 'CREATE TABLE main.UnitSourceLoc_6ba408ef27e1fc7820c8bd6352989f40c1acb812(unitSn INTEGER, pastOffset INTEGER, line0 INTEGER, char0 INTEGER, line1 INTEGER, char1 INTEGER, PRIMARY KEY (unitSn, pastOffset));' --> (13) database or disk is full\n  Failed to open /var/www/.hhvm.hhbc: 14 - unable to open database file\n
 

Failed to initialize central HHBC repository:\n  Failed to initialize schema in /var/run/hhvm/hhvm.hhbc: RepoQuery::step(repo=0x7fdf7b38e600) error: 'CREATE TABLE main.UnitSourceLoc_6ba408ef27e1fc7820c8bd6352989f40c1acb812(unitSn INTEGER, pastOffset INTEGER, line0 INTEGER, char0 INTEGER, line1 INTEGER, char1 INTEGER, PRIMARY KEY (unitSn, pastOffset));' --> (13) database or disk is full\n  Failed to open /var/www/.hhvm.hhbc: 14 - unable to open database file\n

Solution
create /var/www folder
and change owner to www-data
in /var folder run below commands
mkdir www
chown www-data:www-data www
Read More
Here We Write The Problems we face at different situations and Solutions to those problems.