Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workstation 23.2.1028 - /bin/kitchen: warning: Exception in finalizer #3073

Open
jsloan117 opened this issue Mar 3, 2023 · 5 comments
Open
Labels
Status: Untriaged An issue that has yet to be triaged.

Comments

@jsloan117
Copy link

Description

This appears only in kitchen verify stage (haven't seen it in compliance phase) and on Windows.

/bin/kitchen: warning: Exception in finalizer #<Proc:0x00007f6578e58e38 /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/winrm-2.3.6/lib/winrm/shells/power_shell.rb:33>
/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471:in `new': can't alloc thread (ThreadError)
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:471:in `create_with_logging_context'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:436:in `new'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/timeout-0.3.1/lib/timeout.rb:101:in `create_timeout_thread'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/timeout-0.3.1/lib/timeout.rb:134:in `block in ensure_timeout_thread_created'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/timeout-0.3.1/lib/timeout.rb:132:in `synchronize'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/timeout-0.3.1/lib/timeout.rb:132:in `ensure_timeout_thread_created'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/timeout-0.3.1/lib/timeout.rb:181:in `timeout'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:515:in `query'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient/session.rb:177:in `query'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:1242:in `do_get_block'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:1019:in `block in do_request'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:1133:in `protect_keep_alive_disconnected'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:1014:in `do_request'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:856:in `request'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/httpclient-2.8.3/lib/httpclient.rb:765:in `post'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/winrm-2.3.6/lib/winrm/http/transport.rb:176:in `send_request'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/winrm-2.3.6/lib/winrm/shells/power_shell.rb:42:in `close_shell'
	from /opt/chef-workstation/embedded/lib/ruby/gems/3.1.0/gems/winrm-2.3.6/lib/winrm/shells/power_shell.rb:33:in `block in finalize'

Chef Workstation Version

Chef Workstation version: 23.2.1028
Cookstyle version: 7.32.1
Chef Infra Client version: 18.0.185
Chef InSpec version: 5.18.14
Chef CLI version: 5.6.8
Chef Habitat version: 1.6.521
Test Kitchen version: 3.5.0

Platform Version

  • RHEL7
  • Windows 10
@jsloan117 jsloan117 added the Status: Untriaged An issue that has yet to be triaged. label Mar 3, 2023
@brentm5
Copy link

brentm5 commented Mar 6, 2023

Currently getting the same after installing latest on a new host. Here is my Chef workstation version output

Chef Workstation Version

Chef Workstation version: 23.3.1030
Chef Infra Client version: 18.0.185
Chef InSpec version: 5.18.14
Chef CLI version: 5.6.8
Chef Habitat version: 1.6.652
Test Kitchen version: 3.5.0
Cookstyle version: 7.32.1

@jsloan117
Copy link
Author

The latest build still as the issue.

Chef Workstation version: 23.4.1032
Chef InSpec version: 5.21.29
Chef CLI version: 5.6.8
Chef Habitat version: 1.6.652
Test Kitchen version: 3.5.0
Cookstyle version: 7.32.2
Chef Infra Client version: 18.2.7

@jakauppila
Copy link

Looks like this would be addressed in WinRb/WinRM#339

@clintoncwolfe
Copy link
Collaborator

Just an update, we believe a Ruby 3.3 update that we are in the middle of may help resolve this issue. Stay tuned.

@sandratiffin
Copy link

I'm seeing this issue in:

Chef Workstation version: 24.6.1066
Chef Infra Client version: 18.4.12
Chef InSpec version: 5.22.50
Chef CLI version: 5.6.14
Chef Habitat version: 1.6.1041
Test Kitchen version: 3.6.0
Cookstyle version: 7.32.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Untriaged An issue that has yet to be triaged.
Projects
None yet
Development

No branches or pull requests

5 participants