Project

General

Profile

Actions

Defect #30211

closed

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

Added by Go MAEDA about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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 brokenClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA about 6 years ago

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

Updated by Nigel Wilson about 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.
Actions #3

Updated by Go MAEDA about 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.

Show

Actions #4

Updated by Go MAEDA about 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

Actions #5

Updated by Go MAEDA about 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
Actions #6

Updated by Go MAEDA about 6 years ago

Actions #7

Updated by Go MAEDA almost 6 years ago

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

Updated by Go MAEDA almost 6 years ago

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

Updated by Go MAEDA almost 6 years ago

Actions #10

Updated by Go MAEDA over 5 years ago

  • Target version deleted (Candidate for next minor release)
Actions #11

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).

Actions

Also available in: Atom PDF