Github-release fail after ruby version update

github release deployment fail
the change i noticed is ruby version changed from ruby-2.7.1 to ruby-3.1.2
and the issue is from faraday-0.15.4

home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:166:in `new': tried to create Proc object without a block (ArgumentError)

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:166:in `memoized'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:247:in `<class:ProxyOptions>'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:229:in `<module:Faraday>'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday.rb:80:in `block in require_libs'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday.rb:79:in `each'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday.rb:79:in `require_libs'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday.rb:242:in `<module:Faraday>'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday.rb:16:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/sawyer-0.8.2/lib/sawyer/agent.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/sawyer-0.8.2/lib/sawyer.rb:17:in `block in <top (required)>'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/sawyer-0.8.2/lib/sawyer.rb:17:in `each'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/sawyer-0.8.2/lib/sawyer.rb:17:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/octokit-4.6.2/lib/octokit/connection.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/octokit-4.6.2/lib/octokit/client.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/octokit-4.6.2/lib/octokit.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-releases-1.10.16/lib/dpl/provider/releases.rb:1:in `<top (required)>'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:149:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:93:in `rescue in block in new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:68:in `block in new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:41:in `fold'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:67:in `new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:31:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:7:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/bin/dpl:5:in `<top (required)>'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `load'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `<main>'

<internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- dpl/provider/releases (LoadError)

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:93:in `rescue in block in new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:68:in `block in new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:41:in `fold'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:67:in `new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:31:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:7:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/bin/dpl:5:in `<top (required)>'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `load'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `<main>'

<internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- dpl/provider/releases (LoadError)

	from <internal:/home/travis/.rvm/rubies/ruby-3.1.2/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:73:in `block in new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:41:in `fold'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/provider.rb:67:in `new'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:31:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/lib/dpl/cli.rb:7:in `run'

	from /home/travis/.rvm/gems/ruby-3.1.2/gems/dpl-1.10.16/bin/dpl:5:in `<top (required)>'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `load'

	from /home/travis/.rvm/gems/ruby-3.1.2/bin/dpl:25:in `<main>'

failed to deploy
1 Like

Any fix for this? I’m running into the same issue…

removed group: edge from travis.yml
fixed for me

I actually don’t have

group: edge

in my travis.yml What section was it located in?

I don’t have

group: edge

in my travis.yml. What section did you have that in?

at the first of the script

language: java
os: linux
dist: focal
group: edge

removed it to be like this

language: java
os: linux
dist: focal

Hey folks

Apologies for incovenience - edge images (accessed via group: edge ) are the ones being constantly worked on. Once Travis CI crew deems an specific version of edge image stable, it gets promoted to ‘regular’ channel.
The issue with edge image & Ruby version is worked on with fix coming soon.

Update: build environment images were updated both in edge and stable channel in order to fix Ruby version issue.

1 Like

the problem is still relevant

Hello @Michal,

We are running into a similar issue when upgrading from focal to jammy. Do you know why the following is not working?

Thank you for your time,
Dennis

Installing deploy dependencies
  Successfully installed public_suffix-3.0.3
  Successfully installed multipart-post-2.2.3
  Successfully installed faraday-0.15.4
  Successfully installed addressable-2.8.1
  Successfully installed sawyer-0.8.2
  Successfully installed octokit-4.6.2
  Successfully installed mime-types-data-3.2022.0105
  Successfully installed mime-types-3.4.1
  Successfully installed dpl-releases-1.10.16
  9 gems installed

/home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:166:in `new': tried to create Proc object without a block (ArgumentError)
	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:166:in `memoized'
	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:247:in `<class:ProxyOptions>'
	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:229:in `<module:Faraday>'
	from /home/travis/.rvm/gems/ruby-3.1.2/gems/faraday-0.15.4/lib/faraday/options.rb:1:in `<top (required)>'

I have the same issue with Jammy. Did you found any solution in the meantime?

same issue here when upgrading to jammy, we have no mention of group: edge in our travis.yml

I’ve just found this post. I think I have similar issue: Ubuntu jammy: Installing deploy dependencies: failed to deploy (I also included links to my .travis.yml and to the full build log in my report).

I’ve received the following information from Travis support:

It seems jammy doesn’t support ruby versions below v3.x. Since our deployment tool[1] relies on a lower version due to some dependencies, this was raised with our engineering team for a fix to be made. Please keep an eye out on our changelog for further correspondence in this regard.

[1] GitHub - travis-ci/dpl: Dpl (dee-pee-ell) is a deploy tool made for continuous deployment.