Ruby bundle install error - ruby-on-rails

I'm trying to install forem on my server, and i'm getting this error when I run bundle install:
Fetching git://github.com/radar/forem.git
fatal: unable to connect to github.com:
github.com[0: 207.97.227.239]: errno=Connection refused
Git error: command `git clone 'git://github.com/radar/forem.git' "/home/box1/.bundler/cache/git/forem-8662403862ddafa624baa2b55484281b10db048e" --bare --no-hardlinks` in directory /home/box1/rails_apps/forem has failed.

Try cloning using HTTP and not SSH:
git clone https://github.com/radar/forem.git
See answer and comments to similar question.

Related

Git error: unable to run post install scripts

Git error after installation
I am getting this error after I am installing Git in Windows 10. I am unable to find a solution for this. What to do?

How to properly bundle install on a Ruby on Rails web-app?

I am trying to run bundle install while in the base dir of a git cloned Ruby on Rails repo on an Ubuntu subsystem (on Windows 10). But I keep getting this error:
Fetching gem metadata from https://rubygems.org/..........
Fetching git#bitbucket.org:wishartlab/wishart
Forbidden
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Retrying `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` at /home/sukanta/phastest/phaster-web due to error (2/4):
Bundler::Source::Git::GitCommandError Git error: command `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` in directory /home/sukanta/phastest/phaster-web has failed.
If this error persists you could try removing the cache directory '/home/sukanta/phastest/phaster-web'
Retrying `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` at /home/sukanta/phastest/phaster-web due to error (3/4):
Bundler::Source::Git::GitCommandError Git error: command `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` in directory /home/sukanta/phastest/phaster-web has failed.
If this error persists you could try removing the cache directory '/home/sukanta/phastest/phaster-web' Retrying `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` at /home/sukanta/phastest/phaster-web due to error (4/4):
Bundler::Source::Git::GitCommandError Git error: command `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` in directory /home/sukanta/phastest/phaster-web has failed.
If this error persists you could try removing the cache directory '/home/sukanta/phastest/phaster-web'
Git error: command `git clone --bare --no-hardlinks --quiet -- git#bitbucket.org:wishartlab/wishart /home/sukanta/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/cache/bundler/git/wishart-32827d90c8420e2e6b6bd9330b841cfef2863a8c` in directory /home/sukanta/phastest/phaster-web has failed.
If this error persists you could try removing the cache directory '/home/sukanta/phastest/phaster-web'
I have added my ssh key to Bitbucket and have the rights to the repo so that should not be a problem.

Bundler::Source::Git::GitCommandError when using Inquisition gem

As per the client suggestion, I am using inquisition gem in my Rails 5.0 application. I followed this link and added gem in Gemfile and ran bundle, I got the following error:
E:\rails_projects\inquisition_example>bundle Fetching
https://github.com/rubygarage/inquisition.git fatal: unable to access
'https://github.com/rubygarage/inquisition.git/': error:1407742E:SSL
routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Retrying git clone "https://github.com/rubygarage/inquisition.git"
"C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/inquisition-40e0b17fff1501354aa91e3ff3bbb85f990b5f49"
--bare --no-hardlinks --quiet due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command git clone
"https://github.com/rubygarage/inquisition.git"
"C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/inquisition-40e0b17fff1501354aa91e3ff3bbb85f990b5f49"
--bare --no-hardlinks --quiet in directory E:/rails_projects/inquisition_example has failed. fatal: unable to
access 'https://github.com/rubygarage/inquisition.git/':
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert
protocol version
Please help me out.
This error means that the OpenSSL version you are using in Git's libcurl is too old. GitHub only supports TLS 1.2 and 1.3, and the version of OpenSSL that libcurl is compiled with doesn't know how to negotiate those versions.
Since it looks like you're using Windows, you should update Git for Windows to the latest version, which will include an updated version of OpenSSL and libcurl so Git will work.

Elastic Beanstalk AWS Rails Bundle Install Failure

I'm trying to deploy my rails app using AWS and Elastic Beanstalk. My deployment worked but the health is at a 'red' status - error 11 (bundle install failed).
I tried:
$ gem update bundler
$ bundle package --all
Still the same error.
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# ruby "2.4.1"
+ '[' -d /var/app/ondeck/vendor/cache ']'
+ bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Warning: the running version of Bundler (1.16.0) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.........
Fetching https://github.com/mshibuya/remotipart.git
sh: git: command not found
Retrying `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` in directory /var/app/ondeck has failed.sh: git: command not found
Retrying `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` in directory /var/app/ondeck has failed.sh: git: command not found
Retrying `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone 'https://github.com/mshibuya/remotipart.git' "/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779" --bare --no-hardlinks --quiet` in directory /var/app/ondeck has failed.sh: git: command not found
Git error: command `git clone 'https://github.com/mshibuya/remotipart.git'
"/opt/rubies/ruby-2.4.3/lib/ruby/gems/2.4.0/cache/bundler/git/remotipart-f9606ede17c5ca255592b042ebded6ea195ac779"
--bare --no-hardlinks --quiet` in directory /var/app/ondeck has failed.
You need to install git.
You can create a file .ebextensions/git.config in your rails app:
packages:
yum:
git: []
Then try to deploy again
By default, the Load Balancer target group uses "/" for the health check. Make sure your rails app responses to that endpoint with 200 status or you can update the health check path to a relevant one.

Error when installing bower package

I get an error when I try to install a bower packeg.
My error :
MacBook-Pro-de-Anthony:Front-End anthonycluse$ bower install flexslider
bower cached git://github.com/woothemes/FlexSlider.git#ce5441b214
bower validate ce5441b214 against git://github.com/woothemes/FlexSlider.git#*
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/woothemes/FlexSlider.git", exit code of #128
Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection refused
The error may be due to proxy/certificate connectivity issues, try following command for the error exit code of #128
git config --global url."https://".insteadOf git://

Resources