-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rearview::MonitorService crashing on startup #43
Comments
Hmmm interesting. I feel like I recently saw one of those in our system as well. I will see if I can get someone from the rearview team to take a look. Thanks for reporting and good to hear from you @tarcieri ;) |
Hey there @tarcieri! I didn't see this before, I guess my notification settings are wrong. Are you still having this problem? |
I am indeed! Still trying to figure it out too o_O I'll be taking another look at it today and can get you more info then. I was hoping there would be some other associated exception, but I'm not seeing it in the logs. |
Ok. Double check your config/initializers/rearview.rb as well, I think I saw something like this a long time ago and it ended up being configuration related. |
It quite likely is, I'm just not sure what exactly is misconfigured |
This might catch the problem: $ rake RAILS_ENV=production rearview:config:verify |
Will give that a try, thanks! |
Well, that found a few things wrong, but now I get:
And it's still crashing with the same error. |
Is your jdk and jruby version on the build matrix: |
We're using this:
I can try upgrading JRuby. In the meantime I can provide another pointer... things seem to be going amiss here: https://github.com/livingsocial/rearview-engine/blob/master/lib/rearview/monitor_service.rb#L25 Here, It seems that even trying to reference (i.e. print out or call)
Very strange... |
Checking for livingsocial/rearview#43
Very strange! I seem to be guarding against nil and an empty [] correctly in the MonitorSupervisor. Which JDK (oracle, openjdk,etc)? |
@tarcieri it does look like the build fails with jruby-1.7.2 (with openjdk{6,7}). It could be coincidence -- I'll have to dig more into it later https://travis-ci.org/livingsocial/rearview-engine/builds/27228811 |
I seem to recall numerous bugs in earlier versions of JRuby and Celluloid ;). I'll try updating JRuby. |
Cool...let me know how it goes. If its still busted I'll keep working with you on it until we figure it out. |
Quick update: looks like upgrading JRuby fixed the problem. We're still having some issues but they're unrelated to this. |
👍 I'm working on a vagrant setup, which will make it at least easier for people to test drive rearview. |
Hello there! I seem to be facing a problem of my own design as Rearview::MonitorService is crashing on startup with Celluloid::DeadTaskError as the only clue:
I'm pretty surprised Celluloid isn't logging some other error here. Also if I manually try to run the same code from the Rails console, it works, which is rather perplexing.
Anyway, as Celluloid's author I really hate seeing hard-to-debug scenarios like this and sure would love to make it easier to figure out what's wrong, particularly since this problem is a roadblock for me personally! 😄
The text was updated successfully, but these errors were encountered: