search for: verify_active_connections

Displaying 20 results from an estimated 27 matches for "verify_active_connections".

2011 Aug 29
0
Why is #verify_active_connections! :nodoc: ?
Hi, I''ve just got a quick question. How come ActiveRecord::ConnectionAdapters::ConnectionHandler#verify_active_connections! is marked with :nodoc: ? I understand that this is used internally (depending upon an application''s configuration?) on every request (?) to clear out old, stale database connections. All this to prevent the old, classic "MySQL server has gone away..." types of exceptions wi...
2006 Jun 08
0
undefined method `verify_active_connections!''
I''m getting this error for every test when I run rake 221) Error: test_index(WatchlistsControllerTest): NoMethodError: undefined method `verify_active_connections!'' for ActiveRecord::Base:Class D:/svn_dbi/config/../vendor/rails/activerecord/lib/active_record/base.rb:996:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/fixtures.rb:536:in `teardown'' This started happening after the...
2007 Sep 21
2
mysql storeconfigs needs mysql gem
Recently I started noticing that after running for a while puppetmaster would freeze after a client called `freshness` which would eventually result in the client getting a timeout and the client dyeing. I tracked the freeze down to the call to ActiveRecord::Base.verify_active_connections! in rails.rb on line 26. After scouring the nets I finally found: http://groups.google.com/group/activemessaging-discuss/browse_thread/thread/7cbbcd761fcb0fd8 which led me to the mongrel faq: http://mongrel.rubyforge.org/faq.html specifically the questions "Mongrel stops working if it'...
2007 Mar 18
2
mongrel timing out
...`reconnect!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:93: in `verify!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3 /lib/active_record/connection_adapters/abstract/connection_spe cification.rb:109:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord- 1.15.3 /lib/active_record/connection_adapters/abstract/connection_spe cification.rb:108:in `each_value'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_spe cification...
2007 Jul 05
6
Rails, background threads, ActiveRecord
Let''s start out without ActiveRecord, just to make the case. So, I have a calculation that will take a while to run in my Rails app. One doesn''t really want to just hold a HTTP connection open until it''s done, for a variety of obvious reasons. Even though everyone says "Rails isn''t thread safe", I can''t think of any reason this would be a
2006 Mar 07
4
Edge Rails - same code, different issues on mac and windows
...m c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from c:/software/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' ######################### On Mac, WEBrick boots, but action I hit gives me: undefined method `verify_active_connections!'' for ActiveRecord::Base:Class /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:991:in `method_missing'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' ./script/../config/../vendor/rails/railties/li...
2006 Jun 06
0
Tests broken after freeze and upgrade - undefined method
...was written for rails 1.0. Sequence of events was this: Develop Application1 on Rails 1.0 / Ruby 1.8.2 Freeze rails into vendor folder on Application1 Develop Application2 on Rails 1.1 / Ruby 1.8.4 Return to Application1 and run tests, every test fails with the error "undefined method `verify_active_connections!" or in detail ... 221) Error: test_index(WatchlistsControllerTest): NoMethodError: undefined method `verify_active_connections!'' for ActiveRecord::Base:Class D:/svn_dbi/config/../vendor/rails/activerecord/lib/active_record/base.rb:996:in `method_missing'' c:/ruby/l...
2006 May 25
5
Application stops working over night: (Errno::EPIPE (Broken pipe)) is the error
...ve_record/connection_adapters/mysql_adapter.rb:147:in `active?'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /vendor/rails/railties/lib/dispatcher.rb:70:in `prepare_application'' /vendor/rails/railties/lib/dispatcher.rb:37:in `disp...
2007 Dec 07
0
Errno::ECONNRESET (Connection reset by peer):
...`active?'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:70:in `prepare_application'' /u...
2006 Jul 31
0
rescue_action_in_public useless to capture low level errors
...iverecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' /Applications/__my/__dev/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /Applications/__my/__dev/Locomotive2/Bundles/rails112.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /Applications/__my/__dev/Locomotive2/Bundles/rails11...
2009 Mar 03
6
Rails 2.2.2 - Mysql::Error: MySQL server has gone away
My app consists of receiving emails with image attachments from its users so I have been employing the MMS2R gem and Fetcher. Every 60 seconds the app goes to the email server to fetch emails. Under Rails 2.1.1 things worked fine - when I received an email, the email was fetched, parsed and saved to the database. However I needed to upgrade to Rails 2.2.2 for unrelated reasons and now I get the
2008 Sep 26
2
Preventing Mongrel/Mysql Errno::EPIPE exceptions
I have a rails app serving up XML on an infrequent basis. This is being run with mongrel and mysql. I''ve found that if the app does not get exercised for longer than a few hours it goes dead ("Lost Connection to MySQL") and starts throwing Errno::EPIPE errors. It seems that the mysql connection gets timed out for inactivity or something like that. It can be restarted with
2006 Jun 07
2
fcgi,lighty mysql database problem
...ve_record/connection_adapters/mysql_adapter.rb:147:in `active?'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' Charlie Bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrat...
2007 Jul 18
6
Yet another "mongrel dying daily" case
...`reconnect!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract_adapter.rb:93:in `verify!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:109:in `verify_active_connections!'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:108:in `each_value'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:...
2006 Sep 25
8
mongrel.pid disappearing
Hi to everybody, This my first post on the list. I''m a newby of mongrel & rails, I''ve deployed my first project and everything seems to work fine, the only problem I have is the following: After about 1 or 2 days of the mongrel_rails daemon running the mongrel.pid in the log directory disappears, the mongrel process is still there running but doesn''t respond
2006 Jun 19
1
server crash log
....rb:164:in `reconnect!'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' /usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `verify_active_connections!'' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:70:in `prepare_application'' /usr/lib/ruby/gem...
2007 Nov 07
4
MySQL timeout value (was: mongrel - monit issue)
At 03:24 PM 11/7/2007, mongrel-users-request at rubyforge.org wrote: > > Thanks for this Kirk. Yep, I was using 14400. I''m switching this > to > > 2 weeks: 1209600 and we''ll see if any further restarts are needed > by > > monit. > >I''ve always wondered why 14400 is the number that is always passed >around when talking about extending
2008 Feb 20
0
How to connect multiple databases's users/roles
Hi. I''m trying to authenticate users against database''s user/roles (PostgreSql), instead use an almighty user set in database.yml Can i use ActiveRecord::Base.establish_conection() method? And is this related whit ActiveRecord::Base.allow_concurrency = true and ActiveRecord::Base.verify_active_connections? I know about issues related with this point (Katana Suicide Concurrency), but I really need connect each system''s user as single database user/role. I think this must be able to do. Thanks. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ Y...
2007 Jan 09
0
Production Mode with SCGI
...b:164:in `reconnect!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract_adapter.rb:85:in `verify!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:99:in `verify_active_connections!'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in `each_value'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/connection_adapters/abstract/connection_specification.rb:98:in...
2006 Mar 07
12
Edge Rails doesn''t work for my app
My app was fine before "rake freeze_edge" but after, I can no longer boot up webrick. I''m on Win Xp MySql backend and this is what I get => Booting WEBrick... ./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/ker nel/agnostics.rb:7:in ``'': Exec format error - rake tmp:create (Errno::ENOEXEC) from