rake stemcell:micro failing - cp: cannot stat `/tmp/all_the_gems/rack-protection-*.gem'
$ rake stemcell:micro[...]
rm -f pkg/agent_client-1.5.0.pre.gem
mkdir -p pkg
cd agent_client && gem build agent_client.gemspec && mv agent_client-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: agent_client
Version: 1.5.0.pre
File: agent_client-1.5.0.pre.gem
rm -f pkg/bosh_aws_bootstrap-1.5.0.pre.gem
cd bosh_aws_bootstrap && gem build bosh_aws_bootstrap.gemspec && mv bosh_aws_bootstrap-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_aws_bootstrap
Version: 1.5.0.pre
File: bosh_aws_bootstrap-1.5.0.pre.gem
rm -f pkg/bosh_aws_cpi-1.5.0.pre.gem
cd bosh_aws_cpi && gem build bosh_aws_cpi.gemspec && mv bosh_aws_cpi-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_aws_cpi
Version: 1.5.0.pre
File: bosh_aws_cpi-1.5.0.pre.gem
rm -f pkg/bosh_aws_registry-1.5.0.pre.gem
cd bosh_aws_registry && gem build bosh_aws_registry.gemspec && mv bosh_aws_registry-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_aws_registry
Version: 1.5.0.pre
File: bosh_aws_registry-1.5.0.pre.gem
rm -f pkg/blobstore_client-1.5.0.pre.gem
cd blobstore_client && gem build blobstore_client.gemspec && mv blobstore_client-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: no description specified
Successfully built RubyGem
Name: blobstore_client
Version: 1.5.0.pre
File: blobstore_client-1.5.0.pre.gem
rm -f pkg/bosh_agent-1.5.0.pre.gem
cd bosh_agent && gem build bosh_agent.gemspec && mv bosh_agent-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
Successfully built RubyGem
Name: bosh_agent
Version: 1.5.0.pre
File: bosh_agent-1.5.0.pre.gem
rm -f pkg/bosh_cli-1.5.0.pre.gem
cd bosh_cli && gem build bosh_cli.gemspec && mv bosh_cli-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
Successfully built RubyGem
Name: bosh_cli
Version: 1.5.0.pre
File: bosh_cli-1.5.0.pre.gem
rm -f pkg/bosh_common-1.5.0.pre.gem
cd bosh_common && gem build bosh_common.gemspec && mv bosh_common-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_common
Version: 1.5.0.pre
File: bosh_common-1.5.0.pre.gem
rm -f pkg/bosh_cpi-1.5.0.pre.gem
cd bosh_cpi && gem build bosh_cpi.gemspec && mv bosh_cpi-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_cpi
Version: 1.5.0.pre
File: bosh_cpi-1.5.0.pre.gem
rm -f pkg/bosh_deployer-1.5.0.pre.gem
cd bosh_deployer && gem build bosh_deployer.gemspec && mv bosh_deployer-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_deployer
Version: 1.5.0.pre
File: bosh_deployer-1.5.0.pre.gem
rm -f pkg/director-1.5.0.pre.gem
cd director && gem build director.gemspec && mv director-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: director
Version: 1.5.0.pre
File: director-1.5.0.pre.gem
rm -f pkg/bosh_encryption-1.5.0.pre.gem
cd bosh_encryption && gem build bosh_encryption.gemspec && mv bosh_encryption-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_encryption
Version: 1.5.0.pre
File: bosh_encryption-1.5.0.pre.gem
rm -f pkg/health_monitor-1.5.0.pre.gem
cd health_monitor && gem build health_monitor.gemspec && mv health_monitor-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: health_monitor
Version: 1.5.0.pre
File: health_monitor-1.5.0.pre.gem
rm -f pkg/monit_api-1.5.0.pre.gem
cd monit_api && gem build monit_api.gemspec && mv monit_api-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: monit_api
Version: 1.5.0.pre
File: monit_api-1.5.0.pre.gem
rm -f pkg/bosh_openstack_registry-1.5.0.pre.gem
cd bosh_openstack_registry && gem build bosh_openstack_registry.gemspec && mv bosh_openstack_registry-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_openstack_registry
Version: 1.5.0.pre
File: bosh_openstack_registry-1.5.0.pre.gem
rm -f pkg/package_compiler-1.5.0.pre.gem
cd package_compiler && gem build package_compiler.gemspec && mv package_compiler-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: package_compiler
Version: 1.5.0.pre
File: package_compiler-1.5.0.pre.gem
rm -f pkg/ruby_vcloud_sdk-1.5.0.pre.gem
cd ruby_vcloud_sdk && gem build ruby_vcloud_sdk.gemspec && mv ruby_vcloud_sdk-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: ruby_vcloud_sdk
Version: 1.5.0.pre
File: ruby_vcloud_sdk-1.5.0.pre.gem
rm -f pkg/ruby_vim_sdk-1.5.0.pre.gem
cd ruby_vim_sdk && gem build ruby_vim_sdk.gemspec && mv ruby_vim_sdk-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: ruby_vim_sdk
Version: 1.5.0.pre
File: ruby_vim_sdk-1.5.0.pre.gem
rm -f pkg/simple_blobstore_server-1.5.0.pre.gem
cd simple_blobstore_server && gem build simple_blobstore_server.gemspec && mv simple_blobstore_server-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: simple_blobstore_server
Version: 1.5.0.pre
File: simple_blobstore_server-1.5.0.pre.gem
rm -f pkg/bosh_vcloud_cpi-1.5.0.pre.gem
cd bosh_vcloud_cpi && gem build bosh_vcloud_cpi.gemspec && mv bosh_vcloud_cpi-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_vcloud_cpi
Version: 1.5.0.pre
File: bosh_vcloud_cpi-1.5.0.pre.gem
rm -f pkg/bosh_vsphere_cpi-1.5.0.pre.gem
cd bosh_vsphere_cpi && gem build bosh_vsphere_cpi.gemspec && mv bosh_vsphere_cpi-1.5.0.pre.gem /var/vcap/store/repos/bosh/pkg/
WARNING: description and summary are identical
Successfully built RubyGem
Name: bosh_vsphere_cpi
Version: 1.5.0.pre
File: bosh_vsphere_cpi-1.5.0.pre.gem
rm -rf /tmp/all_the_gems
mkdir -p /tmp/all_the_gems
cp /var/vcap/store/repos/bosh/pkg/*.gem /tmp/all_the_gems
cp /var/vcap/store/repos/bosh/vendor/cache/*.gem /tmp/all_the_gems
rm -rf /var/vcap/store/repos/bosh/release/src/bosh/agent_client
mkdir -p /var/vcap/store/repos/bosh/release/src/bosh/agent_client
cp /tmp/all_the_gems/httpclient-*.gem .
cp /tmp/all_the_gems/yajl-ruby-*.gem .
cp /tmp/all_the_gems/agent_client-*.gem .
rm -rf /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_bootstrap
mkdir -p /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_bootstrap
cp /tmp/all_the_gems/multi_json-*.gem .
cp /tmp/all_the_gems/multi_xml-*.gem .
cp /tmp/all_the_gems/httparty-*.gem .
cp /tmp/all_the_gems/json-*.gem .
cp /tmp/all_the_gems/nokogiri-*.gem .
cp /tmp/all_the_gems/uuidtools-*.gem .
cp /tmp/all_the_gems/aws-sdk-*.gem .
cp /tmp/all_the_gems/bosh_common-*.gem .
cp /tmp/all_the_gems/builder-*.gem .
cp /tmp/all_the_gems/excon-*.gem .
cp /tmp/all_the_gems/formatador-*.gem .
cp /tmp/all_the_gems/mime-types-*.gem .
cp /tmp/all_the_gems/net-ssh-*.gem .
cp /tmp/all_the_gems/net-scp-*.gem .
cp /tmp/all_the_gems/ruby-hmac-*.gem .
cp /tmp/all_the_gems/fog-*.gem .
cp /tmp/all_the_gems/httpclient-*.gem .
cp /tmp/all_the_gems/log4r-*.gem .
cp /tmp/all_the_gems/ruby-atmos-pure-*.gem .
cp /tmp/all_the_gems/blobstore_client-*.gem .
cp /tmp/all_the_gems/highline-*.gem .
cp /tmp/all_the_gems/json_pure-*.gem .
cp /tmp/all_the_gems/net-ssh-gateway-*.gem .
cp /tmp/all_the_gems/netaddr-*.gem .
cp /tmp/all_the_gems/progressbar-*.gem .
cp /tmp/all_the_gems/terminal-table-*.gem .
cp /tmp/all_the_gems/bosh_cli-*.gem .
cp /tmp/all_the_gems/bosh_aws_bootstrap-*.gem .
rm -rf /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_cpi
mkdir -p /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_cpi
cp /tmp/all_the_gems/multi_json-*.gem .
cp /tmp/all_the_gems/multi_xml-*.gem .
cp /tmp/all_the_gems/httparty-*.gem .
cp /tmp/all_the_gems/json-*.gem .
cp /tmp/all_the_gems/nokogiri-*.gem .
cp /tmp/all_the_gems/uuidtools-*.gem .
cp /tmp/all_the_gems/aws-sdk-*.gem .
cp /tmp/all_the_gems/bosh_common-*.gem .
cp /tmp/all_the_gems/bosh_cpi-*.gem .
cp /tmp/all_the_gems/httpclient-*.gem .
cp /tmp/all_the_gems/yajl-ruby-*.gem .
cp /tmp/all_the_gems/bosh_aws_cpi-*.gem .
rm -rf /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_registry
mkdir -p /var/vcap/store/repos/bosh/release/src/bosh/bosh_aws_registry
cp /tmp/all_the_gems/multi_json-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/multi_xml-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/httparty-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/json-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/nokogiri-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/uuidtools-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/aws-sdk-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/sequel-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/rack-*.gem .
cp /tmp/all_the_gems/pg*.gem .
cp /tmp/all_the_gems/rack-protection-*.gem .
cp: cannot stat `/tmp/all_the_gems/rack-protection-*.gem': No such file or directory
rake aborted!
Command failed with status (1): [cp /tmp/all_the_gems/rack-protection-*.gem...]
/var/vcap/store/repos/bosh/rake/gem.rake:52:in `block (5 levels) in <top (required)>'
/var/vcap/store/repos/bosh/rake/gem.rake:48:in `block (4 levels) in <top (required)>'
/var/vcap/store/repos/bosh/rake/gem.rake:47:in `chdir'
/var/vcap/store/repos/bosh/rake/gem.rake:47:in `block (3 levels) in <top (required)>'
Tasks: TOP => stemcell:micro => all:build_with_deps => bosh_aws_registry:build_with_deps => bosh_aws_registry:gem_with_deps
(See full trace by running task with --trace)
It's blowing up in this rake task in gem.rake:
task :gem_with_deps => 'all:prepare_all_gems' do
dirname = "#{root}/release/src/bosh/#{component}"
rm_rf dirname
mkdir_p dirname
Dir.chdir dirname do
Bundler::Resolver.resolve(
Bundler.definition.send(:expand_dependencies, Bundler.definition.dependencies.select{|d| d.name == component}),
Bundler.definition.index
).each do |spec|
sh "cp /tmp/all_the_gems/#{spec.name}-*.gem ."
sh "cp /tmp/all_the_gems/pg*.gem ." if COMPONENTS_WITH_PG.include?(component)
end
end
end
Are you still having this issue? Another issue you opened seemed to suggest you got past this. How did you resolve it? I have run into similar issues when using an older version of ruby. Ideally you would be using ruby 1.9.3p327 or above.
I'm now seeing a similar error but different files that can't be found #44
Which version of ruby are you using. Also do you happend to know if it was compiled with libxml support or not?
@rkoster discovered that the following gems need to be uninstalled before running the rake task:
https://github.com/StarkAndWayne/bosh-bootstrap/commit/68b919288c67ffa4d6357cab0ce0162e0bdacf63
This was a bug in the dependency resolution phase of the build scripts. It's has been fixed. Please reopen if you see this again.