repman: Can't synchronize GitLab repositories anymore

Can’t synchronize GitLab repositories anymore

Steps to reproduce the issue:

  1. Go to Gitlab and open User Settings > Applications
  2. Revoke Repman from the list of Authorized Applications
  3. Unlink GitLab from Repman User settings
  4. Go to https://app.repman.io/organization/<organization>/package
  5. Click on Add package
  6. Select GitLab
  7. Authenticate with GitLab
  8. Authorize Repman to access your GitLab repositories
  9. Select the repositories to be synchronized
  10. Click Add
  11. 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)

Most upvoted comments

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.