Problem using prebuilt redmine:5.1.2 containers
Added by Frank Helsper 7 months ago
Hi everybody,
I have been using prebuilt redmine/MySQL containers in several diffent version for some time now without any issue.
Now, with the upgrade from mysql 5.7 to 8.1 and redmine 5.0.4 to 5.1.2, I run into trouble because the redmine container just exits without reasonable error message .
I'm using:
docker run -d --name c_redmine512 -e REDMINE_DB_MYSQL=123.123.123.123 -e REDMINE_DB_USERNAME=redmine -e REDMINE_DB_PASSWORD=XXX -e REDMINE_DB_PORT=3307 -p 10.1.219.23:8081:3000 -v /svc/tmvxyz/home/web2158/docker/files_v512:/usr/src/redmine/files -v /svc/tmvxyz/home/web2158/docker/config_v512:/usr/src/redmine/config redmine:5.1.2
- The MySQL 8.1 container is already running, data is imported from old 5.7 database and reachable from host network.
- The redmine:5.0.4 container starts up and connects properly to the 8.1 database. Redmine:5.0.4. is running w/o visible problems with MySQL 8.1 (although not supported)
- database.yml has been copied over from redmine:5.0.4 and looks like this
production:
adapter: "mysql2"
host: "123.123.123.123"
port: "3307"
username: "redmine"
password: "XXX"
database: "redmine"
encoding: "utf8mb4"
variables:
transaction_isolation: "READ-COMMITTED"
-> Trying to run the 5.1.2 container results in:
===============================
Your Gemfile lists the gem puma (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once.
While it's not a problem now, it could cause errors if you change the version of one of them later.
The Gemfile's dependencies are satisfied
rake aborted!
ThreadError: can't create Thread: Operation not permitted (ThreadError)
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `initialize'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `new'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `spawn_thread'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:314:in `block in register_pool'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:312:in `synchronize'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:312:in `register_pool'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `run'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:411:in `initialize'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/pool_config.rb:56:in `new'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/pool_config.rb:56:in `block in pool'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/pool_config.rb:56:in `pool'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1072:in `block in establish_connection'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:1071:in `establish_connection'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/connection_handling.rb:52:in `establish_connection'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/railtie.rb:222:in `block (2 levels) in <class:Railtie>'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:71:in `class_eval'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:71:in `block in execute_hook'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:61:in `with_execution_control'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:66:in `execute_hook'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:51:in `each'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/base.rb:315:in `<module:ActiveRecord>'
/usr/local/bundle/gems/activerecord-6.1.7.7/lib/active_record/base.rb:15:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
/usr/local/bundle/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `block in require'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `require'
/usr/src/redmine/lib/plugins/acts_as_activity_provider/init.rb:21:in `block in <top (required)>'
/usr/src/redmine/config/initializers/00-core_plugins.rb:10:in `eval'
/usr/src/redmine/config/initializers/00-core_plugins.rb:10:in `block in <top (required)>'
/usr/src/redmine/config/initializers/00-core_plugins.rb:4:in `each'
/usr/src/redmine/config/initializers/00-core_plugins.rb:4:in `<top (required)>'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:326:in `load'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:326:in `block in load'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:326:in `load'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/engine.rb:681:in `block in load_config_initializer'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/notifications.rb:205:in `instrument'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/engine.rb:680:in `load_config_initializer'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/engine.rb:633:in `each'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/engine.rb:633:in `block in <class:Engine>'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:32:in `instance_exec'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:32:in `run'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:61:in `block in run_initializers'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:50:in `each'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:50:in `tsort_each_child'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/initializable.rb:60:in `run_initializers'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/application.rb:391:in `initialize!'
/usr/src/redmine/config/environment.rb:16:in `<top (required)>'
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
<internal:/usr/local/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
/usr/local/bundle/gems/zeitwerk-2.6.13/lib/zeitwerk/kernel.rb:34:in `require'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `block in require'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:299:in `load_dependency'
/usr/local/bundle/gems/activesupport-6.1.7.7/lib/active_support/dependencies.rb:332:in `require'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/application.rb:367:in `require_environment!'
/usr/local/bundle/gems/railties-6.1.7.7/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/usr/local/bundle/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
===============================
Does anybody have any idea...?
How can I fix this?
Kind Regards
Frank
Replies (1)
RE: Problem using prebuilt redmine:5.1.2 containers - Added by Frank Helsper 7 months ago
Case closed.
docker run -d --security-opt seccomp=unconfined ...
did the trick for now.