Heroku and Ruby 2.0.0 - the eventmachine error!

Sucked in by the promise of running Ruby 2 with complete backward compatibility, I decided to try running it with this blog on Heroku. Everything worked on my dev machine. A quick push up to Heroku and…

2013-02-28T14:07:53+00:00 app[web.1]: » Listening on, CTRL+C to stop
2013-02-28T14:07:53+00:00 app[web.1]: » Maximum connections set to 1024
2013-02-28T14:07:53+00:00 app[web.1]: » Thin web server (v1.5.0 codename Knife)
2013-02-28T14:07:54+00:00 app[web.1]: ruby: symbol lookup error: /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.0/lib/rubyeventmachine.so: undefined symbol: rb_enable_interrupt
2013-02-28T14:07:55+00:00 heroku[web.1]: Process exited with status 127
2013-02-28T14:07:55+00:00 heroku[web.1]: State changed from starting to crashed

Oh dear. I tracked down this blog posthttp://platypus.belighted.com/blog/2013/01/21… which also had the error, but they got it to work with a non-eventmachine server. I felt like trying out Puma, installed it, and Bob’s your uncle.

I’ve no idea why eventmachine works locally but not on Heroku, but there you go, whatever works. Hopefully this blog post now increases the chances of someone finding the answer by 100% :)

Added on:
Last updated:
  • Ruby v2.0.0
  • Tags