Open link in a new tab

Content

Expand project menu

Error upgrade to OP 5.0.15

I’m upgrading from version 4.2 to 5.0.15, to run the command:

bundle install

I had the error:

@Fetching git://github.com/finnlabs/awesome_nested_set.git
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection refused

Retrying git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet` in directory /home/openproject/openproject has failed.
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection refused

Retrying git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet` in directory /home/openproject/openproject has failed.
fatal: unable to connect to github.com:
github.com[0: 192.30.252.128]: errno=Connection refused

Retrying git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7” —bare —no-hardlinks —quiet` in directory /home/openproject/openproject has failed.
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection refused

Git error: command `git clone ‘git://github.com/finnlabs/awesome_nested_set.git’ “/home/openproject/.rvm/gems/ruby-2.1.5/cache/bundler/git/awesome_nested_set-209215f38dc7f6765d32201897f8688e973f4de7”
—bare —no-hardlinks —quiet` in directory /home/openproject/openproject has failed.@

Can anyone help?

Message actions

Hi Douglas,

there are several possible reasons for a refused connection..
It does not seem to be related to git, for I can clone the repo without errors.

So what might be possible is that

  1. your firewall does not allow gits cutsom ports
  2. you are using a proxy

Can you confirm this?
Otherwise there has to be another reason, which I did not think of..

Best
Oliver

Message actions

Hi guys,

It is probably a firewall / proxy issue, as I came across a similar error while updating my server.
I guess the OP team rewrote many git repositories URLs which are now based on git:// prefix.

There’s a simple fix though : you just have to copy the attached .gitconfig file in /home/openproject (with adequate permissions), and it should do the trick !
The config file forces git to use https:// prefix in place of git://

Best regards,
Guillaume.

Message actions

Hi Guillaume,

worked for me, but I placed it to /root because I’m doing the update as root.

Nevertheless I have no clue what happens during “configure” because it seems some data is still fetched by git://

Fetching git://github.com/goodwill/capybara-select2.git
Fetching https://github.com/finnlabs/rspec-example_disabler.git
Unpacking objects: 100% (25/25), done.
Fetching https://github.com/rspec/rspec-activemodel-mocks
Fetching https://github.com/rails/prototype_legacy_helper.git
Unpacking objects: 100% (87/87), done.
Fetching https://github.com/rails/prototype-rails.git
Fetching https://github.com/finnlabs/transactional_lock.git
Unpacking objects: 100% (76/76), done.
Fetching https://github.com/finnlabs/rack-protection.git
Fetching git://github.com/why-el/svg-graph.git
Fetching git://github.com/finnlabs/awesome_nested_set.git
Fetching gem metadata from https://rubygems.org/……..
Fetching version metadata from https://rubygems.org/…
Fetching dependency metadata from https://rubygems.org/..

Fortunately, it was successfull!

Regards,

Florian

Message actions

That’s because Git rewrites the URLs ‘under the hood’ : when it displays ‘git://****’, it actually fetches repositories with https:// :)

Message actions

Hey Florian,

the setting Guillaume mentioned is overriding our default setting to use the Git protocol and instead requesting the repositories through http(s).
(Btw: That workaround is mentioned for bower (not bundler) in the installation guide)

Thanks Guillaume for the support!

Best,
Oliver

Message actions

Glad to help !