AWS S3 deploy fails to run

I am seeing failures when trying to deploy build artifacts to AWS S3 in the Windows environment.

For example in this build:
https://travis-ci.org/krpc/krpc/jobs/592796754

It fails with the following errors:

travis_fold:end:dpl.1
failed to deploy
C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:22: warning: constant Struct::Tms is deprecated
C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:22: warning: constant Struct::Tms is deprecated
C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:22: warning: constant Struct::Tms is deprecated
C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/seahorse/client/net_http/handler.rb:21:in `': uninitialized constant Seahorse::Client::NetHttp::Handler::Timeout (NameError)
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/seahorse/client/net_http/handler.rb:9:in `'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/seahorse/client/net_http/handler.rb:5:in `'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/seahorse/client/net_http/handler.rb:4:in `'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/seahorse/client/net_http/handler.rb:3:in `'
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:21:in `block in load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `each'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:23:in `block in load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `each'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:23:in `block in load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `each'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core/eager_loader.rb:18:in `load'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/aws-sdk-core-2.11.366/lib/aws-sdk-core.rb:546:in `eager_autoload!'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-s3-1.10.13/lib/dpl/provider/s3.rb:6:in `'
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:93:in `rescue in block in new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:68:in `block in new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:41:in `fold'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:67:in `new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:31:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:7:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/bin/dpl:5:in `'
	from C:/tools/ruby26/bin/dpl:23:in `load'
	from C:/tools/ruby26/bin/dpl:23:in `'
C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dpl/provider/s3 (LoadError)
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:93:in `rescue in block in new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:68:in `block in new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:41:in `fold'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:67:in `new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:31:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:7:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/bin/dpl:5:in `'
	from C:/tools/ruby26/bin/dpl:23:in `load'
	from C:/tools/ruby26/bin/dpl:23:in `'
C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- dpl/provider/s3 (LoadError)
	from C:/tools/ruby26/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:73:in `block in new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:41:in `fold'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/provider.rb:67:in `new'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:31:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/lib/dpl/cli.rb:7:in `run'
	from C:/tools/ruby26/lib/ruby/gems/2.6.0/gems/dpl-1.10.13/bin/dpl:5:in `'
	from C:/tools/ruby26/bin/dpl:23:in `load'
	from C:/tools/ruby26/bin/dpl:23:in `'

This was previously working, e.g. on the 25th Sepetember with this build:
https://travis-ci.org/krpc/krpc/jobs/589645502

2 Likes

Same error here, on two different repos (one JS project one C++ project). It’s been down all day.

Same here, we cannot deploy new versions. Please fix it :pray::pray::pray::pray:

Same here.

I would like to confirm that all these failures are confined to Windows.

Yes I am only having this issue in the Windows environment.

The following build contains two jobs: one which successfully deploys to S3 using a Linux environment, and a second which fails to deploy to S3 in a Windows environment:
https://travis-ci.org/krpc/krpc/builds/592796752

They use the same config for the deployment.

Thanks. I’m still unsure why it only fails on Windows, but I think that the new v2 might work for you on Windows.

deploy:
  provider: s3
  edge: true
  ⋮ # rest

Could you try that?

2 Likes

That works - thanks :slight_smile:

Here’s the build I used to test it: https://travis-ci.org/krpc/krpc/builds/593126993

Imprint