退役SEのつれづれ日記

定年退役SEが、つれづれなる想いをしたためています。
(旧名:『システムノヲニワソト』)

[redmine](続)redmine5.1のリリースと機能検証

2024-03-11 | サーバ設定(redmine,zabbix
3月4日にredmine5.1.2がリリースされたので、稼働検証と追加でPluginの稼働確認する
(Bitnamiは、3日前にリリースされた模様)
(参考)
Redmine Download Site
https://www.redmine.org/projects/redmine/wiki/Download
以前構築・確認した、WSL2環境を利用して、5.1.2の環境構築です。
ymlファイルの一文字変更で、すぐに確認できる気軽さが良いですね。

既存のPluginは問題なし。
追加で、知り合いの利用している以下のPluginの稼働確認。
Checklist plugin
これは、この「RedmineUP」サイトが提供している無償のplugin。
メール登録して最新版を入手の上、稼働確認を実施。
ところが、どっこい、pluginのファイルを置いて再起動では簡単には許してくれませんでした。
ログには以下の表示しかされません。
redmine-redmine-1  | redmine 12:37:33.26 INFO  ==> Executing database migrations
redmine-redmine-1 exited with code 1

ということで、コンテナ内に入って確認です。
root@85b6b5272654:/opt/bitnami/redmine# export RAILS_ENV=production
root@85b6b5272654:/opt/bitnami/redmine# bundle install --no-deployment --without development test postgresql sqlite
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test postgresql sqlite'`, and stop using this flag
[DEPRECATED] The `--no-deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment false`, and stop using this flag
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this
machine.
The dependencies in your gemfile changed, but the lockfile can't be updated because frozen mode is set

You have added to the Gemfile:
* redmineup

Run `bundle install` elsewhere and add the updated Gemfile to version control.
If this is a development machine, remove the Gemfile.lock freeze by running `bundle config set frozen false`.

RedmineUp のGemfileが無いとのこと。
いろいろと調べた結果、Gemfile.lockファイルを削除して、以下のコマンドの実行で解決。
root@85b6b5272654:/opt/bitnami/redmine# bundle lock --add-platform x86_64-linux
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Writing lockfile to /opt/bitnami/redmine/Gemfile.lock
root@85b6b5272654:/opt/bitnami/redmine# bundle exec rake redmine:plugins NAME=redmine_checklists RAILS_ENV=production <==エラー
Could not find i18n-1.14.4, redmineup-1.0.5, liquid-4.0.4 in locally installed gems
Run `bundle install` to install missing gems.
root@85b6b5272654:/opt/bitnami/redmine# bundle install --no-deployment --without development test postgresql sqlite
[DEPRECATED] The `--without` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set without 'development test postgresql sqlite'`, and stop using this flag
[DEPRECATED] The `--no-deployment` flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use `bundle config set deployment false`, and stop using this flag
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this
machine.
Fetching gem metadata from https://rubygems.org/.........
Fetching liquid 4.0.4
Fetching i18n 1.14.4
Installing i18n 1.14.4
Installing liquid 4.0.4
Fetching redmineup 1.0.5
Installing redmineup 1.0.5
Bundle complete! 45 Gemfile dependencies, 78 gems now installed.
Gems in the groups 'development', 'test', 'postgresql' and 'sqlite' were not installed.
Bundled gems are installed into `./vendor/bundle`
root@85b6b5272654:/opt/bitnami/redmine# bundle exec rake redmine:plugins NAME=redmine_checklists RAILS_ENV=production
== 1 CreateChecklists: migrating ==============================================
-- create_table(:checklists, {:options=>" ENGINE=InnoDB", :id=>:integer})
   -> 0.0542s
== 1 CreateChecklists: migrated (0.0562s) =====================================

== 2 AddTimeStampsToChecklists: migrating =====================================
-- add_column(:checklists, :created_at, :timestamp)
   -> 0.0450s
-- add_column(:checklists, :updated_at, :timestamp)
   -> 0.0467s
== 2 AddTimeStampsToChecklists: migrated (0.0921s) ============================

== 3 CreateChecklistTemplateCategory: migrating ===============================
-- create_table(:checklist_template_categories, {:options=>" ENGINE=InnoDB", :id=>:integer})
   -> 0.0433s
== 3 CreateChecklistTemplateCategory: migrated (0.0439s) ======================

== 4 CreateChecklistTemplates: migrating ======================================
-- create_table(:checklist_templates, {:options=>" ENGINE=InnoDB", :id=>:integer})
   -> 0.0516s
== 4 CreateChecklistTemplates: migrated (0.0521s) =============================

== 5 ModifyChecklistSubjectLength: migrating ==================================
-- change_column(:checklists, :subject, :string, {:limit=>512})
   -> 0.0643s
== 5 ModifyChecklistSubjectLength: migrated (0.0648s) =========================

== 6 AddFieldsToChecklistTemplate: migrating ==================================
-- add_column(:checklist_templates, :is_default, :boolean, {:default=>false})
   -> 0.0559s
-- add_column(:checklist_templates, :tracker_id, :integer)
   -> 0.0569s
-- add_index(:checklist_templates, :tracker_id)
   -> 0.0685s
== 6 AddFieldsToChecklistTemplate: migrated (0.1825s) =========================

== 7 AddIsSectionToChecklists: migrating ======================================
-- add_column(:checklists, :is_section, :boolean, {:default=>false})
   -> 0.0350s
== 7 AddIsSectionToChecklists: migrated (0.0352s) =============================

こののち、Docker-composeでstop/startしてコンテナを再起動して、上手くいきました!(Downじゃダメです)

ということは、「redmineコンテナ」を更新する都度、この作業を実施しないとダメじゃん、、

  (赤字は、前回稼働確認時からバージョンが変更となっているもの)
導入確認済 plugins:(03/10現在) 4.X.X導入 バージョン 5.1.2導入検証 備考
13 redmine_checklist (未確認) 3.1.23★ 正常稼働 バージョンアップの必要あり  https://www.redmineup.com/pages/plugins/checklists で最新版を入手

コメント    この記事についてブログを書く
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする
« 家庭内ラン再構築・・(その3) | トップ | [Windows][WSL2]WSL2にUbuntu... »