Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning with ActiveRecord 7.1.2 #2516

Closed
jscheid opened this issue Dec 21, 2023 · 0 comments
Closed

Deprecation warning with ActiveRecord 7.1.2 #2516

jscheid opened this issue Dec 21, 2023 · 0 comments

Comments

@jscheid
Copy link

jscheid commented Dec 21, 2023

Question 1: What is the problem?

Deprecation warning with ActiveRecord 7.1.2:

DEPRECATION WARNING: Calling `ActiveRecord::Base.clear_all_connections! is deprecated. Please call the method directly on the connection handler; for example: `ActiveRecord::Base.connection_handler.clear_all_connections!`. (called from clear_all_connections! at /usr/local/bundle/gems/activerecord-7.1.2/lib/active_record/connection_handling.rb:330)
/usr/local/bundle/gems/activerecord-7.1.2/lib/active_record/connection_handling.rb:330:in `clear_all_connections!'
/usr/local/bundle/gems/passenger-6.0.19/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:319:in `before_handling_requests'
<SNIP>

I don't think more context is necessary because I can see in your stable-6.0 and master branches that this deprecated method is being called.

Warnings are only warnings but it would be nice if startup was less noisy. Thanks!

Question 2: Passenger version and integration mode:

open source 6.0.19/nginx

Question 3: OS or Linux distro, platform (including version):

N/A

Question 4: Passenger installation method:

Your answer:
[x] RubyGems + Gemfile
[ ] RubyGems, no Gemfile
[ ] Phusion APT repo
[ ] Phusion YUM repo
[ ] OS X Homebrew
[ ] source tarball
[ ] Other, please specify:

Question 5: Your app's programming language (including any version managers) and framework (including versions):

Ruby 3.2.2, Rails 7.1.2

Question 6: Are you using a PaaS and/or containerization? If so which one?

N/A

Question 7: Anything else about your setup that we should know?

N/A

@CamJN CamJN closed this as completed in d2a4ada Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant