Defect #30211

Crash with the message "undefined method `alias_method_chain'" when connecting to Microsoft SQL Server

Added by Go MAEDA 7 months ago. Updated 3 months ago.

Status:ConfirmedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Database
Target version:-
Resolution: Affected version:4.0.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

Related to Redmine - Defect #30285: Microsoft SQL server support is broken New

History

#1 Updated by Go MAEDA 7 months ago

  • Related to Defect #30210: Application crash when deleting an issue from issue list with SQLServer added

#2 Updated by Nigel Wilson 7 months 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.

#3 Updated by Go MAEDA 7 months ago

  • Status changed from New to Confirmed
  • Target version set to Candidate for next minor release

Confirmed the problem. Redmine crashes during startup.

#4 Updated by Go MAEDA 7 months 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

#5 Updated by Go MAEDA 7 months 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

#6 Updated by Go MAEDA 7 months ago

#7 Updated by Go MAEDA 7 months ago

  • Related to Defect #30285: Microsoft SQL server support is broken added

#8 Updated by Go MAEDA 7 months ago

  • Related to deleted (Defect #30210: Application crash when deleting an issue from issue list with SQLServer)

#9 Updated by Go MAEDA 7 months ago

#10 Updated by Go MAEDA 3 months ago

  • Target version deleted (Candidate for next minor release)

Also available in: Atom PDF