m2ym / rsense

225 stars 11 forks source link

Can't read from socket on Linux #1

Closed d1rewolf closed 14 years ago

d1rewolf commented 14 years ago

With ruby 1.8.7 on Ubuntu Karmic, I run "bin/rsense version". It starts the webrick daemon, or at least appears to, because although it drops me back to the command line with no version string, as I would expect, I can see the process is still running in the background:

➜ rsense git:(master) ✗ ps -ef | grep ruby me 4964 1 0 16:24 ? 00:00:00 ruby bin/rsense version

If I now run "rsense version" again, it gets hung up trying to read from the socket, on the line:

while l = sock.gets

Any ideas what I should do?

tcamargo commented 14 years ago

Same here, but with ruby 1.9.1p378. The java process becomes defunct. No error messages are printed.

5542 ? Sl 0:00 ruby bin/rsense --debug version 5545 ? Z 0:00 _ [java]

tcamargo commented 14 years ago

It seems you need to build rsense jar. Just install apache-ant and build the project. I guess we need to update the documentation and/or ship rsenre.jar with stable releases.

d1rewolf commented 14 years ago

Yes, this fixed it. Thanks!

m2ym commented 14 years ago

Thanks tcamargo! And sorry for late response!