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

windows_share: can't modify frozen String #9166

Open
Kundan22 opened this issue Dec 16, 2019 · 4 comments
Open

windows_share: can't modify frozen String #9166

Kundan22 opened this issue Dec 16, 2019 · 4 comments

Comments

@Kundan22
Copy link

@Kundan22 Kundan22 commented Dec 16, 2019

Description

Compilation fails with error "can't modify frozen String". It shows error at path in the windows_share method.

19:  windows_share 'AppFabricConfig' do
20:    action :nothing
21>>   path config_path
22:  end

Chef Version

15.5.17

Platform Version

Windows Server 2016

System Info:

chef_version=15.5.17
platform=windows
platform_version=10.0.14393
ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client

Replication Case

Occurs every time when I am trying to run a chef-client. It doesn't compile.

Client Output

Running handlers:
[2019-12-16T15:28:29+01:00] ERROR: Running exception handlers
Running handlers complete
[2019-12-16T15:28:29+01:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 19 seconds
[2019-12-16T15:28:29+01:00] FATAL: Stacktrace dumped to c:/chef/cache/chef-stacktrace.out
[2019-12-16T15:28:29+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-12-16T15:28:29+01:00] FATAL: FrozenError: can't modify frozen String

Stacktrace

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Dec 16, 2019

We would probably need the contents of the stacktrace.out file to track this down.

@Kundan22

This comment has been minimized.

Copy link
Author

@Kundan22 Kundan22 commented Dec 17, 2019

@Kundan22

This comment has been minimized.

Copy link
Author

@Kundan22 Kundan22 commented Dec 17, 2019

can you please increase the priority of this issue as we are not able to compile our cookbooks because of this issue.

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

@lamont-granquist lamont-granquist commented Dec 17, 2019

For escalating support issues you should inquire to our sales people about pricing for a support agreement and should be going through our helpdesk.

You can fix the root cause of this yourself though since the problem is going to be that the config_path string is frozen and you can either remove that .freeze or if that comes from somewhere else you should be able to dup the string one way or another to bypass it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.