{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6495","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6495/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6495/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6495/events","html_url":"https://github.com/facebook/hhvm/issues/6495","id":114455375,"number":6495,"title":"\"Failed to initialize central HHBC repository: Failed to initialize schema - unable to open database file\"","user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T07:17:31Z","updated_at":"2015-11-01T15:21:15Z","closed_at":null,"body":"I tried moving all the sites on my server from PHP-FPM to HHVM. It was mostly going well, then I started seeing this error, which appears to crash the whole server :cry: \r\n\r\n```\r\nFailed to initialize central HHBC repository:\\n  Failed to initialize schema in /var/run/hhvm/hhvm.hhbc: \\n  Failed to initialize schema in /root/.hhvm.hhbc: RepoQuery::step(repo=0x7f0ad5b36a00) error: 'CREATE TABLE main.magic_6416960c150a4a4726fda74b659105ded8819d9c(product TEXT);' --> (14) unable to open database file\\n  Failed to open /var/www/.hhvm.hhbc: 14 - unable to open database file\\n\r\nCore dumped: Aborted\r\nStack trace in /tmp/stacktrace.9775.log\r\n```\r\n\r\n`/var/run/hhvm/hhvm.hhbc` exists and is 103 MB. It is writable by the webserver user (`www-data`). ` /root/.hhvm.hhbc` exists too (but it's just 2.3 MB) and I've tried making it world-read-write (`chmod 0777`) just to see if that'd help.\r\n\r\n`/tmp/stacktrace.9775.log` is totally empty, it just contains:\r\n```\r\n\r\nPHP Stacktrace:\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/152834318","html_url":"https://github.com/facebook/hhvm/issues/6495#issuecomment-152834318","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/6495","id":152834318,"user":{"login":"JoelMarcey","id":3757713,"avatar_url":"https://avatars.githubusercontent.com/u/3757713?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelMarcey","html_url":"https://github.com/JoelMarcey","followers_url":"https://api.github.com/users/JoelMarcey/followers","following_url":"https://api.github.com/users/JoelMarcey/following{/other_user}","gists_url":"https://api.github.com/users/JoelMarcey/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelMarcey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelMarcey/subscriptions","organizations_url":"https://api.github.com/users/JoelMarcey/orgs","repos_url":"https://api.github.com/users/JoelMarcey/repos","events_url":"https://api.github.com/users/JoelMarcey/events{/privacy}","received_events_url":"https://api.github.com/users/JoelMarcey/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T15:21:15Z","updated_at":"2015-11-01T15:21:15Z","body":"Can you try deleting `/var/run/hhvm/hhvm.hhbc` and see what happens?"}}