Esri / arcgis-cookbook

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

Cookbook 3.3.0 required Internet access to http://www.rubygems/org #211

Open emcastro opened 5 years ago

emcastro commented 5 years ago

After upgrading install from Cookbook 3.2.1 to Cookbook 3.3.0, I encountered the following problem.

STDOUT: Fetching source index from https://www.rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/

I don't have access to Internet on this platform, and I won't have any.

Full log:

[2019-04-03T14:09:02+00:00] WARN: *****************************************
[2019-04-03T14:09:02+00:00] WARN: Did not find config file: C:/chef/client.rb, using command line options.
[2019-04-03T14:09:02+00:00] WARN: *****************************************
Starting Chef Client, version 13.12.3
resolving cookbooks for run list: ["arcgis-enterprise::system", "esri-iis", "arcgis-enterprise::server", "arcgis-enterprise::server_wa", "arcgis-enterprise::datastore", "arcgis-enterprise::portal", "arcgis-enterprise::portal_wa", "arcgis-enterprise::federation"]
W, [2019-04-03T14:09:10.642660 #4732]  WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
W, [2019-04-03T14:09:10.752037 #4732]  WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
W, [2019-04-03T14:09:11.611396 #4732]  WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#default defined in Hash. This can cause unexpected behavior when accessing the key as a property. You can still access the key via the #[] method.
Synchronizing Cookbooks:
  - arcgis-enterprise (3.3.0)
  - esri-iis (0.1.1)
  - arcgis-repository (3.3.0)
  - hostsfile (2.4.5)
  - limits (1.0.0)
  - authbind (0.1.10)
  - iptables (1.0.1)
  - windows (4.1.4)
  - windows_firewall (3.0.2)
  - ms_dotnet (3.2.1)
  - nfs (2.3.1)
  - java_properties (0.1.3)
  - openssl (8.1.2)
  - aws (7.3.1)
  - line (0.6.3)
  - sysctl (0.8.1)
  - ohai (5.1.0)
Installing Cookbook Gems:

Running handlers:
[2019-04-03T14:09:18+00:00] ERROR: Running exception handlers
Running handlers complete
[2019-04-03T14:09:18+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 14 seconds
[2019-04-03T14:09:18+00:00] FATAL: Stacktrace dumped to c:/chef/local-mode-cache/cache/chef-stacktrace.out
[2019-04-03T14:09:18+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2019-04-03T14:09:18+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '17'
---- Begin output of bundle install ----
STDOUT: Fetching source index from https://www.rubygems.org/

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://www.rubygems.org/
Could not fetch specs from https://www.rubygems.org/
STDERR: 
---- End output of bundle install ----
Ran bundle install returned 17
pbobov commented 5 years ago

This problem looks similar to https://github.com/Esri/arcgis-cookbook/issues/53.

The only new third-party cookbook used by 3.3.0 is 'aws' and its dependencies.

aws cookbook requires community_cookbook_releaser gem.

# This gemfile provides additional gems for testing and releasing this cookbook
# It is meant to be installed on top of ChefDK which provides the majority
# of the necessary gems for testing this cookbook
#
# Run 'chef exec bundle install' to install these dependencies

source 'https://rubygems.org'

gem 'community_cookbook_releaser'

Please try to install community_cookbook_releaser gem manually as described in https://github.com/Esri/arcgis-cookbook/issues/53.