Defect #30211
closedCrash with the message "undefined method `alias_method_chain'" when connecting to Microsoft SQL Server
0%
Description
The problem has been reported in #30209#note-1 by Nigel Wilson.
I ran into this issue as well. I made the following changes in the GemFile to meet all the dependencies. However, I am using MS Sql Server, so you will need to find the corresponding adapter for mysql.
Change: gem "rails", "5.2.2"
To: gem "rails", :git => "https://github.com/rails/rails.git", :branch => "5-2-2"Change: gem "tiny_tds", "~> 1.0.5"
To: "tiny_tds", "~> 2.1.2"Change: gem "activerecord-sqlserver-adapter",
To: gem "activerecord-sqlserver-adapter", :git => "https://github.com/rails-sqlserver/activerecord-sqlserver-adapter.git",
Related issues
Updated by Go MAEDA almost 6 years ago
- Related to Defect #30210: Application crash when deleting an issue from issue list with SQLServer added
Updated by Nigel Wilson almost 6 years ago
Hi Go MAEDA,
I will try to get you a crash log for this in a day or two. Note that this error (undefined method `alias_method_chain') occurred when trying to install Redmine v4 from git master as an upgrade from v2.5.2. Requirements (Ruby 2.5 and Rails 5.2.2) were confirmed installed.
- Install Redmine via Helicon instructions: http://www.helicontech.com/articles/installing-redmine-on-windows-in-production/ , but do not click Finish.
- replace /ruby19 folder with previously installed version of ruby.
- Go into the redmine web folder created by the Helicon tool and edit the deploy.rb file:
- set the REDMINE variable to the version of redmine you want to install. e.g.: REDMINE = "master"
- prepend all the rake commands with bundle exec. .e.g: bundle exec rake --trace db:create
- Go back to Helicon installer and click finish.
Updated by Go MAEDA almost 6 years ago
- Status changed from New to Confirmed
- Target version set to Candidate for next minor release
Confirmed the problem. Redmine crashes during startup.
Updated by Go MAEDA almost 6 years ago
We have to wait for the release of the latest version of activerecord-sqlserver-adapter that supports Rails 5.2 to resolve this issue.
https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/issues/636
Updated by Go MAEDA almost 6 years ago
- Subject changed from Crash when using Microsoft SQL Server to Crash with the message "undefined method `alias_method_chain'" when connecting to Microsoft SQL Server
Updated by Go MAEDA almost 6 years ago
- Related to Feature #23630: Migrate to Rails 5.2 added
Updated by Go MAEDA almost 6 years ago
- Related to Defect #30285: Microsoft SQL server support is broken added
Updated by Go MAEDA almost 6 years ago
- Related to deleted (Defect #30210: Application crash when deleting an issue from issue list with SQLServer)
Updated by Go MAEDA almost 6 years ago
- Related to deleted (Feature #23630: Migrate to Rails 5.2)
Updated by Go MAEDA over 5 years ago
- Target version deleted (
Candidate for next minor release)
Updated by Go MAEDA over 4 years ago
- Status changed from Confirmed to Closed
- Resolution set to Fixed
The issue is going to be fixed in the upcoming Redmine 4.1.1 and 4.0.7 (#30285).