{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6525","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6525/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6525/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6525/events","html_url":"https://github.com/facebook/hhvm/issues/6525","id":115789077,"number":6525,"title":"Failed to initialize central HHBC repository:\\n  Failed to open /var/run/hhvm/hhvm.hhbc: 14 - unable to open database file\\n","user":{"login":"Eagle-X","id":12489547,"avatar_url":"https://avatars.githubusercontent.com/u/12489547?v=3","gravatar_id":"","url":"https://api.github.com/users/Eagle-X","html_url":"https://github.com/Eagle-X","followers_url":"https://api.github.com/users/Eagle-X/followers","following_url":"https://api.github.com/users/Eagle-X/following{/other_user}","gists_url":"https://api.github.com/users/Eagle-X/gists{/gist_id}","starred_url":"https://api.github.com/users/Eagle-X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eagle-X/subscriptions","organizations_url":"https://api.github.com/users/Eagle-X/orgs","repos_url":"https://api.github.com/users/Eagle-X/repos","events_url":"https://api.github.com/users/Eagle-X/events{/privacy}","received_events_url":"https://api.github.com/users/Eagle-X/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T04:23:06Z","updated_at":"2015-11-12T06:49:05Z","closed_at":null,"body":"Can anyone help me?\r\nRecently I frequently encounter this error:\r\n\"Failed to initialize central HHBC repository:\\n  Failed to open /var/run/hhvm/hhvm.hhbc: 14 - unable to open database file\\n\" or \"Failed to initialize schema in /var/run/hhvm/hhvm.hhbc\" when the network jitters.\r\n\r\nMy env:\r\n\r\n```sh\r\nweb sever: nginx1.6.2\r\n```\r\n\r\n```sh\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.1 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\n```\r\n\r\n```sh\r\n$ /opt/bin/hhvm --version\r\nHipHop VM 3.6.3-dev (rel)\r\n```\r\n\r\n```sh\r\n$cat php.ini\r\n; php options\r\nsession.save_handler = files\r\nsession.save_path = /var/run/hhvm\r\nsession.gc_maxlifetime = 1440\r\n\r\n; hhvm specific\r\nhhvm.log.level = Error\r\nhhvm.log.use_log_file = true\r\nhhvm.log.use_cronolog = false\r\nhhvm.log.file = /data/log/hhvm/error.log\r\nhhvm.log.always_log_unhandled_exceptions = true\r\nhhvm.log.runtime_error_reporting_level = 8191\r\nhhvm.log.header = true\r\n```\r\n\r\n```sh\r\n$cat server.ini\r\n; php options\r\n\r\npid = /var/run/hhvm/hhvm.pid\r\n\r\n; hhvm specific\r\n\r\nhhvm.server.file_socket = /var/run/hhvm/hhvm.sock\r\nhhvm.server.port = 9000\r\nhhvm.server.type = fastcgi\r\nhhvm.server.default_document = index.php\r\nhhvm.log.use_log_file = true\r\nhhvm.log.file = /data/log/hhvm/error.log\r\nhhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc\r\nhhvm.server.thread_count = 128\r\nhhvm.server.connection_limit = 1024\r\nhhvm.server.connection_timeout_seconds = 5\r\nhhvm.http.default_timeout = 5\r\nhhvm.admin_server.port = 9100\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/156016968","html_url":"https://github.com/facebook/hhvm/issues/6525#issuecomment-156016968","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/6525","id":156016968,"user":{"login":"Eagle-X","id":12489547,"avatar_url":"https://avatars.githubusercontent.com/u/12489547?v=3","gravatar_id":"","url":"https://api.github.com/users/Eagle-X","html_url":"https://github.com/Eagle-X","followers_url":"https://api.github.com/users/Eagle-X/followers","following_url":"https://api.github.com/users/Eagle-X/following{/other_user}","gists_url":"https://api.github.com/users/Eagle-X/gists{/gist_id}","starred_url":"https://api.github.com/users/Eagle-X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eagle-X/subscriptions","organizations_url":"https://api.github.com/users/Eagle-X/orgs","repos_url":"https://api.github.com/users/Eagle-X/repos","events_url":"https://api.github.com/users/Eagle-X/events{/privacy}","received_events_url":"https://api.github.com/users/Eagle-X/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T06:49:05Z","updated_at":"2015-11-12T06:49:05Z","body":"```\r\n# sysctl fs.file-max\r\nfs.file-max = 655360\r\n```\r\n\r\n```\r\n# echo 'ulimit -n' | su www-data -s /bin/bash\r\n655360\r\n```\r\n\r\n```\r\n# lsof | grep \"^hhvm\" | wc -l\r\n53457\r\n```\r\n\r\n```\r\n# lsof | grep \"^hhvm\" | fgrep anon_inode | wc -l\r\n32136\r\n```\r\n\r\n```\r\nhhvm.server.connection_timeout_seconds = 5\r\n```\r\n\r\nIs it big enough? Or other problems?"}}