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. Git authentication not working

Git authentication not working

Added by Gábor Sift over 6 years ago

Hi,

I just installed OP8.1.0 on rhel 7 and I can't seem to make git repository authentication to work via Openproject.
I have a user as project admin in the Scrum demo project. Repository is enabled and I made an initial commit on the server. I can see my commit inside openproject, so far so good.

But as far I could figure it out, I should be able to reach the git repo via the GitSmartHttp module.
Now that just doesn't work, I keep getting HTTP 401 Unauthorized. I tried with the default admin account that comes with openproject built in and also with a regular one that has project admin priviliges in the Scrum demo project.

What could I be missing?

Should the API key in the system settings match that of OpenProjectApiKey inside git_smart_http.conf?

Also I cannot make a tick for "Enable repository management web service", and I don't know if it plays a role.

Thanks

Apache error_log:

[Sat Dec 01 12:08:27.004798 2018] [:error] [pid 32104] Failed authorization for admin on http://127.0.0.1:6000/openproject/sys/repo_auth: 403 Forbidden

Production log:

I, [2018-12-01T12:08:26.990011 #32323]  INFO -- : Started POST "/openproject/sys/repo_auth" for 127.0.0.1 at 2018-12-01 12:08:26 +0100
I, [2018-12-01T12:08:26.994931 #32323]  INFO -- : Processing by SysController#repo_auth as HTML
I, [2018-12-01T12:08:26.995026 #32323]  INFO -- :   Parameters: {"repository"=>"your-scrum-project", "key"=>"EFQfZ5G8K7IwcrFw1F7SQMnXiyAtk6Lo", "method"=>"GET", "location"=>"/openproject/git/", "uri"=>"/openproject/git/your-scrum-project.git", "git_smart_http"=>"1"}
I, [2018-12-01T12:08:27.001105 #32323]  INFO -- :   Rendering text template
I, [2018-12-01T12:08:27.001268 #32323]  INFO -- :   Rendered text template (0.0ms)
I, [2018-12-01T12:08:27.001480 #32323]  INFO -- : Filter chain halted as :check_enabled rendered or redirected
I, [2018-12-01T12:08:27.001701 #32323]  INFO -- : Completed 403 Forbidden in 6ms (Views: 1.0ms | ActiveRecord: 0.9ms)


Replies (2)

RE: Git authentication not working - Added by Gábor Sift over 6 years ago

Setting API key to match that of OpenProjectApiKey inside git_smart_http.conf doesn't help either

RE: Git authentication not working - Added by Gábor Sift over 6 years ago

Ok, I fixed it, turned out to be a migration problem from bitnami to openproject-ce.
Make sure you don't just blindly replace the settings table with the bitnami entries, it can contain garbage.

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