Skip to content

Commit

Permalink
doc: troubleshooting += Failed to read ng output after 5 seconds
Browse files Browse the repository at this point in the history
(sapling split of 42ea5a4ab21d9c1dfbd2c6e1bfb4756cc276872e)
  • Loading branch information
lahosken committed Mar 25, 2014
1 parent 63b0e32 commit d835325
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/python/twitter/pants/docs/tshoot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,24 @@ want to track down exactly what, you can reset your state::
$ build-support/python/clean.sh # clean cached files
$ ./pants goal ng-killall --ng-killall-everywhere # stop background procs

*****************
Nailgun 5 seconds
*****************

If Pants fails with a stack trace that ends with something like ::

File "twitter/pants/tasks/nailgun_task.py", line 255, in _spawn_nailgun_server
File "twitter/pants/tasks/nailgun_task.py", line 226, in _await_nailgun_server
twitter.pants.java.nailgun_client.NailgunError: Failed to read ng output after 5 seconds

Pants uses a program called nailgun to run some JVM jobs. Pants runs
nailgun as a server in the background and then sends requests to it. If
nailgun runs into problems, it might not respond.

To debug this, look in ``./pants.d/ng/*/*``: these files should be named
``stdout`` and ``stderr``.

One typical cause behind this symptom: if you removed your machine's Ivy cache,
Pants may try to use symbolic links to files that have gone away.
To recover from this, :ref:`washpants`.

0 comments on commit d835325

Please sign in to comment.