# Cannot start Rails 2.3.4 app with Passenger

**URL:** <https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099>\
**Category:** Deployment\
**Created:** [May 24, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099 "2010-05-24T15:47:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrismalek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/6de8d8/32.png) [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Post date:** [May 24, 2010, 3:47pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099/1 "2010-05-24T15:47:05Z")

</div>

I’m having a heck of a time trying to get my app to start. What is odd  
is that I had a Rails 2.0.2 app running on the same server. I upgraded  
everything and the app works great in development with Rails 2.3.5.

I’m getting this error:

uninitialized constant error: MysqlSession

The only way I can clear that error is if I include “require  
‘mysql\_session’” in config/environment.rb.

When I restart the app and reload the page, I get a new error:

uninitialized constant error: AbstractSession

I do the same thing as the previous class. Restart, reload and it then  
presents me with the same error and now with one of my app’s models  
User!

Why could ruby and passenger find my 2.0.2 Rails app, but not my Rails  
2.3.5 app?

Any ideas?

Thanks,

Chris

---

<div class="post-metadata">

**Author:** ![chrismalek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/6de8d8/32.png) [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Post date:** [May 24, 2010, 5:06pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099/2 "2010-05-24T17:06:44Z")

</div>

If I try to run “rake script/console”, it complains about the same  
issues. It does not recognize any of my app’s models or plugins.

For some reason it is skipping over initializing all of my models and  
plugins. These, of course, are very critical to running the app! I’m  
stumped.

---

<div class="post-metadata">

**Author:** ![chrismalek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/6de8d8/32.png) [@chrismalek](https://www.ruby-forum.com/u/chrismalek)\
**Post date:** [May 24, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/cannot-start-rails-2-3-4-app-with-passenger/189099/3 "2010-05-24T21:02:15Z")

</div>

> Why could ruby and passenger find my 2.0.2 Rails app, but not my Rails  
> 2.3.5 app?

Maybe you need to vendor your rails version?  
-rp
