Pavel Sapezhka Thanks for filing this and including the threaddump. It looks like there's a deadlock due to multithreaded being enabled. We'll need to take a closer look.
Thread qtp346358872-67 has locked <bd0f663> in https://github.com/puppetlabs/puppet/blob/7.12.1/lib/puppet/pops/loader/loader.rb#L153 and is waiting to lock <3f27e688> in https://github.com/puppetlabs/puppet/blob/7.12.1/lib/puppet/resource/type_collection.rb#L188
Thread qtp346358872-131 has locked <3f27e688> in https://github.com/puppetlabs/puppet/blob/7.12.1/lib/puppet/resource/type_collection.rb#L188 and is waiting to lock <bd0f663> in https://github.com/puppetlabs/puppet/blob/7.12.1/lib/puppet/node/environment.rb#L248
This is probably triggered due to https://github.com/puppetlabs/puppet/commit/ec319d778150eade0b6128c2ddd11cbf3926183b, because previously the loader didn't lock the environment (which was the cause of a different deadlock PUP-10959)
Could you give this a try: https://github.com/joshcooper/puppet/commit/107426595261935da8c6e96aa6d3cba6343dfc64?
Josh Cooper I have been testing for 5 hours, have no issues, thank you!
The only issue I've found is sometimes puppetserver returns 500 error with a log like
Dec 02 10:40:29 tor1-infra-puppet puppetserver[1874859]: ERROR [qtp580967019-3852] [puppetserver] Puppet Server Error: Evaluation Error: Error while evaluating a Method call, Internal Error: Attempt to redefine loader named 'wazuh private' (file: /etc/puppetlabs/code/environments/production/modules/wazuh/manifests/init.pp, line: 6, column: 11) on node tor1-prod-pathpuzzle-android-app-1.etrigan.net
It's periodically happened with almost any node and module. Could it be related to this issue or it's another problem?
Thanks Pavel Sapezhka! The Attempt to redefine loader named 'xxx private' error is filed as PUP-11324 (as it happens in 6.x).
Passed in 2e131b4ff9
I removed the 7.15.0 fix version because the code was first fixed and released in 7.14.0