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

mime-types needs to upgrade to support chef client 17.10.3/Ruby 3.0+ #127

Open
fen9li opened this issue Oct 18, 2022 · 0 comments
Open

mime-types needs to upgrade to support chef client 17.10.3/Ruby 3.0+ #127

fen9li opened this issue Oct 18, 2022 · 0 comments

Comments

@fen9li
Copy link

fen9li commented Oct 18, 2022

Hello,

I was using s3_file in a cookbook, and came cross below error with chef client 17.10.3/Ruby 3.0 :

[2022-10-18T20:55:25.312Z]          Recipe: s3_file::dependencies
[2022-10-18T20:55:25.877Z]            * chef_gem[mime-types] action install
[2022-10-18T20:55:25.877Z]              - install version 2.6.2 of package mime-types
[2022-10-18T20:55:27.248Z]            * chef_gem[rest-client] action install
[2022-10-18T20:55:27.248Z]              - install version 1.7.3 of package rest-client
...
[2022-10-18T20:55:33.811Z]        [2022-10-18T20:55:32+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2022-10-18T20:55:33.811Z]        [2022-10-18T20:55:32+00:00] FATAL: ---------------------------------------------------------------------------------------
[2022-10-18T20:55:33.811Z]        [2022-10-18T20:55:32+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2022-10-18T20:55:33.811Z]        [2022-10-18T20:55:32+00:00] FATAL: ---------------------------------------------------------------------------------------
[2022-10-18T20:55:33.811Z]        [2022-10-18T20:55:32+00:00] FATAL: SyntaxError: /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/mime-types-2.6.2/lib/mime/types/logger.rb:26: _1 is reserved for numbered parameter
[2022-10-18T20:55:33.811Z]        /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/mime-types-2.6.2/lib/mime/types/logger.rb:26: _2 is reserved for numbered parameter
[2022-10-18T20:55:33.811Z]        /opt/chef/embedded/lib/ruby/gems/3.0.0/gems/mime-types-2.6.2/lib/mime/types/logger.rb:26: _3 is reserved for numbered parameter
[2022-10-18T20:55:33.811Z] >>>>>> ------Exception-------
[2022-10-18T20:55:33.811Z] >>>>>> Class: Kitchen::ActionFailed

Sounds like mime-types needs to be upgraded to 3.3+? Could you please help? Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant