Build job fails before deploy phase

Hi,
We’ve encountered the same problem mentioned in this topic. It was resolved by upgrading from focal to noble, but some builds are now failing with a different issue (see below). This new issue usually resolves itself by restarting the job. It occurs after the script phase finishes and before the deploy phase begins.

The command "./scripts/docker-build" exited with 0.
cache.2
store build cache
1.10s$ rvm use 2 --fuzzy do ruby -S gem install dpl -v ''
ERROR:  Loading command: install (LoadError)
	cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
The command "rvm use 2 --fuzzy do ruby -S gem install dpl -v ''" failed and exited with 1 during .
Your build has been stopped.

Does anyone have any suggestion how to fix/hotfix this?

Hi @ZukalJakub,

Can I see the build link?

It seems notable that it’s the same rvm use 2 ... form of the command that is breaking, was it the other that worked for you in some builds too?

It would seem that something has been broken on the Travis side.

Sure, here. Thanks.

Builds on focal fail every time with the same error, just like in your topic. On noble, about half of the builds pass successfully on first try.

We are facing the same issue. We have dist as jammy. It is failing on deploy section. sometimes it works when we restart build.

1 Like

Same issue… we’re building a node app and don’t reference anything ruby in our .travis.yml.

rvm use 2 ... while defaulting to a version of dpl that requires ruby version >= 3 will cause it to fail no matter what.

Setting dpl_version: 1.10.16 in the deploy section lets me get past that section but gives me more errors.

Previous successful builds would use ruby version 3.

Hi all,

This should be solved.

1 Like