I'm trying to install the newest version of gitlab. When I try
sudo -u git -H bundle install --deployment --without development test mysql was --verbose
It always shows an error Network error while fetching
, and re-fetches all the packages again when I retry, then the error appears again because my network is not stable. How to tell the bundler not to fetch packages already fetched?
Try adding the bundle install --retry
option:
sudo -u git -H bundle install --retry 4 --deployment --without development test mysql was --verbose
This will retry failed network requests 4 times. From the Bundler Documentation:
--retry: Retry network and git requests that have failed.
Note: if it complains about Unknown switches '--retry'
, then your bundler
version is very old. update it with:
gem update bundler
and then try again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With