# Xenial build/deployment failure to initialise deployment scripts ("Error installing dpl")

**URL:** <https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602>\
**Category:** Deployment\
**Created:** [April 15, 2025, 11:22am UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602 "2025-04-15T11:22:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrg](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jrg/32/8078_2.png) [@jrg](https://travis-ci.community/u/jrg)\
**Post date:** [April 15, 2025, 11:22am UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/1 "2025-04-15T11:22:34Z")

</div>

Our builds have started failing, _sometimes_, with a ruby gem related error. I believe it’s when the “deploy” section prepares to be run as it’s not from our own scripts. The build log records:

```auto
$ rvm use 2 --fuzzy do ruby -S gem install dpl -v ''
ERROR: Error installing dpl:
	The last version of dpl (>= 0) to support your Ruby & RubyGems was 1.10.16. Try installing it with `gem install dpl -v 1.10.16`
	dpl requires Ruby version >= 3.1. The current ruby version is 2.7.6.219.

```

The “Build system information” is identified as:

```auto
Build language: java
Build dist: xenial
...
travis-build version: 7c7c1d60

```

The versions of every tool in the Build System information section are identical, including the alleged default ruby version being `ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]`.

(edited to reflect realisation that Build ID is not the ID of the build distribution image)

---

<div class="post-metadata">

**Author:** ![jrg](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jrg/32/8078_2.png) [@jrg](https://travis-ci.community/u/jrg)\
**Post date:** [April 15, 2025, 1:53pm UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/2 "2025-04-15T13:53:24Z")

</div>

ok, I was initially assuming that the Build ID was the build of the Xenial image, but I’ve now realised that it’s the actual build id of our builds.

The “travis-build version” is the same both when it works and when it doesn’t:

```auto
travis-build version: 7c7c1d60

```

So, when it works, the dpl command in the log looks like:

```auto
$ rvm use $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl -v 2.0.5.1

```

---

<div class="post-metadata">

**Author:** ![acacopardo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/acacopardo/32/2434_2.png) [@acacopardo](https://travis-ci.community/u/acacopardo)\
**Post date:** [April 16, 2025, 12:11pm UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/3 "2025-04-16T12:11:52Z")

</div>

We have the same issue.

---

<div class="post-metadata">

**Author:** ![kpatidarsecben](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kpatidarsecben/32/9485_2.png) [@kpatidarsecben](https://travis-ci.community/u/kpatidarsecben)\
**Post date:** [April 16, 2025, 12:56pm UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/4 "2025-04-16T12:56:04Z")

</div>

We are facing the same issue. We have dist as **jammy**. It is failing on deploy section.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/3/3cc5d16fa082ec262a5d805c58b9235a16b99dde.png)

---

<div class="post-metadata">

**Author:** ![ArtemPWG](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/artempwg/32/9492_2.png) [@ArtemPWG](https://travis-ci.community/u/ArtemPWG)\
**Post date:** [April 17, 2025, 9:19am UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/5 "2025-04-17T09:19:26Z")

</div>

Getting the same issue with `xenial` dist, jobs failing randomly on deploy section

 ![image](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/c/c085fedf5fe91df9fa4fabf24ad22f9a272be516.png)

---

<div class="post-metadata">

**Author:** ![lily-vu-goldenowl](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/lily-vu-goldenowl/32/9493_2.png) [@lily-vu-goldenowl](https://travis-ci.community/u/lily-vu-goldenowl)\
**Post date:** [April 17, 2025, 9:49am UTC](https://travis-ci.community/t/xenial-build-deployment-failure-to-initialise-deployment-scripts-error-installing-dpl/14602/6 "2025-04-17T09:49:12Z")

</div>

Hi, I got the same issue today.  
Currently, the travis-ci runs this command as the default.

```auto
rvm use 2 --fuzzy do ruby -S gem install dpl -v ''

```

It used to successfully deploy with another default command

```auto
rvm use $(travis_internal_ruby) --fuzzy do ruby -S gem install dpl -v 2.0.5.1

```

 ![Screenshot 2025-04-17 at 16.20.48](https://us1.discourse-cdn.com/flex015/uploads/travis_ci/original/2X/a/a4dc67bfa77ef4df2a93482d8d8726a1542b3c11.png)
