We've seen this error pop up when either a mongrel or the ferret_server
wasn't killed/restarted properly.
Check your processes to see if you see something that doesn't look right
(process is older than it should be, etc.):
ps -f -u [userid]
should list out your processes. (I say should since I've seen the 'ps'
variants take all different flags. This one works in our Linux setup.)
Long
On Tue, Jul 15, 2008 at 4:22 PM, eric <[EMAIL PROTECTED]> wrote:
>
> Still getting the 500 error. I am on shared hosting, but am looking
> into VPN or another solution.
>
> Here's the log:
>
> Processing HomeController#index (for 66.68.31.87 at 2008-07-15
> 16:19:39) [GET]
> Session ID:
> BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo
> %0ASGFzaHsABjoKQHVzZWR7AA%3D
> %3D--9727059e619fb4019605736a0465bf05c8231391
> Parameters: {"action"=>"index", "controller"=>"home"}
>
>
> LoadError (Expected /insoshi/app/models/person.rb to define Person):
> /vendor/rails/activesupport/lib/active_support/dependencies.rb:
> 249:in `load_missing_constant'
> /vendor/rails/activesupport/lib/active_support/dependencies.rb:
> 453:in `const_missing'
> /vendor/rails/activesupport/lib/active_support/dependencies.rb:
> 465:in `const_missing'
> /vendor/rails/activesupport/lib/active_support/dependencies.rb:
> 260:in `load_missing_constant'
> /vendor/rails/activesupport/lib/active_support/dependencies.rb:
> 469:in `const_missing'
> /app/controllers/home_controller.rb:7:in `index'
> /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
> `send'
> /vendor/rails/actionpack/lib/action_controller/base.rb:1158:in
> `perform_action_without_filters'
> /vendor/rails/actionpack/lib/action_controller/filters.rb:697:in
> `call_filters'
> /vendor/rails/actionpack/lib/action_controller/filters.rb:689:in
> `perform_action_without_benchmark'
> /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
> 68:in `perform_action_without_rescue'
> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
> /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:
> 68:in `perform_action_without_rescue'
> /vendor/rails/actionpack/lib/action_controller/rescue.rb:199:in
> `perform_action_without_caching'
> /vendor/rails/actionpack/lib/action_controller/caching.rb:678:in
> `passenger_orig_perform_action'
> /vendor/rails/activerecord/lib/active_record/connection_adapters/
> abstract/query_cache.rb:33:in `cache'
> /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in
> `cache'
> /vendor/rails/actionpack/lib/action_controller/caching.rb:677:in
> `passenger_orig_perform_action'
> /dh/passenger/lib/passenger/railz/request_handler.rb:53:in
> `perform_action'
> /vendor/rails/actionpack/lib/action_controller/base.rb:524:in
> `send'
> /vendor/rails/actionpack/lib/action_controller/base.rb:524:in
> `process_without_filters'
> /vendor/rails/actionpack/lib/action_controller/filters.rb:685:in
> `process_without_session_management_support'
> /vendor/rails/actionpack/lib/action_controller/
> session_management.rb:123:in `process'
> /vendor/rails/actionpack/lib/action_controller/base.rb:388:in
> `process'
> /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> 171:in `handle_request'
> /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> 115:in `dispatch'
> /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
> 126:in `dispatch_cgi'
> /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
> `dispatch'
> /dh/passenger/lib/passenger/railz/request_handler.rb:38:in
> `process_request'
> /dh/passenger/lib/passenger/abstract_request_handler.rb:163:in
> `main_loop'
> /dh/passenger/lib/passenger/railz/application_spawner.rb:307:in
> `start_request_handler'
> /dh/passenger/lib/passenger/railz/application_spawner.rb:276:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/utils.rb:165:in `safe_fork'
> /dh/passenger/lib/passenger/utils.rb:163:in `fork'
> /dh/passenger/lib/passenger/utils.rb:163:in `safe_fork'
> /dh/passenger/lib/passenger/railz/application_spawner.rb:274:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/utils.rb:165:in `safe_fork'
> /dh/passenger/lib/passenger/utils.rb:163:in `fork'
> /dh/passenger/lib/passenger/utils.rb:163:in `safe_fork'
> /dh/passenger/lib/passenger/railz/application_spawner.rb:273:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `__send__'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `main_loop'
> /dh/passenger/lib/passenger/abstract_server.rb:168:in
> `start_synchronously'
> /dh/passenger/lib/passenger/abstract_server.rb:135:in `start'
> /dh/passenger/lib/passenger/abstract_server.rb:112:in `fork'
> /dh/passenger/lib/passenger/abstract_server.rb:112:in `start'
> /dh/passenger/lib/passenger/railz/application_spawner.rb:177:in
> `start'
> /dh/passenger/lib/passenger/railz/framework_spawner.rb:270:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/railz/framework_spawner.rb:263:in
> `synchronize'
> /dh/passenger/lib/passenger/railz/framework_spawner.rb:263:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `__send__'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `main_loop'
> /dh/passenger/lib/passenger/abstract_server.rb:168:in
> `start_synchronously'
> /dh/passenger/lib/passenger/abstract_server.rb:135:in `start'
> /dh/passenger/lib/passenger/abstract_server.rb:112:in `fork'
> /dh/passenger/lib/passenger/abstract_server.rb:112:in `start'
> /dh/passenger/lib/passenger/railz/framework_spawner.rb:87:in
> `start'
> /dh/passenger/lib/passenger/spawn_manager.rb:224:in
> `spawn_rails_application'
> /dh/passenger/lib/passenger/spawn_manager.rb:219:in `synchronize'
> /dh/passenger/lib/passenger/spawn_manager.rb:219:in
> `spawn_rails_application'
> /dh/passenger/lib/passenger/spawn_manager.rb:122:in
> `spawn_application'
> /dh/passenger/lib/passenger/spawn_manager.rb:253:in
> `handle_spawn_application'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `__send__'
> /dh/passenger/lib/passenger/abstract_server.rb:317:in `main_loop'
> /dh/passenger/lib/passenger/abstract_server.rb:168:in
> `start_synchronously'
> /dh/passenger/bin/passenger-spawn-server:46
>
> Rendering /insoshi/public/500.html (500 Internal Server Error)
>
>
>
>
> On Jul 15, 10:19 am, "Long Nguyen" <[EMAIL PROTECTED]> wrote:
> > You need to explicitly specify the production runtime in the rake install
> > task:
> >
> > rake install RAILS_ENV=production
> >
> > Without the RAILS_ENV setting, it'll default to the development
> > environment/database. Our installation instructions are geared more for
> > installing Insoshi in a local development environment so they don't
> mention
> > that setting.
> >
> > For future Insoshi updates that include a migration, you'll also need to
> > specify the runtime:
> >
> > rake db:migrate RAILS_ENV=production
> >
> > Hopefully this gets you up and running. Let me know if you run into any
> > other issues on Dreamhost.
> >
> > Long
> >
> >
> >
> > On Tue, Jul 15, 2008 at 3:33 AM, eric <[EMAIL PROTECTED]> wrote:
> >
> > > I'm getting a 500 error in production mode.
> >
> > > I know rails is working cause I get an Insoshi error page (500)
> >
> > > uploaded Tar to Dreamhost
> > > unzip tar -xvf [filepath.tar]
> >
> > > create databases on dreamhost
> >
> > > create and update database.yml
> >
> > > rake install
> > > rake db:test:prepare
> > > rake spec
> >
> > > uncomment
> > > ENV['RAILS_ENV'] ||= 'production'
> > > in environment.rb
> >
> > > visit the page and get the 500 error page
> >
> > > the production log gave me this:
> > > ActiveRecord::StatementInvalid (Mysql::Error: Table
> > > '2ubertpro.page_views' doesn't exist: SHOW FIELDS FROM `page_views`):
> >
> > > so I checked out the database and it wasn't set up
> > > the dev db has 15 tables
> > > the test db has 15 tables
> > > the pro db has 0 tables
> >
> > > On Jul 14, 1:44 pm, "Long Nguyen" <[EMAIL PROTECTED]> wrote:
> > > > What issues are you running into?
> >
> > > > Also, if you haven't found it already, take a look at
> >
> > > >http://rails.dreamhosters.com
> >
> > > > It looks like a pretty comprehensive resource list/guide for setting
> up
> > > and
> > > > running Rails apps on Dreamhost.
> >
> > > > Long
> >
> > > > On Sun, Jul 13, 2008 at 4:31 AM, eric <[EMAIL PROTECTED]> wrote:
> >
> > > > > Has anyone been able to get Insoshi running on Dreamhost? If so,
> I'd
> > > > > love some help.
> >
> > > > --
> > > > Long Nguyen
> > > > [EMAIL PROTECTED]
> >
> > --
> > Long Nguyen
> > [EMAIL PROTECTED]
> >
>
--
Long Nguyen
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/
You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---