Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7902 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Missing ActionController::Base::DEPRECATED_INSTANCE_VARIABLES

Reported by: samlown Assigned to: core
Priority: normal Milestone: 1.x
Component: Railties Version: edge
Severity: normal Keywords:
Cc:

Description

Hi,

After running rake rails:freeze:edge, I am unable to start up the web server. I tried creating a fresh rails application using the vender/rails binaries which exactly the same effect. The example output shown below is from mongrel, but the same effect can be seen in webrick.

sam@samslappy:/storage1/work/tmp/test$ ./script/server 
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
Exiting
/storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:477:in `const_missing': uninitialized constant ActionController::Base::DEPRECATED_INSTANCE_VARIABLES (NameError)
        from /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:160
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view.rb:25
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /storage1/work/BandWagon/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
         ... 30 levels...
        from /storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /storage1/work/tmp/test/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /storage1/work/tmp/test/vendor/rails/railties/lib/commands/server.rb:39
        from ./script/server:3

Looking at the directories of the files its depending on, it seems to be grabbing them from all over the place which I'm sure can't be right.

Additionally, I tested the same process out on another server and got exactly the same result.

I'm using the latest version of gem, 0.9.2, and recently updated the stable rails environment to 1.2.3, which is all working fine. The base distro is Ubuntu 6.10.

Cheers, sam

Change History

03/24/07 22:50:06 changed by samlown

  • status changed from new to closed.
  • resolution set to fixed.

Oh, turns out that I didn't have libopenssl-ruby1.8 installed on either my Ubuntu or Debian servers.

I discovered this after checking out an older edge revision that provided a different missing constant error that appeared on google: http://www.railsweenie.com/forums/8/topics/1284

Sorry for the noise!

sam