-
Notifications
You must be signed in to change notification settings - Fork 499
Description
I had attempted an upgrade from 6.0.5 to 6.1.0, the app failed with the following:
Mapping UID and GID for redmine:redmine to 901:401
Initializing logdir...
Initializing datadir...
Symlinking dotfiles...
Installing configuration templates...
SSL keys and certificates were not found.
Assuming that the container is running behind a HTTPS enabled load balancer.
Configuring redmine...
Configuring redmine::database
Checking transaction isolation level... READ-COMMITTED
Configuring redmine::memcached...
Configuring redmine::logger...
Configuring redmine::puma...
Configuring redmine::secret_token...
Configuring redmine::max_concurrent_ajax_uploads...
Configuring redmine::sudo_mode...
Configuring redmine::autologin_cookie...
Configuring redmine::email_delivery...
Configuring redmine::backups...
Configuring redmine::rmagic::font...
Configuring redmine::avatar::url...
Configuring nginx...
Configuring nginx::redmine...
Configuring nginx::redmine::hsts...
Running raketask db:migrate...
rake aborted!
NoMethodError: private method `gem' called for an instance of Rails::Application::Configuration (NoMethodError)
/home/redmine/redmine/vendor/bundle/ruby/3.3.0/gems/railties-7.2.2.2/lib/rails/railtie/configuration.rb:109:in `method_missing'
(eval at /home/redmine/redmine/config/application.rb:110):18:in `<class:Application>'
/home/redmine/redmine/config/application.rb:110:in `instance_eval'
/home/redmine/redmine/config/application.rb:110:in `<class:Application>'
/home/redmine/redmine/config/application.rb:21:in `<module:RedmineApp>'
/home/redmine/redmine/config/application.rb:20:in `<top (required)>'
/home/redmine/redmine/Rakefile:5:in `<top (required)>'
/home/redmine/redmine/vendor/bundle/ruby/3.3.0/gems/rake-13.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:59:in `load'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:59:in `kernel_load'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:456:in `exec'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/command.rb:28:in `run'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor.rb:538:in `dispatch'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:35:in `dispatch'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/vendor/thor/lib/thor/base.rb:584:in `start'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/cli.rb:29:in `start'
/usr/local/bundle/gems/bundler-2.7.2/exe/bundle:28:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-2.7.2/lib/bundler/friendly_errors.rb:118:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-2.7.2/exe/bundle:20:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)
I'm using docker compose, with memcached and an external mysql db host. I've got one plugin installed, redmine-dmsf, which I had updated to the latest version (via git) prior to updating the docker image. The latest DMSF plugin supports the 6.1.x redmine branch. Since this is happening before entrypoint.sh calls install_plugins, the plugin is not likely to be the cause of the issue, I think.
I came across two other issues that had the same error, #233 and #236. The first was just closed with no solution specified, while #236 asked to verify if the memcached setup is correct. My docker-compose.yml is unchanged from when I was running 6.0.5.
Other things I tried (unsuccessfully):
- Run the db migrate script (I get the same stack trace above)
- Delete the redmine/tmp directory
- Revert back to 6.0.5
Here is the output of docker version:
Client:
Version: 20.10.24+dfsg1
API version: 1.41
Go version: go1.19.8
Git commit: 297e128
Built: Fri Jun 6 14:40:45 2025
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.24+dfsg1
API version: 1.41 (minimum version 1.12)
Go version: go1.19.8
Git commit: 5d6db84
Built: Fri Jun 6 14:40:45 2025
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.20~ds1
GitCommit: 1.6.20~ds1-1+deb12u1
runc:
Version: 1.1.5+ds1
GitCommit: 1.1.5+ds1-1+deb12u1
docker-init:
Version: 0.19.0
GitCommit: