Richard Williams
2005-Nov-16 15:18 UTC
Rails app exception "can''t activate active support"
I have gotten several rails apps running under Apache. However today when I tried to run them I get exceptions like this in the http error_log: sh-2.05b$ tail /var/log/httpd/error_log /usr/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate'': can''t activate active support (= 1.1.1), already activated activesupport-1.2.3] (Gem::Exception) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `requi re'' from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/ dependencies.rb:214:in `require'' from /Library/WebServer/Documents/Store/Inventory/public/../config/envir onment.rb:52 from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3: in `require'' from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3 [Wed Nov 16 09:59:12 2005] [error] [client 141.129.1.98<http://141.129.1.98>] Premature end of script headers: / Anyone have any idea what this means? _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rick Williams
2005-Nov-16 17:26 UTC
Re: Rails app exception "can''t activate active support"
sales wrote:> I have gotten several rails apps running under Apache. > > However today when I tried to run them I get exceptions like this in the > http error_log: > > sh-2.05b$ tail /var/log/httpd/error_log > /usr/lib/ruby/site_ruby/1.8/rubygems.rb:144:in `activate'': can''t > activate > active > support (= 1.1.1), already activated activesupport-1.2.3] > (Gem::Exception) > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:162:in `activate'' > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `each'' > from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:161:in `activate'' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `requi > re'' > from /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/ > dependencies.rb:214:in `require'' > from /Library/WebServer/Documents/Store/Inventory/public/../config/envir > onment.rb:52 > from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3: > in `require'' > from /Library/WebServer/Documents/Store/Inventory/public/dispatch.cgi:3 > [Wed Nov 16 09:59:12 2005] [error] [client > 141.129.1.98<http://141.129.1.98>] > Premature end of script > headers: / > > Anyone have any idea what this means?Here is a little more info. I had installed the rails gem 1 or 2 weeks ago. Then yesterday, I was fooling around with some ruby code and had to download the actionrecord gem because it apparently could not find the one included with rails. Well, the actionrecord download screwed up something (path etc.?) and no rails app would then work giving the exception above. I re-installed the rails gem and now everything works fine again. -- Posted via http://www.ruby-forum.com/.