capistrano / bundler

Bundler support for Capistrano 3.x
MIT License
219 stars 83 forks source link

cap deploy gets stuck at [bundler:install] Checking Gemfile and Gemfile.lock changes #134

Closed gajendrajena closed 1 month ago

gajendrajena commented 1 month ago

just facing this issue from last couple of weeks.

deploy gets stuck at[bundler:install] Checking Gemfile and Gemfile.lock changes Surprisingly bundle install on the release folder works fine.

image

ruby version: 2.7.3 bundler: 2.4.22 rails (6.1.6)

image

git diff --name-only ...shows around 50 file changes, but the changes are very minimal.

I had this issue earlier, when I split the commit to smaller chunks, it worked fine. But when I squashed and try them in another environment it failed again.

there was an old closed issue #50

mattbrictson commented 1 month ago

Hi @gajendrajena , do you know where the "Checking Gemfile and Gemfile.lock changes" message is coming from? I don't believe that is being logged by capistrano-bundler (I searched through the source code and couldn't find it).

gajendrajena commented 1 month ago

I also couldn't find any?

mattbrictson commented 1 month ago

I searched GitHub and found this project: https://github.com/ifool/capistrano-faster-rails . Are you using that?

I'm not familiar with the project, so I can't say for sure if it might be causing the problem you're seeing. Maybe you could try removing it and see if the bundler:install step works without it.

mattbrictson commented 1 month ago

Here's where I found the log message: https://github.com/ifool/capistrano-faster-rails/blob/6d5f289352a6f3a835d2a4fdfd4c1001bef9ae78/lib/capistrano/tasks/faster-rails.rake#L64

gajendrajena commented 1 month ago

thanks @mattbrictson removing the capistrano-faster-rails worked, saved my day. the irony is I have lost 10x time troubleshooting this, than I have saved on deploy

mattbrictson commented 1 month ago

Glad you got it working! Cheers