Unicorn searching about GemFile in old release

Posted October 8, 2019 927 views
Ruby on Rails

Guys, I have old rails applications, the environment versions
Rails 4.2.6
ruby 2.3.3p222
I notice in the unicorn log file that it’s searching about the GemFile in old release which it’s not in the server because Capistrano keeping the last 5 releases only!!
so unicorn it’s giving me the below error

/home/deploy/.rvm/gems/ruby-2.3.3/gems/bundler-1.17.3/lib/bundler/definition.rb:32:in `build’: /home/deploy/app/releases/20180112082105/Gemfile not found (Bundler::GemfileNotFound)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

I’ve had a similar issue in the past and restarting the Unicorn server solved it.

@iskamwebsite Already restarted it but still got the same error