Bug 270252 - www/gitlab-ce: Fails to start after ruby default version changed to 3.1
Summary: www/gitlab-ce: Fails to start after ruby default version changed to 3.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Matthias Fechner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-15 20:07 UTC by fsbruva
Modified: 2023-03-27 04:20 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (mfechner)


Attachments
Failure log with --trace (5.81 KB, text/plain)
2023-03-15 20:07 UTC, fsbruva
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fsbruva 2023-03-15 20:07:20 UTC
Created attachment 240878 [details]
Failure log with --trace

Upon building gitlab-ce (and about 500 other ports) with poudriere, the resulting package is installable, but contains fatal errors. 

I am following the upgrade instructions, and when I get to the following command:

 # su -l git -c "cd /usr/local/www/gitlab-ce && rake --trace  db:migrate RAILS_ENV=production"

I get the following error (attached log):
rake aborted!
LoadError: cannot load such file -- net/smtp

My initial investigation leads me to believe it is related to mail 2.7.0, Ruby 3.1 and Rails 7. My attempts at excluding net-smtp due to being bundled in ruby 3.1 failed pretty spectacularly.

Some related reading:
https://stackoverflow.com/questions/70500220/rails-7-ruby-3-1-loaderror-cannot-load-such-file-net-smtp

https://github.com/mikel/mail/pull/1439/files 

https://github.com/rails/rails/pull/42366/files
Comment 1 fsbruva 2023-03-15 21:44:16 UTC
I think I caught the incredibly bad luck of catching the ports tree shorting after this commit that changed the default ruby version:
https://github.com/freebsd/freebsd-ports/commit/097770c474d4bb7b24cec37dc87439c1ed4344c7
Comment 2 lysfjord.daniel 2023-03-15 23:47:15 UTC
Disabling net-smtp doesn't really help either:

/skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias': Unknown alias: base (Psych::BadAlias)
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each_slice'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `revive_hash'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each_slice'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `revive_hash'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
        from /skeleton/usr/local/lib/ruby/3.1/psych.rb:334:in `safe_load'
        from /skeleton/usr/local/lib/ruby/3.1/psych.rb:369:in `load'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:103:in `initialize'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:60:in `new'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:60:in `instance'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:37:in `[]'
        from /skeleton/usr/local/www/gitlab-ce/config/initializers/1_settings.rb:8:in `<top (required)>'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `load'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `block in load_config_initializer'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/notifications.rb:205:in `instrument'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:680:in `load_config_initializer'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `each'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `block in <class:Engine>'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `instance_exec'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `run'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:228:in `block in tsort_each'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:431:in `each_strongly_connected_component_from'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:421:in `block in each_strongly_connected_component_from'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `each'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `tsort_each_child'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:415:in `call'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:415:in `each_strongly_connected_component_from'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:349:in `block in each_strongly_connected_component'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:347:in `each'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:347:in `call'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:347:in `each_strongly_connected_component'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:226:in `tsort_each'
        from /skeleton/usr/local/lib/ruby/3.1/tsort.rb:205:in `tsort_each'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in `run_initializers'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:391:in `initialize!'
        from /skeleton/usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
        from config.ru:5:in `require'
        from config.ru:5:in `block in <main>'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.2/lib/rack/builder.rb:116:in `eval'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.2/lib/rack/builder.rb:116:in `new_from_string'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.2/lib/rack/builder.rb:105:in `load_file'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.2/lib/rack/builder.rb:66:in `parse_file'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/configuration.rb:348:in `load_rackup'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/configuration.rb:270:in `app'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/runner.rb:150:in `load_and_bind'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/cluster.rb:357:in `run'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/launcher.rb:193:in `run'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/cli.rb:81:in `run'
        from /skeleton/usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/bin/puma:10:in `<top (required)>'
        from /usr/local/bin/puma:25:in `load'
        from /usr/local/bin/puma:25:in `<main>'
Comment 3 Matthias Fechner freebsd_committer freebsd_triage 2023-03-16 07:59:50 UTC
We look into it.
Comment 4 Matthias Fechner freebsd_committer freebsd_triage 2023-03-16 08:30:01 UTC
Adding net-smtp to the gitlab Gemfile fixed that problem, but shows the next one:
```root@gitlab:~ # su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=production --trace"
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Psych::BadAlias: Unknown alias: base
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `each_slice'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:343:in `revive_hash'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:30:in `visit'
/usr/local/lib/ruby/3.1/psych/visitors/visitor.rb:6:in `accept'
/usr/local/lib/ruby/3.1/psych/visitors/to_ruby.rb:35:in `accept'
/usr/local/lib/ruby/3.1/psych.rb:334:in `safe_load'
/usr/local/lib/ruby/3.1/psych.rb:369:in `load'
/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:103:in `initialize'
/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:60:in `new'
/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:60:in `instance'
/usr/local/lib/ruby/gems/3.1/gems/settingslogic-2.0.9/lib/settingslogic.rb:37:in `[]'
/usr/local/www/gitlab-ce/config/initializers/1_settings.rb:8:in `<top (required)>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `load'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:680:in `load_config_initializer'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `run'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/lib/ruby/3.1/tsort.rb:228:in `block in tsort_each'
/usr/local/lib/ruby/3.1/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:431:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:421:in `block in each_strongly_connected_component_from'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/usr/local/lib/ruby/3.1/tsort.rb:415:in `call'
/usr/local/lib/ruby/3.1/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `each'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `call'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:226:in `tsort_each'
/usr/local/lib/ruby/3.1/tsort.rb:205:in `tsort_each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:391:in `initialize!'
/usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
/usr/local/lib/ruby/gems/3.1/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
/usr/local/lib/ruby/gems/3.1/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in `require'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:367:in `require_environment!'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/local/lib/ruby/gems/3.1/gems/sentry-ruby-core-5.1.1/lib/sentry/rake.rb:24:in `execute'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:25:in `load'
/usr/local/bin/rake:25:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment 
```
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-03-16 09:37:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=078d7d3a395afc789a08116dcb9d1b3684a53e5b

commit 078d7d3a395afc789a08116dcb9d1b3684a53e5b
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2023-03-16 09:34:54 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2023-03-16 09:37:02 +0000

    www/gitlab-ce: make it working with ruby 3.1

    Ruby 3.1 did some breaking changes:
    https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/

    With the help of @yasu I added some work-arounds that should
    make gitlab work again with ruby 3.1.
    They can be removed after gitlab support ruby 3.1 upstream.

    PR:             270252

 textproc/Makefile                       |  1 +
 textproc/rubygem-psych3/Makefile (new)  | 20 ++++++++++++++++++++
 textproc/rubygem-psych3/distinfo (new)  |  3 +++
 textproc/rubygem-psych3/pkg-descr (new) |  3 +++
 www/gitlab-ce/Makefile                  |  8 +++++++-
 www/gitlab-ce/files/patch-Gemfile       |  7 +++++--
 6 files changed, 39 insertions(+), 3 deletions(-)
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2023-03-22 21:18:18 UTC
Can't start puma:

# service gitlab start
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this machine.
Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this machine.
Starting GitLab web server (puma)
Starting GitLab Sidekiq
Starting GitLab Workhorse
Starting Gitaly
.No pidfile found at /usr/local/www/gitlab-ce/tmp/pids/sidekiq-cluster.pid; is Sidekiq running?
.{"timestamp":"2023-03-22T21:11:33.066Z","pid":13836,"message":"Puma starting in cluster mode..."}
{"timestamp":"2023-03-22T21:11:33.067Z","pid":13836,"message":"* Puma version: 5.6.5 (ruby 3.1.3-p185) (\"Birdie's Version\")"}
{"timestamp":"2023-03-22T21:11:33.067Z","pid":13836,"message":"*  Min threads: 1"}
{"timestamp":"2023-03-22T21:11:33.071Z","pid":13836,"message":"*  Max threads: 16"}
{"timestamp":"2023-03-22T21:11:33.071Z","pid":13836,"message":"*  Environment: production"}
{"timestamp":"2023-03-22T21:11:33.073Z","pid":13836,"message":"*   Master PID: 13836"}
{"timestamp":"2023-03-22T21:11:33.073Z","pid":13836,"message":"*      Workers: 3"}
{"timestamp":"2023-03-22T21:11:33.073Z","pid":13836,"message":"*     Restarts: (✔) hot (✖) phased"}
{"timestamp":"2023-03-22T21:11:33.073Z","pid":13836,"message":"* Preloading application"}
.......................{"timestamp":"2023-03-22T21:11:56.805Z","pid":13836,"message":"! Unable to load application: NoMethodError: undefined method `fetch_or_store' for {}:Concurrent::Hash\n\n          h.fetch_or_store(key, Concurrent::Map.new)\n           ^^^^^^^^^^^^^^^"}
bundler: failed to load command: puma (/usr/local/bin/puma)
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:11:in `block in initialize': undefined method `fetch_or_store' for {}:Concurrent::Hash (NoMethodError)

          h.fetch_or_store(key, Concurrent::Map.new)
           ^^^^^^^^^^^^^^^
        from /usr/local/lib/ruby/gems/3.1/gems/concurrent-ruby-1.2.1/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:22:in `[]'
        from /usr/local/lib/ruby/gems/3.1/gems/concurrent-ruby-1.2.1/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:22:in `[]'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:20:in `fetch'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:16:in `lookup'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:70:in `register_domain_type'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `block in run'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `each'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:637:in `block in load_additional_types'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `execute_and_clear'
        from /usr/local/lib/ruby/gems/3.1/gems/marginalia-1.11.1/lib/marginalia.rb:91:in `execute_and_clear_with_marginalia'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:636:in `load_additional_types'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:583:in `initialize_type_map'
        from /usr/local/www/gitlab-ce/config/initializers/0_postgresql_types.rb:13:in `initialize_type_map'
        from /usr/local/www/gitlab-ce/config/initializers/1_active_record_data_types.rb:30:in `initialize_type_map'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:261:in `initialize'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:36:in `new'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:36:in `postgresql_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
        from /usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_handling.rb:283:in `connection'
        from /usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:144:in `connection'
        from /usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:72:in `database_version'
        from /usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:68:in `version'
        from /usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:76:in `postgresql_minimum_supported_version?'
        from /usr/local/www/gitlab-ce/lib/gitlab/database.rb:157:in `block in check_postgres_version_and_print_warning'
        from /usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `each'
        from /usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `check_postgres_version_and_print_warning'
        from /usr/local/www/gitlab-ce/config/initializers/1_postgresql_only.rb:6:in `<top (required)>'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `load'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `block in load_config_initializer'
        from /usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/notifications.rb:205:in `instrument'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:680:in `load_config_initializer'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `each'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `block in <class:Engine>'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `instance_exec'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
        from /usr/local/lib/ruby/3.1/tsort.rb:228:in `block in tsort_each'
        from /usr/local/lib/ruby/3.1/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
        from /usr/local/lib/ruby/3.1/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.1/tsort.rb:431:in `each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.1/tsort.rb:421:in `block in each_strongly_connected_component_from'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `each'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `tsort_each_child'
        from /usr/local/lib/ruby/3.1/tsort.rb:415:in `call'
        from /usr/local/lib/ruby/3.1/tsort.rb:415:in `each_strongly_connected_component_from'
        from /usr/local/lib/ruby/3.1/tsort.rb:349:in `block in each_strongly_connected_component'
        from /usr/local/lib/ruby/3.1/tsort.rb:347:in `each'
        from /usr/local/lib/ruby/3.1/tsort.rb:347:in `call'
        from /usr/local/lib/ruby/3.1/tsort.rb:347:in `each_strongly_connected_component'
        from /usr/local/lib/ruby/3.1/tsort.rb:226:in `tsort_each'
        from /usr/local/lib/ruby/3.1/tsort.rb:205:in `tsort_each'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in `run_initializers'
        from /usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:391:in `initialize!'
        from /usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
        from <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from config.ru:5:in `block in <main>'
        from /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.3/lib/rack/builder.rb:116:in `eval'
        from /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.3/lib/rack/builder.rb:116:in `new_from_string'
        from /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.3/lib/rack/builder.rb:105:in `load_file'
        from /usr/local/lib/ruby/gems/3.1/gems/rack-2.2.6.3/lib/rack/builder.rb:66:in `parse_file'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/configuration.rb:348:in `load_rackup'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/configuration.rb:270:in `app'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/runner.rb:150:in `load_and_bind'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/cluster.rb:357:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/launcher.rb:193:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/lib/puma/cli.rb:81:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/puma-5.6.5/bin/puma:10:in `<top (required)>'
        from /usr/local/bin/puma:25:in `load'
        from /usr/local/bin/puma:25:in `<top (required)>'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `load'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:58:in `kernel_load'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli/exec.rb:23:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli.rb:492:in `exec'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli.rb:34:in `dispatch'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/cli.rb:28:in `start'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/exe/bundle:45:in `block in <top (required)>'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
        from /usr/local/lib/ruby/gems/3.1/gems/bundler-2.4.7/exe/bundle:33:in `<top (required)>'
        from /usr/local/bin/bundle:25:in `load'
        from /usr/local/bin/bundle:25:in `<main>'
........................................................................................................................................................................................................................
Waited 240s for the processes to write their pids, something probably went wrong.
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2023-03-22 21:24:44 UTC
# su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=production"
rake aborted!
NoMethodError: undefined method `fetch_or_store' for {}:Concurrent::Hash

          h.fetch_or_store(key, Concurrent::Map.new)
           ^^^^^^^^^^^^^^^
/usr/local/www/gitlab-ce/config/initializers/0_postgresql_types.rb:13:in `initialize_type_map'
/usr/local/www/gitlab-ce/config/initializers/1_active_record_data_types.rb:30:in `initialize_type_map'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:144:in `connection'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:72:in `database_version'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:68:in `version'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:76:in `postgresql_minimum_supported_version?'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:157:in `block in check_postgres_version_and_print_warning'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `each'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `check_postgres_version_and_print_warning'
/usr/local/www/gitlab-ce/config/initializers/1_postgresql_only.rb:6:in `<top (required)>'
/usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
Comment 8 Vladimir Druzenko freebsd_committer freebsd_triage 2023-03-22 22:56:11 UTC
Tried rebuild ruby, all gems and all gitlab ports - nothing changed.
Ruby options:
        CAPIDOCS       : off
        DEBUG          : off
        DOCS           : off
        EXAMPLES       : off
        GMP            : off
        LIBEDIT        : off
        RDOC           : on
        READLINE       : on

Log with "--trace":
# su -l git -c "cd /usr/local/www/gitlab-ce && rake db:migrate RAILS_ENV=production --trace"
** Invoke db:migrate (first_time)
** Invoke db:load_config (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
NoMethodError: undefined method `fetch_or_store' for {}:Concurrent::Hash

          h.fetch_or_store(key, Concurrent::Map.new)
           ^^^^^^^^^^^^^^^
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:11:in `block in initialize'
/usr/local/lib/ruby/gems/3.1/gems/concurrent-ruby-1.2.1/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:22:in `[]'
/usr/local/lib/ruby/gems/3.1/gems/concurrent-ruby-1.2.1/lib/concurrent-ruby/concurrent/collection/map/non_concurrent_map_backend.rb:22:in `[]'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:20:in `fetch'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/type/type_map.rb:16:in `lookup'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:70:in `register_domain_type'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `block in run'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `each'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql/oid/type_map_initializer.rb:30:in `run'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:637:in `block in load_additional_types'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:654:in `execute_and_clear'
/usr/local/lib/ruby/gems/3.1/gems/marginalia-1.11.1/lib/marginalia.rb:91:in `execute_and_clear_with_marginalia'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:636:in `load_additional_types'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:583:in `initialize_type_map'
/usr/local/www/gitlab-ce/config/initializers/0_postgresql_types.rb:13:in `initialize_type_map'
/usr/local/www/gitlab-ce/config/initializers/1_active_record_data_types.rb:30:in `initialize_type_map'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:261:in `initialize'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:36:in `new'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:36:in `postgresql_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
/usr/local/lib/ruby/gems/3.1/gems/activerecord-6.1.7.2/lib/active_record/connection_handling.rb:283:in `connection'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:144:in `connection'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:72:in `database_version'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:68:in `version'
/usr/local/www/gitlab-ce/lib/gitlab/database/reflection.rb:76:in `postgresql_minimum_supported_version?'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:157:in `block in check_postgres_version_and_print_warning'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `each'
/usr/local/www/gitlab-ce/lib/gitlab/database.rb:154:in `check_postgres_version_and_print_warning'
/usr/local/www/gitlab-ce/config/initializers/1_postgresql_only.rb:6:in `<top (required)>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `load'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:681:in `block in load_config_initializer'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:680:in `load_config_initializer'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/engine.rb:633:in `block in <class:Engine>'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:32:in `run'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/lib/ruby/3.1/tsort.rb:228:in `block in tsort_each'
/usr/local/lib/ruby/3.1/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:431:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:421:in `block in each_strongly_connected_component_from'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:50:in `tsort_each_child'
/usr/local/lib/ruby/3.1/tsort.rb:415:in `call'
/usr/local/lib/ruby/3.1/tsort.rb:415:in `each_strongly_connected_component_from'
/usr/local/lib/ruby/3.1/tsort.rb:349:in `block in each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `each'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `call'
/usr/local/lib/ruby/3.1/tsort.rb:347:in `each_strongly_connected_component'
/usr/local/lib/ruby/3.1/tsort.rb:226:in `tsort_each'
/usr/local/lib/ruby/3.1/tsort.rb:205:in `tsort_each'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:391:in `initialize!'
/usr/local/www/gitlab-ce/config/environment.rb:7:in `<top (required)>'
<internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/usr/local/lib/ruby/site_ruby/3.1/rubygems/core_ext/kernel_require.rb>:37:in `require'
/usr/local/lib/ruby/gems/3.1/gems/zeitwerk-2.6.7/lib/zeitwerk/kernel.rb:38:in `require'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `block in require'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/lib/ruby/gems/3.1/gems/activesupport-6.1.7.2/lib/active_support/dependencies.rb:332:in `require'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:367:in `require_environment!'
/usr/local/lib/ruby/gems/3.1/gems/railties-6.1.7.2/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `block in execute'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:281:in `execute'
/usr/local/lib/ruby/gems/3.1/gems/sentry-ruby-core-5.1.1/lib/sentry/rake.rb:24:in `execute'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:219:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:243:in `block in invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:241:in `invoke_prerequisites'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:218:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `synchronize'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:199:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/task.rb:188:in `invoke'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:160:in `invoke_task'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `each'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:116:in `block in top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:110:in `top_level'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:83:in `block in run'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
/usr/local/lib/ruby/gems/3.1/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:25:in `load'
/usr/local/bin/rake:25:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
Comment 9 Vladimir Druzenko freebsd_committer freebsd_triage 2023-03-27 01:25:37 UTC
Rebuild after this commit https://cgit.freebsd.org/ports/commit/?id=5c3f9ae047646edf5b6b89093ffd56aeac94bf90 fixed error.
All work fine now.
Comment 10 Matthias Fechner freebsd_committer freebsd_triage 2023-03-27 04:20:34 UTC
(In reply to VVD from comment #9)
Thanks for feedback.

For the next time, please create a new entry and do not answer to a already fixed one.