cds icon indicating copy to clipboard operation
cds copied to clipboard

[docker] Link to gitlab repository is not working

Open didier13150 opened this issue 5 years ago • 0 comments
trafficstars

Hi there, I cannot link my application to my gitlab repository (private gitlab on docker too). Project is successfully linked to my gitlab instance. All certificates are valid (generated by letsencrypt)

How to reproduce:

  1. Start a gitlab CE container from official image (GitLab Community Edition 12.10.3)
  • Create a user (same as cds)
  • Create a group called devops and a new project called cds-test
  • create CDS application in /admin/applications/
  1. Start and bootstrap a cds stack
  • Run the following before launching the api container

    export CDS_EDIT_CONFIG="vcs.servers.gitlab.url=https://gitlab.tartarefr.eu vcs.servers.gitlab.gitlab.appId=${GITLAB_APP_ID} vcs.servers.gitlab.gitlab.secret=${GITLAB_APP_SECRET} vcs.servers.gitlab.gitlab.callbackUrl=https://cds.tartarefr.eu/api/repositories_manager/oauth2/callback" docker-compose up cds-edit-config

  • create a user (same as gitlab)

  • create project called cds-test

  • link project to gitlab successfully

  • create application and try to link to gitlab repository

https://gitlab.tartarefr.eu/devops/cds-test is a valid url, but not https://gitlab.tartarefr.eu/api/v4/projects/devops/cds-test.

Relevant log

cds-vcs_1             | 2020-05-15 13:28:54 [ERROR] pprofLabel>compress>recoverWrap>Handle>getRepoHandler: internal server error (caused by: Unable to get repo devops/cds-test: GET https://gitlab.tartarefr.eu/api/v4/projects/devops/cds-test: 404 failed to parse unknown error format) request_id=84cbb69a-2532-4800-a851-fed87154e646 stack_trace=GET https://gitlab.tartarefr.eu/api/v4/projects/devops/cds-test: 404 failed to parse unknown error format

didier13150 avatar May 15 '20 14:05 didier13150