Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Waiting for Theine worker hangs forever #17

Closed
warbot opened this issue Jun 1, 2015 · 5 comments
Closed

Waiting for Theine worker hangs forever #17

warbot opened this issue Jun 1, 2015 · 5 comments

Comments

@warbot
Copy link

warbot commented Jun 1, 2015

OS X 10.10.3, Screen version 4.02.01 (GNU) 28-Apr-14, jruby 1.7.19 (1.9.3p551), java version "1.8.0_20"

Starting a server:

theine_server
(spawn 8990)
(spawn 8991)

Command never executes and hangs forever:

theine console
Waiting for Theine worker.........................................

Inside "screen" everything works fine:

screen -S "theine8990"
rails console # opens a console
@MarkFreebairn
Copy link

I am also seeing this, when I start a server using theine_server I only see it spawning the processes, but it never actually seems to create the workers.

I am using jruby 1.7.19 and rails 4.2.0, on CentOS 6.

@warbot
Copy link
Author

warbot commented Jun 1, 2015

@MarkFree1990, yup

uri=druby://localhost:baseport
dro=DRbObject.new_with_uri(uri)
dro.get_port # => returns nil

@warbot
Copy link
Author

warbot commented Jun 3, 2015

ok, I figure it out.
This happens when

which ruby #=> points to ruby
which jruby #=> points to jruby

and then you have your gems installed under jruby, and it's also first in your path.

If you make $(which ruby) to point to jruby -- it will work.
Otherwise, you may use rvm to get both jruby and ruby work as gem expects.

Parallel_test gem has also this kind of stuff.

@warbot warbot closed this as completed Jun 4, 2015
@MarkFreebairn
Copy link

I changed ruby to point to jruby but this did not fix the issue for me, and even if it had of it would not have been an ideal fix as I switch between ruby and jruby often.

I am using rbenv to manage my versions so my path contains a shim anyway.

@dennissivia
Copy link

I am experiencing the same issue as @MarkFree1990 .
The Server is spawning, but no workers are there and client connection hang forever. ...
Thus it is totally broken in my case. Dont know that others do differently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants