"Ruby on Rails application could not be started", app works in console and webrick.

4 views
Skip to first unread message

ojak

unread,
Apr 20, 2009, 1:21:13 PM4/20/09
to Phusion Passenger Discussions
I can't seem to get passenger to start my rails app on a new dev
server, although the app will start as console and webrick. If get
the following error message:

ActiveRecord is not missing constant Base!

Any ideas?

johannesh

unread,
Apr 20, 2009, 4:19:43 PM4/20/09
to Phusion Passenger Discussions
Does a fresh rails project and passenger work for you?

DrMark

unread,
Apr 20, 2009, 7:30:31 PM4/20/09
to Phusion Passenger Discussions
Aloha,

This may not be your issue, but it could be a gem issue. Are you
certain that the version of Ruby & Ruby gems used by the app are the
same as the versions when you log in via the console? Have you
installed more than one version of Ruby? How did you install Ruby?
What OS?

Just because your app works fine when you type script/server in the
console doesn't mean that Passenger will work. Passenger may be using
a different version of Ruby (particularly if you are using a
deployment tool like Capistrano). I have seen this several times on
Linux boxes where I have installed several versions of Ruby.

If you are *positive* that you have the gems installed and that your
app is using the same version of Ruby as your console, then start
looking elsewhere. For example, is that the exact error message?

Good luck,

DrMark
Message has been deleted

ojak

unread,
Apr 21, 2009, 12:32:37 PM4/21/09
to Phusion Passenger Discussions
Turns out it was my installation of Ruby Enterprise. I reinstalled
Ruby (1.8.7 and then all the gems), and it worked great.

Thanks for the help.
Reply all
Reply to author
Forward
0 new messages