Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
300 stars 116 forks source link

LoadError: cannot load such file -- java-properties/version #261

Closed jesa-esrich closed 4 years ago

jesa-esrich commented 4 years ago

Currently testing the new Chef Cookbook 3.6.1 to install ArcGIS Server 10.8.1 and already receive an error when installing the Gems and compiling the Cookbooks:

_Recipe Compile Error in c:/chef/local-mode-cache/cache/cookbooks/java_properties/libraries/java_propertiesresource.rb LoadError cannot load such file -- java-properties/version

Environment:

System Info:

I have checked the mentioned file and it is available in the folder and it's not blocked. Does anyone know what could cause this error? I have never received such error when working with the ArcGIS Cookbooks.

The chef-stacktrace.out is posted in the comments.

jesa-esrich commented 4 years ago

chef-stacktrace.out

_LoadError: cannot load such file -- java-properties/version C:/opscode/chef/embedded/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' C:/opscode/chef/embedded/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:inrequire' c:/Chef/local-mode-cache/cache/cookbooks/java_properties/files/default/vendor/gems/java-properties-0.0.2/lib/java-properties.rb:2:in <top (required)>' C:/opscode/chef/embedded/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:inrequire' C:/opscode/chef/embedded/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in require' c:/chef/local-mode-cache/cache/cookbooks/java_properties/libraries/java_properties_resource.rb:5:in<top (required)>' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:229:in load' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:229:inblock in load_libraries_from_cookbook' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:224:in each' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:224:inload_libraries_from_cookbook' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:103:in block in compile_libraries' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:102:ineach' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:102:in compile_libraries' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context/cookbook_compiler.rb:74:incompile' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/run_context.rb:201:in load' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/policy_builder/expand_node_object.rb:97:insetup_run_context' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/client.rb:515:in setup_run_context' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/client.rb:281:inrun' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application.rb:303:in run_with_graceful_exit_option' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application.rb:279:inblock in run_chef_client' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/local_mode.rb:44:in with_server_connectivity' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application.rb:261:inrun_chef_client' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application/client.rb:449:in run_application' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application.rb:66:inrun' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/lib/chef/application/solo.rb:229:in run' C:/opscode/chef/embedded/lib/ruby/gems/2.5.0/gems/chef-14.14.29-universal-mingw32/bin/chef-solo:24:in<top (required)>' C:/opscode/chef/bin/chef-solo:81:in load' C:/opscode/chef/bin/chef-solo:81:in

'_

jesa-esrich commented 4 years ago

Installing the gem java-properties-0.0.2 helped resolve the problem: https://rubygems.org/gems/java-properties/versions/0.0.2 However I never had to this before. Normally the gems would have been fetched from the web if they were missing...