Skip to content

Instantly share code, notes, and snippets.

@byeskille
Last active April 13, 2017 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byeskille/88524adece624b113e3f5bac48bb683a to your computer and use it in GitHub Desktop.
Save byeskille/88524adece624b113e3f5bac48bb683a to your computer and use it in GitHub Desktop.
from hhvm error.log:
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html or any of its parent directories. Do you have a .$
Finished singleJitRequest 1
Finished singleJitRequest 2
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html or any of its parent directories. Do you have a .$
Finished singleJitRequest 3
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html or any of its parent directories. Do you have a .$
Finished singleJitRequest 4
Then I placed an empty .hhconfig file in the sites root /usr/share/nginx/html, and this from error.log seems to catch some data after the change:
Finished singleJitRequest 20
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html/wp-admin or any of its parent directories. Do you$
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html/wp-admin or any of its parent directories. Do you$
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html/wp-admin or any of its parent directories. Do you$
\nCatchable fatal error: Error: could not find a .hhconfig file in /usr/share/nginx/html/wp-admin or any of its parent directories. Do you$
\nWarning: Hack typechecking failed: server not ready. Unless you have run "hh_client" manually, you may be missing Hack type errors! Once$
\nWarning: Hack typechecking failed: server not ready. Unless you have run "hh_client" manually, you may be missing Hack type errors! Once$
Finished singleJitRequest 1
Finished singleJitRequest 2
Finished singleJitRequest 3
Finished singleJitRequest 4
Finished singleJitRequest 5
Finished singleJitRequest 6
Finished singleJitRequest 7
Finished singleJitRequest 8
Finished singleJitRequest 9
Finished singleJitRequest 10
RESULT from curl for the test index.php in tmp/test and hhvm -m server -p 8080
$ curl http://localhost:8080/index.php
foo
RESULT FROM curl for the file containing <?php var_dump(ini_get("hhvm.force_hh"));
$ curl https://byeskille.no/test.php
string(0) ""
find /usr/share/nginx/html -name '*.hh'; grep -R '<?hh' /usr/share/nginx/html | cut -f1 -d: | sort | uniq
= gave no result
WITH a .hhconfig in the root running check:
/usr/share/nginx/html# hh_server --check $(pwd)
[2017-04-13 19:37:44] Loading config exception: Sys_error("/etc/hh.conf: No such file or directory")
[2017-04-13 19:37:44] Could not load config at /etc/hh.conf, using defaults
[2017-04-13 19:37:44] Version: ab632e960e305da404dfe1d45cb280620758be44 Wed Apr 12 17:34:41 2017
[2017-04-13 19:37:44] Loading config exception: Sys_error("/etc/hh.conf: No such file or directory")
[2017-04-13 19:37:44] Could not load config at /etc/hh.conf, using defaults
[2017-04-13 19:37:44] No debug port attached
[2017-04-13 19:37:44] Indexing: 0.000087
[2017-04-13 19:37:47] Heap size: 978368
[2017-04-13 19:37:47] Parsing: 3.061524
[2017-04-13 19:37:48] Heap size: 1757184
[2017-04-13 19:37:48] Naming: 0.018840
[2017-04-13 19:37:48] Heap size: 2532416
[2017-04-13 19:37:48] Type-check: 0.457099
[2017-04-13 19:37:48] Updating 5347 search files:: 0.299454
[2017-04-13 19:37:48] Dependency table load factor: 0 / 131072 (0.00)
[2017-04-13 19:37:48] Hashtable load factor: 47028 / 262144 (0.18) with 47028 nonempty slots
[2017-04-13 19:37:48] Waiting for daemon(s) to be ready...
[2017-04-13 19:37:48] Running in check mode
No errors!
hh_client test at the root of the site:
/usr/share/nginx/html# hh_client --list-modes | egrep -v '^php'
For more detailed logs, try `tail -f $(hh_client --monitor-logname) $(hh_client --logname)`
Server launched with the following command:
'/usr/bin/hh_server' '-d' '/usr/share/nginx/html' '--waiting-client' '7'
Spawned typechecker (child pid=4269)
Logs will go to /tmp/hh_server/zSusrzSsharezSnginxzShtml.monitor_log
Giving the content of that monitor.log:
cat /tmp/hh_server/zSusrzSsharezSnginxzShtml.monitor_log
[2017-04-13 19:40:35] Loading config exception: Sys_error("/etc/hh.conf: No such file or directory")
[2017-04-13 19:40:35] Could not load config at /etc/hh.conf, using defaults
[2017-04-13 19:40:35] About to spawn typechecker daemon. Logs will go to /tmp/hh_server/zSusrzSsharezSnginxzShtml.log
[2017-04-13 19:40:35] Just started typechecker server with pid: 4274.
[2017-04-13 19:40:35] Got request for typechecker. Prior request 0.0 seconds ago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment