{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/166","labels_url":"https://api.github.com/repos/facebook/buck/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/166/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/166/events","html_url":"https://github.com/facebook/buck/issues/166","id":38750287,"number":166,"title":"Hard to get buckd out of a wedged state","user":{"login":"dborowitz","id":194927,"avatar_url":"https://avatars.githubusercontent.com/u/194927?v=3","gravatar_id":"","url":"https://api.github.com/users/dborowitz","html_url":"https://github.com/dborowitz","followers_url":"https://api.github.com/users/dborowitz/followers","following_url":"https://api.github.com/users/dborowitz/following{/other_user}","gists_url":"https://api.github.com/users/dborowitz/gists{/gist_id}","starred_url":"https://api.github.com/users/dborowitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dborowitz/subscriptions","organizations_url":"https://api.github.com/users/dborowitz/orgs","repos_url":"https://api.github.com/users/dborowitz/repos","events_url":"https://api.github.com/users/dborowitz/events{/privacy}","received_events_url":"https://api.github.com/users/dborowitz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-07-25T17:01:27Z","updated_at":"2015-05-18T19:23:20Z","closed_at":"2015-05-18T19:23:20Z","body":"This morning after not using buck on my Linux machine for a few days, I get:\r\n```\r\n$ buck build :chrome\r\nUsing buckd.\r\nconnect: Connection refused\r\n```\r\n\r\nIt might be nice if the tool helped me a bit here, but this seems to have completely wedged it:\r\n```\r\n$ buck --help\r\nUsing buckd.\r\nconnect: Connection refused\r\n```\r\n\r\nIndeed, there was no buckd process running. I did `rm -rf .buckd` and tried again:\r\n```\r\n$ buck build :chrome                                                                                                                                                                                                     \r\nUsing watchman.\r\nUsing buckd.\r\n[-] PARSING BUILD FILES...FINISHED 2.2s\r\n[+] BUILDING...36.7s\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> //:chrome...  4.3s (running genrule[4.2s])\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\n |=> IDLE\r\nLog:\r\nClient disconnected.\r\njava.lang.InterruptedException\r\n        at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:996)\r\n        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)\r\n        at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:285)\r\n        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)\r\n        at com.facebook.buck.cli.BuildCommand.executeBuildAndPrintAnyFailuresToConsole(BuildCommand.java:162)\r\n        at com.facebook.buck.cli.BuildCommand.runCommandWithOptionsInternal(BuildCommand.java:132)\r\n        at com.facebook.buck.cli.BuildCommand.runCommandWithOptionsInternal(BuildCommand.java:50)\r\n        at com.facebook.buck.cli.AbstractCommandRunner.runCommandWithOptions(AbstractCommandRunner.java:133)\r\n        at com.facebook.buck.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:106)\r\n        at com.facebook.buck.cli.Command.execute(Command.java:103)\r\n        at com.facebook.buck.cli.Main.executeCommand(Main.java:596)\r\n        at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:434)\r\n        at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:861)\r\n        at com.facebook.buck.cli.Main.runMainThenExit(Main.java:880)\r\n        at com.facebook.buck.cli.Main.nailMain(Main.java:902)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:606)\r\n        at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)\r\nBUILD FAILED: Unexpected internal error (if you are using buckd, you should restart it).\r\n```\r\n\r\nOk, I need to restart buckd. How? `buck shutdown` would be nice. Fortunately I was able to find the process and kill it and it seems to have worked. (Why can't buck do this for me?)\r\n\r\n```\r\n$ uname -a && buck --version\r\nLinux <hostname> 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\nUsing buckd.\r\nbuck version 0fe4569e871fd6588f7cbfb4b1d4a14baa791a9f\r\n```"}}