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 client Error 500 after upgrading system to 14.1.1

Git client Error 500 after upgrading system to 14.1.1

Added by Istvan Holbok 12 months ago

After upgrading our OpenProject instance to v. 14.1.1 we cannot access the git repositories in the instance. 
The git client error is: fatal: unable to access 'https://<OpenProject-URL>/git/<project>.git/': The requested URL returned error: 500

The system is running in an Ubuntu 22.04 LTS server. Package based installation. 

The project git repository can be accessed in WEB interface of the OpenProject. In the git repository we can access the different revisions, only client access from Visual Studio Code or from Ubuntu terminal does not work.

I did not find error messages in the logs. The firewall did not ban our access.

How can I restore git client access to the system?

Thank you any suggestion for advance.


Replies (2)

RE: Git client Error 500 after upgrading system to 14.1.1 - Added by Istvan Holbok 12 months ago

Resolved. The last update of OpenProject and Ubuntu 22.04 LTS together changed the ownership and access to git repositories. 

To resolve the issue we need adjust the ownership and permissions: 

# Change ownership to www-data user and group
sudo chown -R www-data:www-data /var/db/openproject/git/<project>.git

# Set directory permissions
sudo chmod -R 755 /var/db/openproject/git/<project>.git

# Restart Apache to apply changes
sudo systemctl restart apache2

RE: Git client Error 500 after upgrading system to 14.1.1 - Added by Thomas Völker 6 months ago

You would have to do this for every new directory. A workaround which is far more convinient is to tell git to trust all directories to be safe. To do so, just execute

git config --system --add safe.directory '*'
  • (1 - 2/2)
Loading...