お疲れ様です!今更 Redmine 2.6 ですか?って感じですが、現在運用しているのがこのバージョンで、これのテスト環境を作るついでにメモ書きしておきます。
ダウンロード
Bitnami のを使います。
Redmine ChangeLog で 2.6 の最終バージョンを確認してダウンロードします。
https://downloads.bitnami.com/files/stacks/redmine/2.6.10-4/bitnami-redmine-2.6.10-4-windows-installer.exe
インストール
ダウンロードした bitnami-redmine-2.6.10-4-windows-installer.exe を実行してインストールします。
データベースで使用する言語を日本語にして「次へ」で進みます。
ここではメール送信は使わないのでチェック無しとし「次へ」で進みます。
Bitnami クラウドホスティングは使わないのでチェック無しとして「次へ」で進みます。
ファイアウォールの設定が行われるので「アクセスを許可する」で進みます。
既に使用中のポートがあるとき
既に使用中のポートがあるときはウィザードで入力を求められるので別のポートを割り当てます。
Web サーバーのポート
Web サーバーの SSL ポート
MySQL のポート
コマンド実行環境の設定
プラグインをインストールするときはコマンドプロンプトを使うのですがそのままだと使えないので調整します。
gem update
インストール直後のままだと SSL のエラーにより https 接続ができないので、gem をアップデートして回避します。
スタートメニューから「Bitnami Redmine Stack を使用する」を実行してカレントディレクトリを変更します。
Microsoft Windows [Version 10.0.18362.418]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Bitnami\redmine-2.6.10-4>cd apps\redmine\htdocs
bundle install を実行してみるとエラーとなります。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>bundle install --without development test --no-deployment
Fetching source index from https://rubygems.org/
Retrying source fetch due to error (2/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Retrying source fetch due to error (3/3): Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most
likely your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without
using SSL, edit your Gemfile sources and change 'https' to 'http'.
gem のバージョンを確認するとちょっと古すぎます。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem --version
2.2.5
gem のバージョンを少し(2.7.6)だけ上げます。
このとき、ファイアウォールの設定を要求されるので「アクセスを許可する」で進みますが SSL エラーとなります。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem update --system 2.7.6
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
http 接続でインストールするように http の接続先を追加します。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --add http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] y
http://rubygems.org/ added to sources
https の接続先を削除します。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --list
*** CURRENT SOURCES ***
http://rubygems.org/
再度 gem のバージョンを上げます。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem update --system 2.7.6
Updating rubygems-update
Fetching: rubygems-update-2.7.6.gem (100%)
Successfully installed rubygems-update-2.7.6
Parsing documentation for rubygems-update-2.7.6
Installing ri documentation for rubygems-update-2.7.6
Installing darkfish documentation for rubygems-update-2.7.6
Done installing documentation for rubygems-update after 52 seconds
Installing RubyGems 2.7.6
Bundler 1.16.1 installed
RubyGems 2.7.6 installed
Regenerating binstubs
Parsing documentation for rubygems-2.7.6
Installing ri documentation for rubygems-2.7.6
~~~~ 省略
接続先を https 接続に戻します。
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --add https://rubygems.org/
https://rubygems.org/ added to sources
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --remove http://rubygems.org/
http://rubygems.org/ removed from sources
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>gem sources --list
*** CURRENT SOURCES ***
https://rubygems.org/
C:\Bitnami\redmine-2.6.10-4\apps\redmine\htdocs>
Proxy 環境のとき
Proxy を使っている環境のときは下記の環境変数を設定しないとサイトに接続できないので先に設定します。
SET HTTP_PROXY=http://hostname:8080
SET HTTPS_PROXY=%HTTP_PROXY%
2.6 で使用しているプラグイン
ここでは使用しているプラグイン名とバージョンの一覧だけにしておきます。
clipboard_image_paste : 1.10
redmine_absolute_dates : 0.0.3
redmine_backlogs : v1.0.6
redmine_banner : 0.1.2
redmine_charts2 : 0.2.1
redmine_checklists : 3.1.10
redmine_comment_only : 0.0.1
redmine_dashboard : 2.7.1
redmine_default_custom_query : 1.1.2
redmine_estimate_timelog : 0.5.2
redmine_gantt_with_date : 0.0.1 : 2.6.x のときだけ
redmine_glossary : 0.7.0
redmine_importer : 1.2
redmine_issue_templates : 0.1.5
redmine_issues_tree : 0.0.9
redmine_knowledgebase : 3.0.7
redmine_local_avatars : 1.0.3
redmine_maintenance : 0.0.2
redmine_mattermost : 0.6
redmine_parking_lot_chart : 0.0.7
redmine_pivot_table : 0.0.7
redmine_redcarpet_formatter : 2.1 : 2.6 のときだけ?
redmine_sidebar_toc : 0.0.1
redmine_wiki_extensions : 0.6.5
redmine_work_time : 0.3.4
redmine_xls_export : 0.2.1.t10
sidebar_hide : 0.0.7