# Deployments are failing due to URI dependency

**URL:** <https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375>\
**Category:** Deployment\
**Created:** [August 28, 2024, 2:20pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375 "2024-08-28T14:20:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fitnycdigitalinitiat](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/fitnycdigitalinitiat/32/9211_2.png) [@fitnycdigitalinitiat](https://travis-ci.community/u/fitnycdigitalinitiat)\
**Post date:** [August 28, 2024, 2:20pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/1 "2024-08-28T14:20:15Z")

</div>

Started getting this error yesterday:

```auto
You have already activated uri 0.13.0, but your Gemfile requires uri 0.13.1. Since uri is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports uri as a default gem. (Gem::LoadError)

```

Using deploy v2.0.5-beta also tested it on the default deploy 2 with same error.

---

<div class="post-metadata">

**Author:** ![UTCbridget](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/utcbridget/32/9326_2.png) [@UTCbridget](https://travis-ci.community/u/UTCbridget)\
**Post date:** [August 30, 2024, 1:16pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/2 "2024-08-30T13:16:38Z")

</div>

I’m running into the same error.

---

<div class="post-metadata">

**Author:** ![UTCGilligan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/utcgilligan/32/7122_2.png) [@UTCGilligan](https://travis-ci.community/u/UTCGilligan)\
**Post date:** [August 30, 2024, 1:37pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/3 "2024-08-30T13:37:39Z")

</div>

Same here

> **[Travis CI](https://app.travis-ci.com/github/UTCWeb/particle/builds/272117082?serverType=git)**
>
> Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.

---

<div class="post-metadata">

**Author:** ![fitnycdigitalinitiat](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/fitnycdigitalinitiat/32/9211_2.png) [@fitnycdigitalinitiat](https://travis-ci.community/u/fitnycdigitalinitiat)\
**Post date:** [September 5, 2024, 2:45pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/4 "2024-09-05T14:45:01Z")

</div>

Hello,

Just heard back from support. This worked for me, adding this to the config:

```auto
before_deploy:
  - yes | gem update --system --force
  - gem install bundler
  - gem install uri
  - gem install logger

```

---

<div class="post-metadata">

**Author:** ![frankalbert](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/frankalbert/32/9333_2.png) [@frankalbert](https://travis-ci.community/u/frankalbert)\
**Post date:** [September 17, 2024, 9:17am UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/5 "2024-09-17T09:17:43Z")

</div>

Hello,

We have changed the code to the example you mentioned and in the next release we see the following error:  
`You have already activated uri 0.13.1, but your Gemfile requires uri 0.13.0. Since uri is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports uri as a default gem. (Gem::LoadError)`

So now it tells me that it requires uri versio **0.13.0** instead of 0.13.1, the opposite of the initial one.

I hope you can help me

---

<div class="post-metadata">

**Author:** ![fitnycdigitalinitiat](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/fitnycdigitalinitiat/32/9211_2.png) [@fitnycdigitalinitiat](https://travis-ci.community/u/fitnycdigitalinitiat)\
**Post date:** [September 17, 2024, 1:30pm UTC](https://travis-ci.community/t/deployments-are-failing-due-to-uri-dependency/14375/6 "2024-09-17T13:30:56Z")

</div>

I’m not sure, you might try taking it out. But that’s been working for us. It’s what the Travis support suggested so you might want to try emailing them to see why it’s not working your case.
