- 1. 概要
- 2. 現象
- 3. 調査
- 4. 対策
1. 概要
新規に、「Redmine」の環境を構築しました。
昨日作成して、ユーザ・プロジェクトを作成するとことまで、うまくいきました。
ところが、今日(2024年9月6日)になって、接続しようとすると、いきなり、うまくいかない。
本ページは、下記のサイトを参考にさせていただきました。
「Gemのインストール、バージョン指定など #Gem」
2. 現象
トップ画面へ、アクセスして、ログイン画面が開かれると思いきや・・・。

3. 調査
/usr/local/www/redmine/log/production.log
には、それらしきものはない。
探して。
/var/log/www/passenger.log
にそれらしきものが・・・(「passenger」ログは、上記に出力しております)。
[ E 2024-09-06 10:26:01.0624 32172/Th age/Cor/Con/CheckoutSession.cpp:284 ]: [Client 5-1] Cannot checkout session because a spawning error occurred. The identifier of the error is 608e4fc3. Please see earlier logs for details about the error.
App 32638 output: Error: The application encountered the following error: Could not find rexml-3.3.4, concurrent-ruby-1.3.3, minitest-5.24.1 in locally installed gems (Bundler::GemNotFound)
App 32638 output: /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.14/lib/bundler/definition.rb:594:in 'materialize'
App 32638 output: /usr/local/lib/ruby/gems/3.2/gems/bundler-2.5.14/lib/bundler/definition.rb:193:in 'specs'
・・・ 略 ・・・
App 32638 output: /usr/local/lib/ruby/gems/3.2/gems/passenger/src/helper-scripts/rack-preloader.rb:30:in '<module:PhusionPassenger>'
App 32638 output: /usr/local/lib/ruby/gems/3.2/gems/passenger/src/helper-scripts/rack-preloader.rb:29:in '<main>'
[ E 2024-09-06 10:30:01.4580 32172/T1p age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /usr/local/www/redmine: The application encountered the following error: Could not find rexml-3.3.4, concurrent-ruby-1.3.3, minitest-5.24.1 in locally installed gems (Bundler::GemNotFound)
Error ID: e31f59b7
Error details saved to: /tmp/passenger-error-BPmXFC.html
[ E 2024-09-06 10:30:01.4601 32172/Tj age/Cor/Con/CheckoutSession.cpp:284 ]: [Client 6-1] Cannot checkout session because a spawning error occurred. The identifier of the error is e31f59b7. Please see earlier logs for details about the error.
詳細は、「/tmp/passenger-error-BPmXFC.html」とのことで。
クライアントへ持ってきて(パーミッションが、「root」のみにしか与えられていないので、ちょっと苦労しましたが)。
ブラウザで見てみると(さらしていいんだろうか?)。


「Exception Message」中のを見ると。
Could not find rexml-3.3.4, concurrent-ruby-1.3.3, minitest-5.24.1 in locally installed gems (Bundler::GemNotFound)
と書いちょるので、これらのモジュールがたりんのじゃろうか?
インストーラ済の「ports」を。
portversion -v | grep キーワード
で見てみると。
rubygem-rexml-3.3.5 = up-to-date with port
rubygem-concurrent-ruby-1.3.4 = up-to-date with port
rubygem-minitest-5.25.1 = up-to-date with port
となっちょる。
バージョン違い?
ちなみに、過去にインストールして運用しているものを見ると。
なんだか、予定しているバージョンのものに見えます。
rubygem-rexml-3.3.4 = up-to-date with port
rubygem-concurrent-ruby-1.3.3 = up-to-date with port
rubygem-minitest-5.24.1 = up-to-date with port
4. 対策
「ports」のものが、「Redmine」でしか使われていないならば、下記の手順でいけます。
「root」ユーザ権限で。
まず、「ports」のものを「deinstall」
それぞれ下記のディレクトリへ移動して。
/usr/ports/textproc/rubygem-rexml
/usr/ports/devel/rubygem-concurrent-ruby
/usr/ports/devel/rubygem-minitest
make deinstall clean
必要なバージョンのモジュールをインストール。
gem install rexml -v "3.3.4"
gem install concurrent-ruby -v "1.3.3"
gem install minitest -v "5.24.1"
「rexml」のときは、下記のメッセージが出力されて。
A new release of RubyGems is available: 3.5.14 → 3.5.18!
Run `gem update --system 3.5.18` to update your installation.
ちょっと、やな感じですが。
この後、無事にアクセスできるようになりました。
|