gitlabgitlab-ee

Unable to Create Project Repositories in GitLab-EE on Ubuntu Server: 'Failed to Create Repository' Error


I've successfully set up GitLab-EE on my Ubuntu server using the official installation guide from GitLab: GitLab Installation on Ubuntu. Everything appears to be working fine, but when I try to create new project repositories, I get the following error message: enter image description here

What I’ve Tried:

  1. Ensured that GitLab is fully updated.

  2. Checked server logs for any relevant errors, but nothing obvious stands out.

  3. Rebooted the server and cleared my browser cache.

  4. Verified that other GitLab features like issue creation and user management are working fine.

Gitlab Details


GitLab versionv : 17.10.0-ee

GitLab Shell : 14.41.0

GitLab Workhorse : v17.10.0

GitLab API : v4

GitLab KAS : v17.10.0 v17.10.0

Ruby : 3.2.5p208

Rails : 7.0.8.7

PostgreSQL : (main)16.8

PostgreSQL : (ci)16.8

Redis : 7.0.15


Solution

  • Turns out it was a hardware (disk) issue.

    The key clue was the following Gitaly error:

    "exception.class":"Gitlab::Git::CommandTimedOut","exception.message":"4:Deadline Exceeded."
    

    Alternative Workaround:

    You can temporarily increase the Gitaly timeouts from the GitLab Admin Area:

    1. On the left sidebar, at the bottom, select Admin.

    2. Go to Settings > Preferences.

    3. Expand the Gitaly timeouts section.

    4. Set each of the following timeouts to the maximum value of 57 seconds:

      • Default timeout

      • Fast timeout

      • Medium timeout

    This helps in environments where disk latency is high or inconsistent.

    Best Solution:

    Ultimately, the root cause was the disk performance. Replacing or upgrading the disk is the best long-term fix to prevent these timeouts and improve GitLab reliability.