buck run is awesome, but unfortunately has a fatal quirk for client server testing that it doesn't release the lock before running the command.
$ buck run //myproject/myserver
[-] PROCESSING BUCK FILES...FINISHED 1.6s [100%]
[-] DOWNLOADING... (9.22 MB/S AVG, TOTAL: 2.08 MB, 146 Artifacts)
[-] BUILDING...FINISHED 13.3s [100%] (948/948 JOBS, 85 UPDATED, 43 [4.5%] CACHE MISS)
I0513 11:23:30.317106 1600984 Server.cpp:66] starting server on port http:8080
I0513 11:23:30.318970 1600987 Server.cpp:32] on server start
$ buck run //myproject/myclient -- -url http://localhost:8080
Daemon is busy, waiting for it to become free...
Daemon is busy, waiting for it to become free...
As a workaround, you can use NO_BUCKD=1 buck run ... (though it's a bit slower).
a271a23a24a63e88decba55e176d623717628719
Most helpful comment
As a workaround, you can use
NO_BUCKD=1 buck run ...(though it's a bit slower).