Skip to content

ThreadError: can't create Thread: Operation not permitted #306

Description

@hagaygo

Hi

Tried upgrading old 4.2.x install to 5.X (amd64)

When installing version 5.0.0 for example , everything works fine.

When trying 5.0.6 or 5.1.0 i get the following error on the log (the one on the issue title) :

redmine            | Your Gemfile lists the gem puma (>= 0) more than once.
redmine            | You should probably keep only one of them.
redmine            | Remove any duplicate entries and specify the gem only once.
redmine            | While it's not a problem now, it could cause errors if you change the version of one of them later.
redmine            | The Gemfile's dependencies are satisfied
redmine            | rake aborted!
redmine            | ThreadError: can't create Thread: Operation not permitted
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `initialize'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `new'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:323:in `spawn_thread'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:314:in `block in register_pool'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:312:in `synchronize'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:312:in `register_pool'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `run'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:411:in `initialize'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/pool_config.rb:56:in `new'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/pool_config.rb:56:in `block in pool'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/pool_config.rb:56:in `pool'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1072:in `block in establish_connection'
redmine            | /usr/local/bundle/gems/activesupport-6.1.7.6/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
redmine            | /usr/local/bundle/gems/activerecord-6.1.7.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:1071:in `establish_connection'

When adding "privileged" to my docker compose file both 5.1.0 and 5.0.6 runs without any issues.

Any reason for that ?
Is it a new requirement ?
Any way to work around it ?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions