502 Bad Gateway on bundle install

Joakim's Avatar


29 May, 2017 09:04 AM


I'm getting the following error when running bundle install:

Fetching gem metadata from http://rubygems.org/..Retrying dependency api due to error (2/3): Bundler::HTTPError Net::HTTPBadGateway: 
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    <title>502 Bad Gateway</title>
    <h1>Error 502 Bad Gateway</h1>
    <p>Bad Gateway</p>
    <h3>Guru Mediation:</h3>
    <p>Details: cache-iad2127-IAD 1496048211 1959888566</p>
    <p>Varnish cache server</p>

The machine in question is running on AWS EC2 in us-east-1. I do not get this error on my local machine.

  1. Support Staff 1 Posted by Aditya Prakash on 09 Jun, 2017 06:51 AM

    Aditya Prakash's Avatar

    Hi Joakim,

    Please try upgrading your bundler version.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac