repman: Can't synchronize GitLab repositories anymore
Can’t synchronize GitLab repositories anymore
Steps to reproduce the issue:
- Go to Gitlab and open User Settings > Applications
- Revoke Repman from the list of Authorized Applications
- Unlink GitLab from Repman User settings
- Go to https://app.repman.io/organization/<organization>/package
- Click on Add package
- Select GitLab
- Authenticate with GitLab
- Authorize Repman to access your GitLab repositories
- Select the repositories to be synchronized
- Click Add
- In the list of packages, all packages appear with a red message saying “SYNCHRONIZATION ERROR”
SYNCHRONIZATION ERROR
Error: Failed to execute git clone --mirror -- 'https://oauth2:***@gitlab.com/<organization>/<package>.git' '/home/repman/.composer/cache/vcs/git-gitlab.com-<organization>-<package>.git/'
Cloning into bare repository '/home/repman/.composer/cache/vcs/git-gitlab.com-<organization>-<package>.git/'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://oauth2:***@gitlab.com/<organization>/<package>.git/'
Logs:
Failed to clone the git@gitlab.com:<organization>/<package>.git repository, try running in interactive mode so that you can enter your credentials
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 5
- Comments: 18 (6 by maintainers)
Found a workaround:
The token expires every day. Go to the database > user_oauth_token. Delete token for the GitLab. After that, go to the Admin UI > Packages > Add new package > Select GitLab and wait. This will generate a new token and will work for a day.