Redmine4.2 の仮想VMにプラグインを入れようとするもPsych::SyntaxError

[Redmine4.2.1のVMイメージが公開されていた](https://bitnami.com/stack/redmine/installer)ので、[Virtualbox](https://www.virtualbox.org/)の最新版(バージョン 6.1.22 r144080 (Qt5.6.2))でVMを起動させてみました。
が、問題が発生してそこでストップ。。

どなたか解決策がわかる方いらっしゃいましたら教えてください。。

# view_customize をインストール

## gitでクローン
まずはネタ入手。特に問題なし。

<details><summary>ログはこちら</summary><div>
```sh
bitnami@debian:~/htdocs/plugins$ git clone https://github.com/onozaty/redmine-view-customize.git
Cloning into 'redmine-view-customize'...
remote: Enumerating objects: 900, done.
remote: Counting objects: 100% (55/55), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 900 (delta 13), reused 36 (delta 7), pack-reused 845
Receiving objects: 100% (900/900), 608.43 KiB | 1.35 MiB/s, done.
Resolving deltas: 100% (354/354), done.
```
</div></details>

## プラグイン有効化(1回目)　⇒　うまくいかない
まずは無邪気にプラグイン有効化。さすがにいきなりは無理でした。

<details><summary>ログはこちら</summary><div>

```sh
bitnami@debian:~/htdocs/plugins$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated ../Gemfile.lock to version control.

If this is a development machine, remove the /opt/bitnami/apps/redmine/htdocs/Gemfile freeze
by running `bundle install --no-deployment`.

The dependencies in your gemfile changed

You have added to the Gemfile:
* activerecord-compatible_legacy_migration
```

</div></details>

## gem追加

とくにエラーなく終わり。

<details><summary>ログはこちら</summary><div>

```
bitnami@debian:~/htdocs/plugins$ bundle install --no-deployment
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
The dependency ffi (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Following files may not be writable, so sudo is needed:
  /opt/bitnami/ruby/bin
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/build_info
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/cache
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/doc
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/extensions
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems
  /opt/bitnami/ruby/lib/ruby/gems/2.6.0/specifications
Fetching rake 13.0.3
Installing rake 13.0.3
Fetching concurrent-ruby 1.1.8
Installing concurrent-ruby 1.1.8
Fetching i18n 1.8.10
Installing i18n 1.8.10
Fetching minitest 5.14.4
Installing minitest 5.14.4
Using thread_safe 0.3.6
Fetching tzinfo 1.2.9
Installing tzinfo 1.2.9
Using activesupport 5.2.5
Using builder 3.2.4
Fetching erubi 1.10.0
Installing erubi 1.10.0
Fetching mini_portile2 2.5.0
Installing mini_portile2 2.5.0
Fetching racc 1.5.2
Installing racc 1.5.2 with native extensions
Fetching nokogiri 1.11.3 (x86_64-linux)
Installing nokogiri 1.11.3 (x86_64-linux)
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Fetching loofah 2.9.1
Installing loofah 2.9.1
Using rails-html-sanitizer 1.3.0
Using actionview 5.2.5
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.2.5
Fetching nio4r 2.5.7
Installing nio4r 2.5.7 with native extensions
Using websocket-extensions 0.1.5
Using websocket-driver 0.7.3
Using actioncable 5.2.5
Using globalid 0.4.2
Using activejob 5.2.5
Fetching mini_mime 1.0.3
Installing mini_mime 1.0.3
Using mail 2.7.1
Using actionmailer 5.2.5
Using method_source 1.0.0
Fetching thor 1.1.0
Installing thor 1.1.0
Using railties 5.2.5
Fetching actionpack-xml_parser 2.0.1
Installing actionpack-xml_parser 2.0.1
Using activemodel 5.2.5
Using arel 9.0.0
Using activerecord 5.2.5
Fetching activerecord-compatible_legacy_migration 0.1.1
Installing activerecord-compatible_legacy_migration 0.1.1
Fetching marcel 1.0.1
Installing marcel 1.0.1
Using activestorage 5.2.5
Fetching public_suffix 4.0.6
Installing public_suffix 4.0.6
Using addressable 2.7.0
Using bundler 2.1.2
Fetching chunky_png 1.4.0
Installing chunky_png 1.4.0
Fetching css_parser 1.9.0
Installing css_parser 1.9.0
Fetching csv 3.1.9
Installing csv 3.1.9
Fetching htmlentities 4.3.4
Installing htmlentities 4.3.4
Fetching mini_magick 4.11.0
Installing mini_magick 4.11.0
Fetching mysql2 0.5.3
Installing mysql2 0.5.3 with native extensions
Fetching net-ldap 0.17.0
Installing net-ldap 0.17.0
Fetching ruby-openid 2.9.2
Installing ruby-openid 2.9.2
Fetching rack-openid 1.4.2
Installing rack-openid 1.4.2
Fetching sprockets 4.0.2
Installing sprockets 4.0.2
Fetching sprockets-rails 3.2.2
Installing sprockets-rails 3.2.2
Using rails 5.2.5
Fetching rbpdf-font 1.19.1
Installing rbpdf-font 1.19.1
Fetching rbpdf 1.20.1
Installing rbpdf 1.20.1
Fetching redcarpet 3.5.1
Installing redcarpet 3.5.1 with native extensions
Fetching request_store 1.5.0
Installing request_store 1.5.0
Fetching roadie 4.0.0
Installing roadie 4.0.0
Fetching roadie-rails 2.2.0
Installing roadie-rails 2.2.0
Fetching rotp 6.2.0
Installing rotp 6.2.0
Fetching rouge 3.26.0
Installing rouge 3.26.0
Fetching rqrcode_core 0.2.0
Installing rqrcode_core 0.2.0
Fetching rqrcode 1.2.0
Installing rqrcode 1.2.0
Using rubyzip 2.3.0
Bundle complete! 37 Gemfile dependencies, 65 gems now installed.
Gems in the groups development, test and sqlite were not installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
```
</div></details>

# プラグイン有効化(2回目)　⇒　うまくいかない

gemも足したことだし～　と思ったけどうまくいかない。。
unKnown起因のSyntaxErrorっていわれても。。。

<details><summary>ログはこちら</summary><div>

```
bitnami@debian:~/htdocs/plugins$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
(in /opt/bitnami/apps/redmine/htdocs)
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:390:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:277:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:95:in `load_from_yaml'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:45:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:76:in `[]'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:26:in `<module:Thumbnail>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:23:in `<module:Redmine>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:22:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/lib/redmine.rb:51:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/config/initializers/30-redmine.rb:7:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `block in load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170:in `instrument'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `instance_exec'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:60:in `run_initializers'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:361:in `initialize!'
/opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require_environment!'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `invoke_prerequisites'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:83:in `block in run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/opt/bitnami/ruby/bin/rake:23:in `load'
/opt/bitnami/ruby/bin/rake:23:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `kernel_load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:28:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:476:in `exec'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:30:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:24:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:46:in `block in <top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:34:in `<top (required)>'
/opt/bitnami/ruby/bin/bundle:23:in `load'
/opt/bitnami/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
```
</div></details>

# 問題　インストール直後からbundlerがうまく動かない
プラグインがない状態(VMインストール後、SSH有効化した状態)に戻して
コマンド実行してみたが、やはりエラーが発生。

[こちら](https://easyramble.com/ruby-yaml-load-error.html)の記事によると、コロンの後にスペースがないから、ということらしいのですが、Unknownと言われてしまうとどこを見ればいいのやら。。

<details><summary>ログはこちら</summary><div>

```sh
bitnami@debian:~/htdocs$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:390:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:277:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:95:in `load_from_yaml'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:45:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:76:in `[]'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:26:in `<module:Thumbnail>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:23:in `<module:Redmine>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:22:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/lib/redmine.rb:51:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/config/initializers/30-redmine.rb:7:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `block in load'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170:in `instrument'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `instance_exec'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `run'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:60:in `run_initializers'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:361:in `initialize!'
/opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require_environment!'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `invoke_prerequisites'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:83:in `block in run'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/bin/rake:23:in `load'
/opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/bin/rake:23:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `kernel_load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:28:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:476:in `exec'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:30:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:24:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:46:in `block in <top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:34:in `<top (required)>'
/opt/bitnami/ruby/bin/bundle:23:in `load'
/opt/bitnami/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
```
</div></details>


# 2021/6/14追記 4.2.1-1でも同じ問題発生
新バージョンが出ていたのでどうかな？と思ったのですが、同じ問題が起きました。

<details><summary>ログはこちら</summary><div>

```sh
bitnami@debian:~/htdocs/plugins$ bundle exec rake redmine:plugins:migrate RAILS_ENV=production --trace
(in /opt/bitnami/apps/redmine/htdocs)
** Invoke redmine:plugins:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:390:in `parse'
/opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:277:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:95:in `load_from_yaml'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:45:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:76:in `[]'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:26:in `<module:Thumbnail>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:23:in `<module:Redmine>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:22:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/lib/redmine.rb:51:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
/opt/bitnami/apps/redmine/htdocs/config/initializers/30-redmine.rb:7:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `block in load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:663:in `block in load_config_initializer'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170:in `instrument'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:662:in `load_config_initializer'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `block in <class:Engine>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `instance_exec'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `call'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
/opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:60:in `run_initializers'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:361:in `initialize!'
/opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:337:in `require_environment!'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:520:in `block in run_tasks_blocks'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `block in execute'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:281:in `execute'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:241:in `invoke_prerequisites'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/2.6.0/monitor.rb:235:in `mon_synchronize'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:199:in `invoke_with_call_chain'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/task.rb:188:in `invoke'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:160:in `invoke_task'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `each'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:116:in `block in top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:125:in `run_with_threads'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:110:in `top_level'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:83:in `block in run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
/opt/bitnami/ruby/bin/rake:23:in `load'
/opt/bitnami/ruby/bin/rake:23:in `<top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:63:in `kernel_load'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli/exec.rb:28:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:476:in `exec'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:30:in `dispatch'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/cli.rb:24:in `start'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:46:in `block in <top (required)>'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors'
/opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/exe/bundle:34:in `<top (required)>'
/opt/bitnami/ruby/bin/bundle:23:in `load'
/opt/bitnami/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => redmine:plugins:migrate => environment
bitnami@debian:~/htdocs/plugins$ bundle exec rake db:migrate
(in /opt/bitnami/apps/redmine/htdocs)
rake aborted!
Psych::SyntaxError: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:95:in `load_from_yaml'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:45:in `load'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:76:in `[]'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:26:in `<module:Thumbnail>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:23:in `<module:Redmine>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:22:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/lib/redmine.rb:51:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/config/initializers/30-redmine.rb:7:in `<top (required)>'
/opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
/opt/bitnami/ruby/bin/bundle:23:in `load'
/opt/bitnami/ruby/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
```
</div></details>

## エラー調査

configration.rb:95はこれといって怪しいところはなさそう？
yaml = YAML::load(ERB.new(File.read(filename)).result)
の::は通常の渡し方に見える。

```sh
    92        def load_from_yaml(filename, env)
    93          yaml = nil
    94          begin
    95            yaml = YAML::load(ERB.new(File.read(filename)).result)
    96          rescue ArgumentError
    97            abort "Your Redmine configuration file located at #{filename} is not a valid YAML file and could not be loaded."
    98          rescue SyntaxError => e
    99            abort "A syntax error occurred when parsing your Redmine configuration file located at #{filename} with ERB:\n#{e.message}"
   100          end
   101          conf = {}
```

configration.rb:46
ファイルを開こうとしているところ？

```shell
    37        def load(options={})
    38          filename = options[:file] || File.join(Rails.root, 'config', 'configuration.yml')
    39          env = options[:env] || Rails.env
    40
    41          @config = @defaults.dup
    42
    43          load_deprecated_email_configuration(env)
    44          if File.file?(filename)
    45            @config.merge!(load_from_yaml(filename, env))
    46          end
    47
    48          # Compatibility mode for those who copy email.yml over configuration.yml
    49          %w(delivery_method smtp_settings sendmail_settings).each do |key|
    50            if value = @config.delete(key)
    51              @config['email_delivery'] ||= {}
    52              @config['email_delivery'][key] = value
    53            end
    54          end
```

configration.rb:76
ファイル名やconfigの名前定義が怪しい気がしてきた

```shell
    74        # Returns a configuration setting
    75        def [](name)
    76          load unless @config
    77          @config[name]
    78        end
```

ふと気になってhttpアクセス後にエラーログを見たら、同じエラーが出ていた。

```shell
App 4031 output: Error: The application encountered the following error: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3 (Psych::SyntaxError)
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:456:in `parse_stream'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:390:in `parse'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/psych.rb:277:in `load'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:95:in `load_from_yaml'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:45:in `load'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/configuration.rb:76:in `[]'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:26:in `<module:Thumbnail>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:23:in `<module:Redmine>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine/thumbnail.rb:22:in `<top (required)>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/lib/redmine.rb:51:in `<top (required)>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `block in require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in `require'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/config/initializers/30-redmine.rb:7:in `<top (required)>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `block in load'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:in `load_dependency'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:285:in `load'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:663:in `block in load_config_initializer'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/activesupport-5.2.5/lib/active_support/notifications.rb:170:in `instrument'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:662:in `load_config_initializer'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `each'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/engine.rb:619:in `block in <class:Engine>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `instance_exec'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:32:in `run'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:61:in `block in run_initializers'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:228:in `block in tsort_each'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:431:in `each_strongly_connected_component_from'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `each'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:50:in `tsort_each_child'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `call'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:415:in `each_strongly_connected_component_from'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:349:in `block in each_strongly_connected_component'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `call'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:347:in `each_strongly_connected_component'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:226:in `tsort_each'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/2.6.0/tsort.rb:205:in `tsort_each'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/initializable.rb:60:in `run_initializers'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/railties-5.2.5/lib/rails/application.rb:361:in `initialize!'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/config/environment.rb:16:in `<top (required)>'
App 4031 output:     config.ru:3:in `require'
App 4031 output:     config.ru:3:in `block in <main>'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `instance_eval'
App 4031 output:     /opt/bitnami/apps/redmine/htdocs/vendor/bundle/ruby/2.6.0/gems/rack-2.2.3/lib/rack/builder.rb:125:in `initialize'
App 4031 output:     config.ru:1:in `new'
App 4031 output:     config.ru:1:in `<main>'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:101:in `eval'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:101:in `preload_app'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:189:in `block in <module:App>'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/ruby_supportlib/phusion_passenger/loader_shared_helpers.rb:378:in `run_block_and_record_step_progress'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:188:in `<module:App>'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
App 4031 output:     /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/passenger-6.0.5/src/helper-scripts/rack-preloader.rb:29:in `<main>'
[ E 2021-06-14 03:45:08.1433 1208/Tp age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /opt/bitnami/apps/redmine/htdocs/: The application encountered the following error: (<unknown>): could not find expected ':' while scanning a simple key at line 216 column 3 (Psych::SyntaxError)
  Error ID: 626fed63
  Error details saved to: /tmp/passenger-error-aL7pnj.html

[ E 2021-06-14 03:45:08.1456 1208/T9 age/Cor/Con/CheckoutSession.cpp:276 ]: [Client 1-2] Cannot checkout session because a spawning error occurred. The identifier of the error is 626fed63. Please see earlier logs for details about the error.
```