Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Error upgrade to OP 5.0.15

Error upgrade to OP 5.0.15

Added by Douglas Leonardo about 9 years ago

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?


Replies (6)

RE: Error upgrade to OP 5.0.15 - Added by Oliver Jakobi about 9 years ago

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

RE: RE: Error upgrade to OP 5.0.15 - Added by Guillaume Ferry about 9 years ago

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.

RE: Error upgrade to OP 5.0.15 - Added by Florian Seybold about 9 years ago

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

RE: Error upgrade to OP 5.0.15 - Added by Guillaume Ferry about 9 years ago

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

RE: Error upgrade to OP 5.0.15 - Added by Oliver Günther about 9 years ago

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

RE: Error upgrade to OP 5.0.15 - Added by Guillaume Ferry about 9 years ago

Glad to help !

  • (1 - 6/6)
Loading...