Rails 3.2.19 with ruby 2.1.5

27 views
Skip to first unread message

Sivakumar G

unread,
Apr 9, 2015, 10:04:41 AM4/9/15
to rubyonra...@googlegroups.com
We have a rail 3.2.19 application running on ruby 1.9.3 and passenger 3.0.19. We upgraded ruby to 2.1.5 and passenger to 4.0.57 and ran into the following issues post deployment.

1) Some of the update queires generated had 0=0 instead of actual query's where clause
2) Some of the select queries the realtion name in the where clause was missing.

Is rails 3.2 compatible with Ruby 2.1.5? 


Stewart Mckinney

unread,
Apr 9, 2015, 10:17:56 AM4/9/15
to rubyonra...@googlegroups.com
Short answer: yes. I've been running that pair for a while now on one of my apps.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/26e077c2-3b1f-48cf-81d0-4af7d4369b13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sivakumar G

unread,
Apr 9, 2015, 10:23:29 AM4/9/15
to rubyonra...@googlegroups.com
Any idea what might be the causing those weird activerecord errors?

Stewart Mckinney

unread,
Apr 9, 2015, 10:30:36 AM4/9/15
to rubyonra...@googlegroups.com
My only guess is that something inside a where() is getting garbled somehow. Are you using anything like Squeel or MetaWhere?

You might want to check the diff on your Gemfile.lock to see what gems have changed with the ruby change ( because some could have upgraded to work with 2.1 vs 1.9 ). My guess is the culprit is there.

Sivakumar G

unread,
Apr 9, 2015, 10:33:45 AM4/9/15
to rubyonra...@googlegroups.com
This seems to be happening only sometimes not always. Can this be related to Passenger upgrade? Anything related to concurrency?

Stewart Mckinney

unread,
Apr 9, 2015, 11:17:43 AM4/9/15
to rubyonra...@googlegroups.com
It may be the case that an intermediary result is failing and causing a future where query to result in the 0=0 behavior. Ruby should have very little to do with concurrency issues, if anything that would be in passenger's wheelhouse. Did your configuration change at all with the upgrade?


Stewart Mckinney

unread,
Apr 9, 2015, 11:18:05 AM4/9/15
to rubyonra...@googlegroups.com
causes*

Sivakumar G

unread,
Apr 9, 2015, 12:36:26 PM4/9/15
to rubyonra...@googlegroups.com
We failed to notice RailsAppSpawnerIdleTime that we had set to 0 in Passenger 3.0.19. Looks like it has now been replaced by PassengerMaxPreloaderIdleTime. So I guess it is now using the default value of 300s(5 min). Could this be causing the issue I described?
Reply all
Reply to author
Forward
0 new messages