repman-io / repman

Repman - PHP Repository Manager: packagist proxy and host for private packages
https://repman.io
MIT License
513 stars 106 forks source link

OAuth issues when adding new packages and updating existing packages #581

Open SuperDiglett opened 2 years ago

SuperDiglett commented 2 years ago

I updated a few packages and it then failed to clone them due to permission errors.

Error: Failed to execute git clone --mirror -- 'https://oauth2:***@gitlab.com/xxx/xxx/m2-deployer.git' '/home/repman/.composer/cache/vcs/git-gitlab.com-xxx-xxx-general-m2-deployer.git/'

Cloning into bare repository '/home/repman/.composer/cache/vcs/git-gitlab.com-xxx-xxx-general-m2-deployer.git'...
remote: The project you were looking for could not be found or you don't have permission to view it.
fatal: repository 'https://oauth2:***@gitlab.com/xxx/xxx-general/m2-deployer.git/' not found

Logs:
Failed to clone the git@gitlab.com:xxx/xxx-general/m2-deployer.git repository, try running in interactive mode so that you can enter your credentials

We're experiencing the same with adding new packages. We are able to select them from our list of GitLab repositories, but then fail the Synchronization process with the exact some error message.

Nothing regarding permissions in my linked account has changed since it was working fine 3 weeks ago.