Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8009865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:34:18+00:00 2026-06-04T18:34:18+00:00

When attempting to run bundle install or bundle update, bundler will perpetually hang, and

  • 0

When attempting to run bundle install or bundle update, bundler will perpetually hang, and not complete its function. The only time that it will finish is when I specify a gem to update.

For example:

bundle update

Will hang forever unless I use it like this:

bundle update activerecord

Then it will complete as normal.

Any assistance would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:34:20+00:00Added an answer on June 4, 2026 at 6:34 pm

    This problem is due to a missing dependency, or worse a dependency-of-a-dependency. It’s common when you don’t use rubygems.org as your gemserver (an enterprise environment).

    Common patterns:

    • You don’t have that gem installed
    • You don’t have the dependencies of that gem installed
    • You don’t have that gem installed without its dependencies
    • User account that runs a script does not have permissions to install that gem

    Easiest Technique

    create a new gemset, and re-bundle. This fixes the problem many times.

    If you can’t do that for production reasons, and you don’t have an app history from which to reflect on when the problem gem was added, then:


    Easier Technique

    Having learned a bit since writing this answer, I thought I’d pass on this excellent article for how to run bundler with verbose debug output

    export DEBUG_RESOLVER=1
    bundle  2> debug_output.txt 1> stdio.txt &
    

    This will dump all the debugging (err) output to debug_output.txt and the normal screen stuff to stdio.txt.

    You’ll want to dump 1> as well because every time bundler dumps a line to 2(stderr) it will put a crlf into 1. So Either dump 1 or background the job. I do both so I can work in the same terminal.

    I usually follow it up with:

    tail stdio.txt 
    

    to be sure things have started, then:

    tail -n 10000 -f debug_output.txt 
    

    To search with /FAIL] through the file for failed attempts to install a dependency. Find a couple of them that are the same and you’ve generally located your culprit. The stderr works for bundle install or bundle update.


    Debug Your Private Gemserver Technique

    I needed to use this process-of-elimination method to determine that my (enterprise) gemserver index had become corrupted

    1. comment out all gems
    2. run bundle update to confirm the empty-set works
    3. un-comment one gem and bundle update
    4. GOTO 3 until you hit the problem
    5. research its dependencies

    When you are done

    Unset the ENV var with

    unset DEBUG_RESOLVER


    Solution for permissions

    Ensure that the credentials in your GITHUB_TOKEN matches your bundle config --global github.com <your token>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to run a RoR app locally for the first time. I've started
I'm attempting to run a report which will give me daily plot sales over
I'm attempting to update my existing rails app (3.0.3) to 3.1.0.beta1. I've install the
I am attempting to run a program that will find a new value for
In attempting to run an external program in Powershell, the only way I have
When I am attempting to run "INSERT IGNORE ..." in MYSQL to add only
I am attempting to run this JS function when a user clicks on a
I am attempting to run the following code snippet: var myVar1 = $.getJSON('myurl', function(json)
When attempting to run the first example in the boost::mpi tutorial , I was
When attempting to run the following assembly program: .globl start start: pushq $0x0 movq

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.