Why might Gitlab stop installing PHP dependencies in composer.json from recently created projects?

We have a box version of GitLab. There is a group in it called lab. In this group there are many long-established projects (PHP libraries). There are also several new projects created in this group. At some point, new projects stopped being installed as Composer dependencies in GitLab CI:

You must be using the interactive console to authenticate Now trying to download from source Syncing lab/blah_blah (1.0.0) into cache

[RuntimeException]
Failed to execute git clone --mirror -- 'https://gitlabdev.our-domain/lab/blah_blah.git' '/opt/composer/cache/vcs/https---gitlabdev.our-domain-lab-blah_blah.git/'  

Cloning into bare repository '/opt/composer/cache/vcs/https---gitlabdev.our-domain-lab-blah_blah.git'...
Warning: Permanently added the ECDSA host key for IP address '172.20.24.27' to the list of known hosts.
remote:                                                                                                                                                                
remote: ========================================================================                                                                                         
remote:                                                                                                                                                                  
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:                                                                                                                                                                  
remote: ========================================================================                                                                                         
remote:                                                                                                                                                                  
fatal: Could not read from remote repository.

Locally, everything works successfully (the GitLab token is installed). When I try to create auth.json with my personal token in the root of the project, GitLab CI starts installing new dependencies, but this is not a right solution. Both new and old projects are successfully included in the GitLab package registry.

My composer JSON:

{
  "name": "vendor_name/test-gitlab-auth",
  "description": "description",
  "minimum-stability": "stable",
  "license": "proprietary",
  "authors": [
    {
      "name": "stas",
      "email": "[email protected]"
    }
  ],
  "require": {
    "lab/old_project_1": "*", // ok
    "lab/old_project_2": "*", // ok
    "lab/blah_blah": "*" // failture 
  },
  "repositories": [
    {
      "type": "composer",
      "url": "https://gitlabdev.our-domain/api/v4/group/9/-/packages/composer" // lab group registry
    }
  ]
}

Why might GitLab behave differently with new and old projects? Their settings in GitLab are identical, as far as I can tell, and have rights.

Leave a Comment