OSX10.10のRedmineを3.0.0に更新した

OSX 10.10 (Yosetmite)にて、Redmineを2.6.1から3.0.0に更新した。

環境

問題

  • bundlerにてエラーが発生した。

詳細

  • いつもの様に更新を試みるが、(これまたいつもの様に)エラーが発生してしまう。今回はbundlerだ。
$ bundle install
`x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18,
:ruby_19, :ruby_20, :mri, :mri_18, :mri_19, :mri_20, :rbx, :jruby, :mswin, :mingw,
:mingw_18, :mingw_19, :mingw_20]

原因

  • "x64_mingw"とは一体どういう意味だろう?原因を調べたところ、既に問題として報告されていた。

":x64_mingw" is defined in bundler 1.4.0.rc.1.
...
Bundler did not release 1.4.0, so do we need to suggests using 1.5.0?

Defect #19172: "gem update bundler" suggestion for "`x64_mingw` is not a valid platform" - Redmine
  • 確認したところ、確かに少々古いバージョンのbundlerが使われていたようだ。
$ bundle --version
Bundler version 1.3.5
  • コメント欄の指示に従って、bundlerを更新してみる。

And could you try this command?
$ gem update bundler

Defect #19172: "gem update bundler" suggestion for "`x64_mingw` is not a valid platform" - Redmine
$ sudo gem update bundler
Password:
Updating installed gems
Updating bundler
Fetching: bundler-1.8.3.gem (100%)
Successfully installed bundler-1.8.3
Parsing documentation for bundler-1.8.3
Installing ri documentation for bundler-1.8.3
Installing darkfish documentation for bundler-1.8.3
Gems updated: bundler
  • 今度は無事にインストールが成功した。
$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
...
Bundle complete! 25 Gemfile dependencies, 62 gems now installed.
  • この後の更新手順は前回までと同様で、nokogiriやrmagickでも特に問題は発生しなかった。

プラグイン

redmine_issues_summary_graph
$ rake db:migrate RAILS_ENV="production" 
An error occurred while loading the routes definition of redmine_issues_summary_graph plugin (/Library/Server/Web/Data/redmine-3.0.0/plugins/redmine_issues_summary_graph/config/routes.rb): You should not use the `match` method in your router without specifying an HTTP method.
If you want to expose your action to both GET and POST, add `via: [:get, :post]` option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action" 
  Do: get "controller#action".
  • 既に3.0.0向けの変更は入っているようだが、手元の環境では動作しなかった。

Redmine 3.0.0 support

Releases · suer/redmine_issues_summary_graph · GitHub
redmine_wiki_extensions
  • ページ表示時にエラーが発生したので、redmine_wiki_extensions を外した。
Started GET "/redmine/issues/622" for fe80::2a37:37ff:fe1a:2520 at 2015-03-02 22:35:32 +0900
Processing by IssuesController#show as HTML
  Parameters: {"id"=>"622"}
  Current user: rabbit2go (id=2)
  Rendered issues/_action_menu.html.erb (12.3ms)
  Rendered issue_relations/_form.html.erb (3.1ms)
  Rendered issues/_relations.html.erb (19.8ms)
  Rendered issues/_history.html.erb (173.4ms)
  Rendered issues/_action_menu.html.erb (3.3ms)
  Rendered issues/_form_custom_fields.html.erb (0.7ms)
  Rendered issues/_attributes.html.erb (241.9ms)
  Rendered plugins/redmine_wiki_extensions/app/views/wiki_extensions/_issues_form_details_bottom.html.erb (13.0ms)
  Rendered issues/_form.html.erb (303.0ms)
  Rendered issues/_edit.html.erb (308.4ms)
  Rendered issues/show.html.erb within layouts/base (934.0ms)
Completed 500 Internal Server Error in 1324ms
  • 既に3.0.0向けの変更は加わっているので、間もなく出て来そうだ。

Compatible with Redmine3

haru_iida / redmine_wiki_extensions / Commits — Bitbucket
  • Rails 4移行に伴う問題の原因は、下記に説明されていた。

Rails 4に移行して発生するエラーで多いのは、config/routes.rbにおいて、match行に:via指定が省略されている行です。Rails 4から、:via指定が必須になっています。

Redmine 3.0.0とプラグイン動作メモ - torutkのブログ