Closed df-sloughton closed 3 weeks ago
Hi @df-sloughton,
Looks like the ruby gem docker-api 1.34.2 depends on ruby gem excon, and the excon gem was recently updated from [0.110.0](https://rubygems.org/gems/excon/versions/0.110.0 to 0.111.0 on July 8th.
[2024-08-02T06:23:46+00:00] FATAL: FrozenError: can't modify frozen Array: [:allow_unstubbed_requests, :body, :chunk_size, :debug_request, :debug_response, :dns_timeouts, :headers, :instrumentor, :logger, :method, :middlewares, :password, :path, :persistent, :pipeline, :query, :read_timeout, :request_block, :resolv_resolver, :response_block, :stubs, :timeout, :user, :versions, :write_timeout]
Based on the error above and when we compare the difference between the excon versions, we suspect this commit broke it (.freeze
was added):
In cookbooks 4.0.0 we use docker cookbook 4.12. Perhaps the docker cookbook 4.12 is modifying the array which is no longer allowed.
Can you try with cookbook 5.0.0? https://github.com/Esri/arcgis-cookbook/releases/tag/v5.0.0
I was able to get 10.9.1 Notebook Server to completely deploy (including docker) using 5.0.0. I suspect this is because we updated docker cookbook to 11.3.4, which also updated the docker-api gem to 2.3.0 which works well with excon 0.111.0.
Thanks, Cameron K.
@df-sloughton I found a workaround that will allow you to continue to use cookbooks 4.0.0.
/opt/cinc/embedded/bin/gem list | grep excon
/opt/cinc/embedded/bin/gem uninstall excon -v 0.111.0
/opt/cinc/embedded/bin/gem install excon -v 0.110.0
/opt/cinc/embedded/bin/gem list | grep docker-api
/opt/cinc/embedded/bin/gem install docker-api -v 1.34.2
etc/cinc/client.rb
(if it does not exist, create it), or if using Chef (/etc/chef/client.rb
) put:
skip_gem_metadata_installation true
@df-sloughton we have patched the arcgis-notebooks cookbook for several versions of arcgis cookbooks (3.8.0, 4.0.0, 4.1.0, and 4.2.0). So if you still need to use v4.0.0, feel free to re-download it from here:
Yes the patched v4.0.0 worked well again, thanks for prompt response.
Has something potentially happened recently for docker not being made available via chef arcgis 4.0.0 This has deployed successfully for months and now it wont.
OS: Ubuntu Linux 22.02 ArcGIS Enterprise 10.9.1 Chef ArcGIS Cookbooks 4.0.0
Docker-api is there in gen list: