Open link in a new tab

Content

Expand project menu

[solved] Error when installing a bundle

I get the message below, does any one know what is wrong.

openproject@cbceg-proj : /openproject$ bundle install —without portgres rmagick
Fetching source index from https://rubggems.org/
Fetching git ://github.com/finnlabs/rspec-example_disabler.git
fatal: unable to connect to github.com:

github.com[0: 192.30.252.130]: errno=Connection refused

I have restarted the server and still get the same message.

Thanks

Andrew

Message actions

Dear All,
I got similar problem related to bundle install (resp.: bundle install --without rmagick). After quite long time of waiting on Fetching git://github.com/finnlabs/rspec-example_disabler.git

I am getting:

fatal: read error: Connection timed out
Retrying git clone 'git://github.com/finnlabs/rspec-example_disabler.git' "/home/openproject/.rvm/gems/ruby-2.0.0-p451/cache/bundler/git/rspec-example_disabler-35a5fb1feefa41a28078cf521b6e33d3c8fe6014" --bare --no-hardlinks --quiet due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git clone 'git://github.com/finnlabs/rspec-example_disabler.git' "/home/openproject/.rvm/gems/ruby-2.0.0-p451/cache/bundler/git/rspec-example_disabler-35a5fb1feefa41a28078cf521b6e33d3c8fe6014" --bare --no-hardlinks --quiet` in directory /home/openproject/openproject has failed.

I tried to skip this step but when I want to create databases (bundle exec rake db:create:all) I got:

Could not find rake-10.1.0 in any of the sources
Run `bundle install` to install missing gems.

If I should create new thread let me know.
Thank you in advace for any help.

Message actions

I guess this is a network error (in both cases). I am not sure how to proceed here (because https://status.github.com/ says that everything is fine and it works on my computer). Are you able to reach github.com in your browser?

— tessi

Message actions

Yes I could from a different machine, but there is no browser on the server that I’m installing this on.

Message actions

This may not have anything to do with openproject, but the port 9418 on the firewall is block, which means that the command git://github.com/finnlabs/rspec-example_disabler.git will not work.

Is this possible?

Message actions

Hello Andrew,

yes this could be the cause. Try to replace the a line (152) in the Gemfile and run bundle install again:

replace:
gem 'rspec-example_disabler', github: 'finnlabs/rspec-example_disabler', branch: 'master'
with:
gem 'rspec-example_disabler', git: "https://github.com/finnlabs/rspec-example_disabler.git"

Best
Ratzi

Message actions

We changed the Gemfile in the dev branch, Thanks a lot for the hint.

Best
Ratzi

Message actions

Thanks that solved it.

Andrew

Message actions

Finally I took machine on different network and it works before I have red this post. Thank you all anyway.
Jakub