s3_file icon indicating copy to clipboard operation
s3_file copied to clipboard

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

Open fen9li opened this issue 2 years ago • 0 comments

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.

fen9li avatar Oct 18 '22 21:10 fen9li